1 |
18.22 ms |
Request:
{"index":"sw-staging_product","search_type":"query_then_fetch","track_total_hits":true,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"nested":{"path":"visibilities","query":{"bool":{"must":[{"range":{"visibilities.visibility":{"gte":30}}},{"term":{"visibilities.salesChannelId":"018d01736b31710085073ce4a19b2b37"}}]}}}},{"term":{"active":true}}]}},{"bool":{"should":[{"bool":{"must":[{"nested":{"path":"properties","query":{"term":{"properties.id":"018d022bed91714cb0df954017245937"}}}},{"term":{"active":true}}]}}]}},{"bool":{"must_not":[{"bool":{"must_not":[{"exists":{"field":"displayGroup"}}]}}]}}]}}]}},"sort":[{"_script":{"type":"number","script":{"source":"def languages = params['languages'];\ndef suffix = params.containsKey('suffix') ? '.' + params['suffix'] : '';\n\nfor (int i = 0; i < languages.length; i++) {\n def field_name = params['field'] + '.' + languages[i] + suffix;\n\n if (doc[field_name].size() > 0 && doc[field_name].value != null && doc[field_name].value.toString().length() > 0) {\n def fieldValue = doc[field_name].value;\n\n return fieldValue;\n }\n}\n\nif (params['order'] == 'asc') {\n return Double.MAX_VALUE;\n}\n\nreturn Double.MIN_VALUE;\n","lang":"painless","params":{"field":"customFields","languages":["2fbb5fe2e29a4d70aa5854ce7ce3e20b"],"suffix":"acris_search_sorting_relevance","order":"desc"}},"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":0,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 16,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 122,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "sw-staging_product_1755509385",
"_id": "0199337bee0a712fb29f1f6ef6ac7d7b",
"_score": 0.0,
"_source": {
"autoIncrement": 24346.0,
"id": "0199337bee0a712fb29f1f6ef6ac7d7b"
},
"fields": {
"displayGroup": [
"093be7193a25bf0d5f5e96f313370bc9"
]
},
"sort": [
0.0,
0.0,
0,
24346,
"0199337bee0a712fb29f1f6ef6ac7d7b"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198558caa5773d2abc92fdd421874e8",
"_score": 0.0,
"_source": {
"autoIncrement": 24238.0,
"id": "0198558caa5773d2abc92fdd421874e8"
},
"fields": {
"displayGroup": [
"9961a8044546c939c4bf0d6172fe25c9"
]
},
"sort": [
0.0,
0.0,
0,
24238,
"0198558caa5773d2abc92fdd421874e8"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019855181c8d702e89ec1450aa5ec4b1",
"_score": 0.0,
"_source": {
"autoIncrement": 24164.0,
"id": "019855181c8d702e89ec1450aa5ec4b1"
},
"fields": {
"displayGroup": [
"da92e2030c6be4cd390109913b939b1d"
]
},
"sort": [
0.0,
0.0,
0,
24164,
"019855181c8d702e89ec1450aa5ec4b1"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019851a5f18773e28c00fd4fd3772138",
"_score": 0.0,
"_source": {
"autoIncrement": 24144.0,
"id": "019851a5f18773e28c00fd4fd3772138"
},
"fields": {
"displayGroup": [
"ea9126d177b9009c5bc61cf542e389c7"
]
},
"sort": [
0.0,
0.0,
0,
24144,
"019851a5f18773e28c00fd4fd3772138"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985153c5f07020bd0e3da773f63992",
"_score": 0.0,
"_source": {
"autoIncrement": 24094.0,
"id": "01985153c5f07020bd0e3da773f63992"
},
"fields": {
"displayGroup": [
"d05d19ad20f4631d7762e4629db530fc"
]
},
"sort": [
0.0,
0.0,
0,
24094,
"01985153c5f07020bd0e3da773f63992"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019851118d8b736bbdf9b973255efc96",
"_score": 0.0,
"_source": {
"autoIncrement": 24067.0,
"id": "019851118d8b736bbdf9b973255efc96"
},
"fields": {
"displayGroup": [
"93bf57ca24c3f00c425e9e1b4d9a5fd9"
]
},
"sort": [
0.0,
0.0,
0,
24067,
"019851118d8b736bbdf9b973255efc96"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb86a6d872a7aac980f5c91e20ff",
"_score": 0.0,
"_source": {
"autoIncrement": 23970.0,
"id": "0197cb86a6d872a7aac980f5c91e20ff"
},
"fields": {
"displayGroup": [
"fa3ee43142a3a38a6ad389738ee5ba9c"
]
},
"sort": [
0.0,
0.0,
0,
23970,
"0197cb86a6d872a7aac980f5c91e20ff"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb8652cc7025815775b7d3a4d9c4",
"_score": 0.0,
"_source": {
"autoIncrement": 23907.0,
"id": "0197cb8652cc7025815775b7d3a4d9c4"
},
"fields": {
"displayGroup": [
"fe10911cb220dfe0c290564ffea476c5"
]
},
"sort": [
0.0,
0.0,
0,
23907,
"0197cb8652cc7025815775b7d3a4d9c4"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb863f6773aa9b045b10ff88f3b4",
"_score": 0.0,
"_source": {
"autoIncrement": 23890.0,
"id": "0197cb863f6773aa9b045b10ff88f3b4"
},
"fields": {
"displayGroup": [
"357ad1c2f6a684775f4e288ee73090b1"
]
},
"sort": [
0.0,
0.0,
0,
23890,
"0197cb863f6773aa9b045b10ff88f3b4"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb861efa72f795ffb5b3e1956427",
"_score": 0.0,
"_source": {
"autoIncrement": 23864.0,
"id": "0197cb861efa72f795ffb5b3e1956427"
},
"fields": {
"displayGroup": [
"f306ea7aa8064d886b1c6c988acf97f7"
]
},
"sort": [
0.0,
0.0,
0,
23864,
"0197cb861efa72f795ffb5b3e1956427"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb8606b770678540eb4893d77e9a",
"_score": 0.0,
"_source": {
"autoIncrement": 23844.0,
"id": "0197cb8606b770678540eb4893d77e9a"
},
"fields": {
"displayGroup": [
"fab4d2aa9386c5313d8a8c4f01bb49fc"
]
},
"sort": [
0.0,
0.0,
0,
23844,
"0197cb8606b770678540eb4893d77e9a"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c994076723f84f02c57592d2515",
"_score": 0.0,
"_source": {
"autoIncrement": 23681.0,
"id": "01967c994076723f84f02c57592d2515"
},
"fields": {
"displayGroup": [
"c7f43c4da49a687687fa39e1f70d600e"
]
},
"sort": [
0.0,
0.0,
0,
23681,
"01967c994076723f84f02c57592d2515"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c99407270f4bd1c944e05e246e9",
"_score": 0.0,
"_source": {
"autoIncrement": 23680.0,
"id": "01967c99407270f4bd1c944e05e246e9"
},
"fields": {
"displayGroup": [
"5d0f7513ec5d79556bf425a59bf62d1a"
]
},
"sort": [
0.0,
0.0,
0,
23680,
"01967c99407270f4bd1c944e05e246e9"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c992f9a721f92c5c995fc65e1f2",
"_score": 0.0,
"_source": {
"autoIncrement": 23640.0,
"id": "01967c992f9a721f92c5c995fc65e1f2"
},
"fields": {
"displayGroup": [
"cc4709fb9655829d756b633551339851"
]
},
"sort": [
0.0,
0.0,
0,
23640,
"01967c992f9a721f92c5c995fc65e1f2"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c991e96738d9039a0ea6342c76e",
"_score": 0.0,
"_source": {
"autoIncrement": 23562.0,
"id": "01967c991e96738d9039a0ea6342c76e"
},
"fields": {
"displayGroup": [
"715b25765ae3c0922cca10c04e8f5f4d"
]
},
"sort": [
0.0,
0.0,
0,
23562,
"01967c991e96738d9039a0ea6342c76e"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c991e8771eabce44b74f7b294c9",
"_score": 0.0,
"_source": {
"autoIncrement": 23559.0,
"id": "01967c991e8771eabce44b74f7b294c9"
},
"fields": {
"displayGroup": [
"2111c5b72d21d5359db8dbe9bb8e5ae1"
]
},
"sort": [
0.0,
0.0,
0,
23559,
"01967c991e8771eabce44b74f7b294c9"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c991e5273f69f9d3d5d99753cf2",
"_score": 0.0,
"_source": {
"autoIncrement": 23546.0,
"id": "01967c991e5273f69f9d3d5d99753cf2"
},
"fields": {
"displayGroup": [
"a4d3d1bf4dff263d9e2a646235da5298"
]
},
"sort": [
0.0,
0.0,
0,
23546,
"01967c991e5273f69f9d3d5d99753cf2"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c991db4708dbc47312659e52f12",
"_score": 0.0,
"_source": {
"autoIncrement": 23492.0,
"id": "01967c991db4708dbc47312659e52f12"
},
"fields": {
"displayGroup": [
"94a721de9c9b6107db344a94e4b08111"
]
},
"sort": [
0.0,
0.0,
0,
23492,
"01967c991db4708dbc47312659e52f12"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c991db27305b387d70a3a8ec8da",
"_score": 0.0,
"_source": {
"autoIncrement": 23491.0,
"id": "01967c991db27305b387d70a3a8ec8da"
},
"fields": {
"displayGroup": [
"41d365262641d41f1f8d3753f61ee91a"
]
},
"sort": [
0.0,
0.0,
0,
23491,
"01967c991db27305b387d70a3a8ec8da"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c991daf7138983e2ccad90a38bd",
"_score": 0.0,
"_source": {
"autoIncrement": 23490.0,
"id": "01967c991daf7138983e2ccad90a38bd"
},
"fields": {
"displayGroup": [
"7f5ef8e32c52b6b4818876d132e689aa"
]
},
"sort": [
0.0,
0.0,
0,
23490,
"01967c991daf7138983e2ccad90a38bd"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c99182b7257b955732a8797265b",
"_score": 0.0,
"_source": {
"autoIncrement": 23430.0,
"id": "01967c99182b7257b955732a8797265b"
},
"fields": {
"displayGroup": [
"e92e815bd8c9cf6922046aa3986135d9"
]
},
"sort": [
0.0,
0.0,
0,
23430,
"01967c99182b7257b955732a8797265b"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c991826710c9ae68784547eb98e",
"_score": 0.0,
"_source": {
"autoIncrement": 23428.0,
"id": "01967c991826710c9ae68784547eb98e"
},
"fields": {
"displayGroup": [
"cd9a41d214c5e548ed5ebbc78780a839"
]
},
"sort": [
0.0,
0.0,
0,
23428,
"01967c991826710c9ae68784547eb98e"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c9917907361927b25bd8d12fd0e",
"_score": 0.0,
"_source": {
"autoIncrement": 23417.0,
"id": "01967c9917907361927b25bd8d12fd0e"
},
"fields": {
"displayGroup": [
"c864d77ce2dd0b3b08c393127bc7afaf"
]
},
"sort": [
0.0,
0.0,
0,
23417,
"01967c9917907361927b25bd8d12fd0e"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c99178c730f9bc6889ca108f65b",
"_score": 0.0,
"_source": {
"autoIncrement": 23416.0,
"id": "01967c99178c730f9bc6889ca108f65b"
},
"fields": {
"displayGroup": [
"776fb29e1f595f972815eb2e9bd93e1e"
]
},
"sort": [
0.0,
0.0,
0,
23416,
"01967c99178c730f9bc6889ca108f65b"
]
}
]
},
"aggregations": {
"total-count": {
"value": 122
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
2 |
5.22 ms |
Request:
{"index":"sw-staging_product","track_total_hits":false,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"nested":{"path":"visibilities","query":{"bool":{"must":[{"range":{"visibilities.visibility":{"gte":30}}},{"term":{"visibilities.salesChannelId":"018d01736b31710085073ce4a19b2b37"}}]}}}},{"term":{"active":true}}]}},{"bool":{"should":[{"bool":{"must":[{"nested":{"path":"properties","query":{"term":{"properties.id":"018d022bed91714cb0df954017245937"}}}},{"term":{"active":true}}]}}]}},{"bool":{"must_not":[{"bool":{"must_not":[{"exists":{"field":"displayGroup"}}]}}]}}]}}]}},"aggregations":{"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"price":{"stats":{"script":{"source":"double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n","lang":"painless","params":{"accessors":[{"key":"cheapest_price_rule019928709f487259bbc34c29afc4be6d_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d0163d2ce72fe8b0728a642b4042f_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d0163d35c71528f3f85ab4edbfce9_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d0164030b7131bbf732b6cdd045f8_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d017d87c971e284588c2bab64fc6c_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018df3dca4dc70dc9d8955300dfa54b3_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018f52ec7ad97053adbba87acd431267_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018f52ec7aec70afa4294f02dbeb6cff_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01987f3e2d7a7382a91854b9f17706e6_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01987f4aff9672c68c35e38c34822856_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule0198e1ef5bfe7d0c8c7e3a144d5ed318_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019889ada060713fb1cab5134c90045e_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule0196d39e8fa07f518ea67268325e9d73_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule0196d879404475a88dc0ac502e0b7ada_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01987f294a4e73e8999e21f34612201b_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d017d889d70c6a53a7c9aa1c04cc9_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d02284fa87229858f8decad12dd24_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019440472dad70ea836ab0b8dbb2c63b_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019440472e9b7194bfdf7e02f0d0b7d8_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019440472fc0710ebe371fb24996b058_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019440472fea71a2aa90640bd545b58e_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019440473012718f84cc75c44ace5494_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047301a73eabdec8bb977e6e6f1_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047303e700e9ad384c92dd1f000_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047305872f3a49d7e56eb3f9aa6_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047305e7354a561cd03a0cf3217_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047319670d19ba00ffb56496ca0_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047323971679b378ec7a290c458_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047323e70ac9c0eb9dedc877a48_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047324471e49ad453603c99a659_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047327270d4898a4f601343774c_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047328970b39b22abefa86d94e7_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule0194404732d6721fa645849e801e1606_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule0194404732df730bb2e0ff2234bce95f_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1}],"decimals":100,"round":true,"multiplier":100.0}}}},"rating-exists":{"filter":{"range":{"ratingAverage":{"gte":0.0}}},"aggregations":{"rating":{"max":{"field":"ratingAverage"}}}},"shipping-free-filter":{"filter":{"term":{"shippingFree":true}},"aggregations":{"shipping-free":{"max":{"field":"shippingFree"}}}},"properties-filter":{"nested":{"path":"properties"},"aggregations":{"properties-filter":{"filter":{"terms":{"properties.groupId":["018d022bdd70702a9c7a8db29b279d91","018d022c3a0272c1a5f5e901b4ca7fdb","018d022bedaa7013a962905d996cb5a8","018d022bd93d7095a6f4dfd4fc66f79b","018d022c2085711085e1e54a3637eb3a","018d022bde5572ba8905ee4e16635ba2"]}},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}}}},"options-filter":{"nested":{"path":"options"},"aggregations":{"options-filter":{"filter":{"terms":{"options.groupId":["018d022bdd70702a9c7a8db29b279d91","018d022c3a0272c1a5f5e901b4ca7fdb","018d022bedaa7013a962905d996cb5a8","018d022bd93d7095a6f4dfd4fc66f79b","018d022c2085711085e1e54a3637eb3a","018d022bde5572ba8905ee4e16635ba2"]}},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}}}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
POST http://localhost:9500/sw-staging_product/_search?track_total_hits=0&search_type=query_then_fetch
Accept: application/json
Content-Type: application/json
{
"query": {
"bool": {
"filter": [
{
"bool": {
"must": [
{
"bool": {
"must": [
{
"nested": {
"path": "visibilities",
"query": {
"bool": {
"must": [
{
"range": {
"visibilities.visibility": {
"gte": 30
}
}
},
{
"term": {
"visibilities.salesChannelId": "018d01736b31710085073ce4a19b2b37"
}
}
]
}
}
}
},
{
"term": {
"active": true
}
}
]
}
},
{
"bool": {
"should": [
{
"bool": {
"must": [
{
"nested": {
"path": "properties",
"query": {
"term": {
"properties.id": "018d022bed91714cb0df954017245937"
}
}
}
},
{
"term": {
"active": true
}
}
]
}
}
]
}
},
{
"bool": {
"must_not": [
{
"bool": {
"must_not": [
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
}
]
}
}
]
}
},
"aggregations": {
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"price": {
"stats": {
"script": {
"source": "double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n",
"lang": "painless",
"params": {
"accessors": [
{
"key": "cheapest_price_rule019928709f487259bbc34c29afc4be6d_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d0163d2ce72fe8b0728a642b4042f_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d0163d35c71528f3f85ab4edbfce9_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d0164030b7131bbf732b6cdd045f8_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d017d87c971e284588c2bab64fc6c_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018df3dca4dc70dc9d8955300dfa54b3_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018f52ec7ad97053adbba87acd431267_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018f52ec7aec70afa4294f02dbeb6cff_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01987f3e2d7a7382a91854b9f17706e6_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01987f4aff9672c68c35e38c34822856_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule0198e1ef5bfe7d0c8c7e3a144d5ed318_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019889ada060713fb1cab5134c90045e_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule0196d39e8fa07f518ea67268325e9d73_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule0196d879404475a88dc0ac502e0b7ada_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01987f294a4e73e8999e21f34612201b_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d017d889d70c6a53a7c9aa1c04cc9_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d02284fa87229858f8decad12dd24_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019440472dad70ea836ab0b8dbb2c63b_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019440472e9b7194bfdf7e02f0d0b7d8_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019440472fc0710ebe371fb24996b058_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019440472fea71a2aa90640bd545b58e_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019440473012718f84cc75c44ace5494_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047301a73eabdec8bb977e6e6f1_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047303e700e9ad384c92dd1f000_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047305872f3a49d7e56eb3f9aa6_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047305e7354a561cd03a0cf3217_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047319670d19ba00ffb56496ca0_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047323971679b378ec7a290c458_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047323e70ac9c0eb9dedc877a48_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047324471e49ad453603c99a659_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047327270d4898a4f601343774c_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047328970b39b22abefa86d94e7_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule0194404732d6721fa645849e801e1606_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule0194404732df730bb2e0ff2234bce95f_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
}
],
"decimals": 100,
"round": true,
"multiplier": 100.0
}
}
}
},
"rating-exists": {
"filter": {
"range": {
"ratingAverage": {
"gte": 0.0
}
}
},
"aggregations": {
"rating": {
"max": {
"field": "ratingAverage"
}
}
}
},
"shipping-free-filter": {
"filter": {
"term": {
"shippingFree": true
}
},
"aggregations": {
"shipping-free": {
"max": {
"field": "shippingFree"
}
}
}
},
"properties-filter": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties-filter": {
"filter": {
"terms": {
"properties.groupId": [
"018d022bdd70702a9c7a8db29b279d91",
"018d022c3a0272c1a5f5e901b4ca7fdb",
"018d022bedaa7013a962905d996cb5a8",
"018d022bd93d7095a6f4dfd4fc66f79b",
"018d022c2085711085e1e54a3637eb3a",
"018d022bde5572ba8905ee4e16635ba2"
]
}
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
}
}
},
"options-filter": {
"nested": {
"path": "options"
},
"aggregations": {
"options-filter": {
"filter": {
"terms": {
"options.groupId": [
"018d022bdd70702a9c7a8db29b279d91",
"018d022c3a0272c1a5f5e901b4ca7fdb",
"018d022bedaa7013a962905d996cb5a8",
"018d022bd93d7095a6f4dfd4fc66f79b",
"018d022c2085711085e1e54a3637eb3a",
"018d022bde5572ba8905ee4e16635ba2"
]
}
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
}
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"shipping-free-filter": {
"doc_count": 0,
"shipping-free": {
"value": null
}
},
"properties-filter": {
"doc_count": 3433,
"properties-filter": {
"doc_count": 820,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d022bddd473e983cd961ff442364d",
"doc_count": 99
},
{
"key": "018d022c3a407182b69327f39ec7082b",
"doc_count": 50
},
{
"key": "018d022c3a6271f290d7ef6e169a0730",
"doc_count": 50
},
{
"key": "018d022bdd2370a1b115725042f5c511",
"doc_count": 43
},
{
"key": "018d022bf1ec71829e91c8f34d7ce340",
"doc_count": 36
},
{
"key": "018d022bdd1a726998f01f4894d753a4",
"doc_count": 32
},
{
"key": "018d022c25dc704fb7e96644ae17587d",
"doc_count": 26
},
{
"key": "018d022bf1a272b1a884228150d00570",
"doc_count": 21
},
{
"key": "018d022bf89871fd918b610f64b0f557",
"doc_count": 21
},
{
"key": "018d022bdd1172bf9a832c8ef29ca6b5",
"doc_count": 19
},
{
"key": "018d022bdf41726ea0bca4c57f5e0e37",
"doc_count": 19
},
{
"key": "018d022bf3a5702aa0d51bbceeb3b7d9",
"doc_count": 19
},
{
"key": "018d022bdf617298bc439b09b0466245",
"doc_count": 17
},
{
"key": "018d022bf18472ad8a71e8773dce491b",
"doc_count": 17
},
{
"key": "018d022c244772dba72bdacf33ea08de",
"doc_count": 17
},
{
"key": "018d022c3a15721789e76cb145bb823d",
"doc_count": 17
},
{
"key": "018d022bdd35722bb6910f1ab1b90ac3",
"doc_count": 15
},
{
"key": "018d022bdde27299ab4e9793f5b76f5b",
"doc_count": 15
},
{
"key": "018d022bdf54736784570bc2af13104e",
"doc_count": 15
},
{
"key": "018d022bdf5b711b9339414fc0920beb",
"doc_count": 15
},
{
"key": "018d022bf4a3728c96b56b4f45e04dfe",
"doc_count": 15
},
{
"key": "018d022c254372d58ba9d5ecfdbe562c",
"doc_count": 14
},
{
"key": "018d022c260c73b9850ce440b4f69e76",
"doc_count": 12
},
{
"key": "018d022bdf2c735d8ef11eed6f1aeb5a",
"doc_count": 11
},
{
"key": "018d022bf92b72a8b41958cc8a3de7bf",
"doc_count": 10
},
{
"key": "018d022bf45973979da7f8df6a64e7ab",
"doc_count": 9
},
{
"key": "018d022bf49971e789d1e5f473a16be5",
"doc_count": 8
},
{
"key": "018d022c25e4729eb01b4148168084b4",
"doc_count": 8
},
{
"key": "018d022bdf1c7278bf94eeb138febace",
"doc_count": 7
},
{
"key": "018d022bf2f0707a9eae835575528edd",
"doc_count": 7
},
{
"key": "018d022bf8e5737dad197d68c1d8089b",
"doc_count": 7
},
{
"key": "018d022bd94771858d8c5494f21c23bb",
"doc_count": 6
},
{
"key": "018d022bf8de7006b92874d86050997d",
"doc_count": 6
},
{
"key": "018d022c25c5725986764dfd692149e1",
"doc_count": 6
},
{
"key": "018d022bf4ab72aeb2b9b722af9951f1",
"doc_count": 5
},
{
"key": "018d022c243073f4846166fa362028a5",
"doc_count": 5
},
{
"key": "018d022c243f7379b6fcf898e3e363d3",
"doc_count": 5
},
{
"key": "018d022bdd4673e8b576e090ae2a4118",
"doc_count": 4
},
{
"key": "018d022bde0b7030b49637290b0bce22",
"doc_count": 4
},
{
"key": "018d022bdec671bcbe5eab911c5effe8",
"doc_count": 4
},
{
"key": "018d022bdf0570f4b4968ec9846d1af5",
"doc_count": 4
},
{
"key": "018d022bedf473b79fe70145a2a9334a",
"doc_count": 4
},
{
"key": "018d022c24dd72929aff67c77eff23f5",
"doc_count": 4
},
{
"key": "018d022c258170248fa4108f0421a3c8",
"doc_count": 4
},
{
"key": "018d022c3a2273899463185fad012765",
"doc_count": 4
},
{
"key": "018d022bdd577122addb2b9102c279e6",
"doc_count": 3
},
{
"key": "018d022bdeee702993f7e3e8c7dd1a04",
"doc_count": 3
},
{
"key": "018d022bdf0c71df88ac56485702a36b",
"doc_count": 3
},
{
"key": "018d022bf213725bb964d16a460f3b01",
"doc_count": 3
},
{
"key": "018d022bf47d70b1b8d2333e13eb6d96",
"doc_count": 3
},
{
"key": "018d022bf8bf731cbf0711bc85556f9b",
"doc_count": 3
},
{
"key": "018d022c250d700cb50704d856a25e4a",
"doc_count": 3
},
{
"key": "018d022c2605734db3780fd38084ce08",
"doc_count": 3
},
{
"key": "01982c41dd927db39b60ab240f678cc1",
"doc_count": 3
},
{
"key": "019830dcde557c35a701fd93c6055eb0",
"doc_count": 3
},
{
"key": "018d022bded5734c94209964177416aa",
"doc_count": 2
},
{
"key": "018d022bf1f8722e96f04a7decde14e7",
"doc_count": 2
},
{
"key": "018d022bf21f732884ce91bd9ca3caaa",
"doc_count": 2
},
{
"key": "018d022bf22770438cb7ffd4b3fb41c6",
"doc_count": 2
},
{
"key": "018d022bf2c1713094328a77b34f881d",
"doc_count": 2
},
{
"key": "018d022bf3d8738195c11932df76f355",
"doc_count": 2
},
{
"key": "018d022bf436702fb1b1621fa6fcdac3",
"doc_count": 2
},
{
"key": "018d022bf4677353879f25a441972932",
"doc_count": 2
},
{
"key": "018d022bf9c87072a2a03479f99e5576",
"doc_count": 2
},
{
"key": "018d022c24a570a98f686eaf1c3c02f2",
"doc_count": 2
},
{
"key": "018d022c24b8710388da1b2916b7d609",
"doc_count": 2
},
{
"key": "018d022c254b7333b452696be30d78f7",
"doc_count": 2
},
{
"key": "018d022c2597726b8c8d8ebc70eec94b",
"doc_count": 2
},
{
"key": "018f52e9912f718f82808c902ba14430",
"doc_count": 2
},
{
"key": "018d022bddeb737cbc7fd8e5f65140e6",
"doc_count": 1
},
{
"key": "018d022bde0271f992b533d2063b6dce",
"doc_count": 1
},
{
"key": "018d022bde3c71e28bccefcb4e81f1c6",
"doc_count": 1
},
{
"key": "018d022bdeaa71e6bbe0074f5bdaf528",
"doc_count": 1
},
{
"key": "018d022bdedc70fcacbdc724a3d5c1f7",
"doc_count": 1
},
{
"key": "018d022bdee373da96a6f813d69bb471",
"doc_count": 1
},
{
"key": "018d022bdef6723ab049023a583cf2ac",
"doc_count": 1
},
{
"key": "018d022bdefe73cba1d62a4924850080",
"doc_count": 1
},
{
"key": "018d022bdf1373a8ba218cea4ce9966d",
"doc_count": 1
},
{
"key": "018d022bf1ce7181816401aac2cd0761",
"doc_count": 1
},
{
"key": "018d022bf219726792f3571cc5b89043",
"doc_count": 1
},
{
"key": "018d022bf319723c982a3115d97f0f9b",
"doc_count": 1
},
{
"key": "018d022bf48573c8937ff30f2e1134fb",
"doc_count": 1
},
{
"key": "018d022bf9147166b876a85e949f76d5",
"doc_count": 1
},
{
"key": "018d022c242070bfbfe89c948d24eda9",
"doc_count": 1
},
{
"key": "018d022c24d573ca8b30a5c1062e6e07",
"doc_count": 1
},
{
"key": "018d022c25337260b5f48ffc5f8fce57",
"doc_count": 1
},
{
"key": "018d022c2578708498b655cb306b76c9",
"doc_count": 1
},
{
"key": "018d022c25a37358a2ad462f758966e3",
"doc_count": 1
},
{
"key": "018d022c3a5972c094bd27285fc5e216",
"doc_count": 1
},
{
"key": "018f52e9902d734ca1c436dbd3efbd2c",
"doc_count": 1
},
{
"key": "01943fcfbea37376abf696c3276dbfc9",
"doc_count": 1
},
{
"key": "01943fcfc01372dbb0d41dc3f9ee3c7d",
"doc_count": 1
},
{
"key": "019830dcb1fc78aea03d6eef3899c688",
"doc_count": 1
},
{
"key": "019830dd010572f5b97fcf53d54aa6d4",
"doc_count": 1
},
{
"key": "019830dd50507882970deaf41a5ff753",
"doc_count": 1
}
]
}
}
},
"rating-exists": {
"doc_count": 122,
"rating": {
"value": 0.0
}
},
"options-filter": {
"doc_count": 0,
"options-filter": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
}
},
"price": {
"count": 122,
"min": 14.5,
"max": 1890.0,
"avg": 278.47131147540983,
"sum": 33973.5
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d0228941273f0ad39e3c637a0d830",
"doc_count": 12
},
{
"key": "018d0228aaab709e9f9c703fb79faf74",
"doc_count": 8
},
{
"key": "018d022894bc7000a17a7d5b8166cf96",
"doc_count": 7
},
{
"key": "018d022895777089a3df02425b938f59",
"doc_count": 7
},
{
"key": "018d022894837194a96c87358533a4bf",
"doc_count": 6
},
{
"key": "018d0228a2d97274b352715c94b51cf7",
"doc_count": 6
},
{
"key": "018d022854587162b7615e9d7ac5ae5d",
"doc_count": 5
},
{
"key": "018d0228ac2e721083242bb0609388d5",
"doc_count": 5
},
{
"key": "018d022868c8707da282970e30bd0a9f",
"doc_count": 4
},
{
"key": "018d0228a9f570e89982944896ee44d4",
"doc_count": 4
},
{
"key": "018d02292eaa73e1a9750d355776a674",
"doc_count": 4
},
{
"key": "018d0228526f71de8ad77e9f2e135871",
"doc_count": 3
},
{
"key": "018d02288f09714ea20e0f20a985ba61",
"doc_count": 3
},
{
"key": "018d022893eb70dbab6a2f0629a9ae34",
"doc_count": 3
},
{
"key": "018d022897e77096b069f5cb56fdb3fc",
"doc_count": 3
},
{
"key": "018d0228ad2473179ad26598d8bcf3a6",
"doc_count": 3
},
{
"key": "018d0228fd337151a866cadf3ac46ebf",
"doc_count": 3
},
{
"key": "018d022850aa7167830b08b73843dcd1",
"doc_count": 2
},
{
"key": "018d0228535d702bbcc80ad88e309d2e",
"doc_count": 2
},
{
"key": "018d02285727727db42cf4a2bebfe6ee",
"doc_count": 2
},
{
"key": "018d02286a6071078b8304440813106f",
"doc_count": 2
},
{
"key": "018d0228797c71dab31264c550501763",
"doc_count": 2
},
{
"key": "018d0228a6797344b7bee6b991b68110",
"doc_count": 2
},
{
"key": "018d0228aa8d7196a87293e71f0c7eed",
"doc_count": 2
},
{
"key": "018d0228d94272f4a066c111fa65bf4e",
"doc_count": 2
},
{
"key": "018d0228edde71b3bfa030e87694a871",
"doc_count": 2
},
{
"key": "018d022850fc73cb8a7ff1078dc647bb",
"doc_count": 1
},
{
"key": "018d02285168700a9f28f2c8f3cd4f18",
"doc_count": 1
},
{
"key": "018d022853f77115b48de1e8f0d162d0",
"doc_count": 1
},
{
"key": "018d02285ab2729aaa1e604ccc0f87c8",
"doc_count": 1
},
{
"key": "018d02286ef77168969e6d9c5c6c9c42",
"doc_count": 1
},
{
"key": "018d02286f6d717dbae35a1df90f9826",
"doc_count": 1
},
{
"key": "018d0228701f70b7969e7388c5399abb",
"doc_count": 1
},
{
"key": "018d022891a471a6888ee2c8305e4ba3",
"doc_count": 1
},
{
"key": "018d0228933470f4b9436ac054b89fb2",
"doc_count": 1
},
{
"key": "018d0228949e720b8814f66101f76097",
"doc_count": 1
},
{
"key": "018d02289691714fb6c90e0100d3dabe",
"doc_count": 1
},
{
"key": "018d0228bc237335b4893d4c29c66160",
"doc_count": 1
},
{
"key": "018d0228c0187043963503e94634eabe",
"doc_count": 1
},
{
"key": "018d0228d7ac726b87142917cd8550d7",
"doc_count": 1
},
{
"key": "018d0228fffb73f99ca5d8bfc0b9d403",
"doc_count": 1
},
{
"key": "018f52e9298a72e3a29211e3ba762761",
"doc_count": 1
},
{
"key": "018f52e929ab71e3b8d807f889033fdf",
"doc_count": 1
},
{
"key": "018f52e929fc72abaebbde85143fc465",
"doc_count": 1
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|