| 1 |
19.13 ms |
Request:
{"index":"staging-67_product","search_type":"query_then_fetch","track_total_hits":true,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"6bea64103f3985500f32c4f72e408bdc"}},{"exists":{"field":"displayGroup"}}]}}],"should":[{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea07ad57e59841906b9dac1ae23"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea3242c77a3ad7aaa686586f79c"]}}}}]}},"boost":150.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018fe3229d5677949c032d1a4983f006"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["f4e67c126b4e4b4f8b4f4b8295613b5b"]}}}}]}},"boost":1000.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["15706c7290284128acdcdc0aa07bda52"]}}}}]}},"boost":400.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["a33aa3f47e2147c9be62a08216f92c1c"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["e3d0223b8cfd4edb8b5581ae7e9ab5cf"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["62000891305f4ae4837e16e336cf2868"]}}}}]}},"boost":200.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["9222eeebbd984a1fbba6521d6c03bc43"]}}}}]}},"boost":250.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["cb292e1aaf854891a0d4e2fca32dd02f"]}}}}]}},"boost":100.0}}]}},"sort":[{"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.acris_search_sorting_relevance":{"unmapped_type":"integer","missing":0,"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": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 450,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "9664572cf7bbd6fdce452e482917ff7f",
"_score": 1100.0,
"_source": {
"id": "9664572cf7bbd6fdce452e482917ff7f",
"autoIncrement": 126712.0
},
"fields": {
"displayGroup": [
"2630b7a02c2417597f6dcd2d2b6a828d"
]
},
"sort": [
96,
1100.0,
0,
126712,
"9664572cf7bbd6fdce452e482917ff7f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8f86778c2e37cb25bb1d49d48c966690",
"_score": 1100.0,
"_source": {
"id": "8f86778c2e37cb25bb1d49d48c966690",
"autoIncrement": 126711.0
},
"fields": {
"displayGroup": [
"c638dfce76dd798d996b018e845fc9d4"
]
},
"sort": [
95,
1100.0,
0,
126711,
"8f86778c2e37cb25bb1d49d48c966690"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "12d0c29ccbd4782e5c2b6e9b790a4c37",
"_score": 1100.0,
"_source": {
"id": "12d0c29ccbd4782e5c2b6e9b790a4c37",
"autoIncrement": 126710.0
},
"fields": {
"displayGroup": [
"3b463bb942e558711d9dd400aaa3c8d8"
]
},
"sort": [
94,
1100.0,
0,
126710,
"12d0c29ccbd4782e5c2b6e9b790a4c37"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "871134ec3230e705d3d4ede932cf37c1",
"_score": 1100.0,
"_source": {
"id": "871134ec3230e705d3d4ede932cf37c1",
"autoIncrement": 126709.0
},
"fields": {
"displayGroup": [
"788b885259660c4cd8a1f4f954b332ae"
]
},
"sort": [
93,
1100.0,
0,
126709,
"871134ec3230e705d3d4ede932cf37c1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c89935715dfc114ff607d3b4cf9da51d",
"_score": 1100.0,
"_source": {
"id": "c89935715dfc114ff607d3b4cf9da51d",
"autoIncrement": 126708.0
},
"fields": {
"displayGroup": [
"49caa2beef53c06df12e4be2db5e3245"
]
},
"sort": [
93,
1100.0,
0,
126708,
"c89935715dfc114ff607d3b4cf9da51d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6571a34c885f6d636ce77c8ea8dd7247",
"_score": 1100.0,
"_source": {
"id": "6571a34c885f6d636ce77c8ea8dd7247",
"autoIncrement": 126707.0
},
"fields": {
"displayGroup": [
"3cd1e372c0bc7fa21bb2404d2bea5a97"
]
},
"sort": [
92,
1100.0,
0,
126707,
"6571a34c885f6d636ce77c8ea8dd7247"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cadd5a0dbc0d8aa71d2d95a5747c5a3b",
"_score": 1100.0,
"_source": {
"id": "cadd5a0dbc0d8aa71d2d95a5747c5a3b",
"autoIncrement": 126706.0
},
"fields": {
"displayGroup": [
"ac51ad4a31b0f2fd7f59ae9cc8d7ff6b"
]
},
"sort": [
91,
1100.0,
0,
126706,
"cadd5a0dbc0d8aa71d2d95a5747c5a3b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c0da2de326a365aeabaa6dfc13fa7405",
"_score": 1100.0,
"_source": {
"id": "c0da2de326a365aeabaa6dfc13fa7405",
"autoIncrement": 126705.0
},
"fields": {
"displayGroup": [
"840ec3c2c2f56e4e0a217981ffb2a004"
]
},
"sort": [
90,
1100.0,
0,
126705,
"c0da2de326a365aeabaa6dfc13fa7405"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "071f7a14ba32062c1964a731f84a77bf",
"_score": 1100.0,
"_source": {
"id": "071f7a14ba32062c1964a731f84a77bf",
"autoIncrement": 126704.0
},
"fields": {
"displayGroup": [
"3429473edc46365ecade7d2a7bef5fc0"
]
},
"sort": [
89,
1100.0,
0,
126704,
"071f7a14ba32062c1964a731f84a77bf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f3b331db0125f8e89ba72b0397b5447e",
"_score": 1100.0,
"_source": {
"id": "f3b331db0125f8e89ba72b0397b5447e",
"autoIncrement": 126703.0
},
"fields": {
"displayGroup": [
"39b05afa6cb4d38e67df3c5967fcdec3"
]
},
"sort": [
88,
1100.0,
0,
126703,
"f3b331db0125f8e89ba72b0397b5447e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "259c3a992df45dc50764e801f3bd8033",
"_score": 1100.0,
"_source": {
"id": "259c3a992df45dc50764e801f3bd8033",
"autoIncrement": 126702.0
},
"fields": {
"displayGroup": [
"96c2507fba85d33a4dcae21e443b9ef9"
]
},
"sort": [
87,
1100.0,
0,
126702,
"259c3a992df45dc50764e801f3bd8033"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ce2268cb070239704236163c3aa320d6",
"_score": 1100.0,
"_source": {
"id": "ce2268cb070239704236163c3aa320d6",
"autoIncrement": 126701.0
},
"fields": {
"displayGroup": [
"fead2992686b24cda6d67003f4cb3eb9"
]
},
"sort": [
86,
1100.0,
0,
126701,
"ce2268cb070239704236163c3aa320d6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "00cd4339f80badfa2b56098101b7dd97",
"_score": 1100.0,
"_source": {
"id": "00cd4339f80badfa2b56098101b7dd97",
"autoIncrement": 126700.0
},
"fields": {
"displayGroup": [
"557f211eb39aea1ba85f2dcac048349b"
]
},
"sort": [
85,
1100.0,
0,
126700,
"00cd4339f80badfa2b56098101b7dd97"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ac671313591fe6d4496b2da09ba180e5",
"_score": 1100.0,
"_source": {
"id": "ac671313591fe6d4496b2da09ba180e5",
"autoIncrement": 126699.0
},
"fields": {
"displayGroup": [
"f4465a7dbf834e33b59183ad648abe63"
]
},
"sort": [
84,
1100.0,
0,
126699,
"ac671313591fe6d4496b2da09ba180e5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7e6b3e86285159177668788cc78ba930",
"_score": 1100.0,
"_source": {
"id": "7e6b3e86285159177668788cc78ba930",
"autoIncrement": 126716.0
},
"fields": {
"displayGroup": [
"75a6dadb87375b172c4aebefecfd5b59"
]
},
"sort": [
0,
1100.0,
0,
126716,
"7e6b3e86285159177668788cc78ba930"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f6a0cd51bb81a8dc8b9db1cf7fe9c8b5",
"_score": 1100.0,
"_source": {
"id": "f6a0cd51bb81a8dc8b9db1cf7fe9c8b5",
"autoIncrement": 126698.0
},
"fields": {
"displayGroup": [
"68acb5ea4559bbcb2aff628b6c29f698"
]
},
"sort": [
0,
1100.0,
0,
126698,
"f6a0cd51bb81a8dc8b9db1cf7fe9c8b5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e687296644ca0333d7051a28fe80fc91",
"_score": 1100.0,
"_source": {
"id": "e687296644ca0333d7051a28fe80fc91",
"autoIncrement": 126697.0
},
"fields": {
"displayGroup": [
"d16be4b3c871b1bff873c63408e7efed"
]
},
"sort": [
0,
1100.0,
0,
126697,
"e687296644ca0333d7051a28fe80fc91"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7bf0bbe31164d949334eaa32f4add44d",
"_score": 1100.0,
"_source": {
"id": "7bf0bbe31164d949334eaa32f4add44d",
"autoIncrement": 126696.0
},
"fields": {
"displayGroup": [
"8386f83705122b8c5f0ddb3dbfeb049d"
]
},
"sort": [
0,
1100.0,
0,
126696,
"7bf0bbe31164d949334eaa32f4add44d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0ecfc9f56bbb961dfdebc58720be39d3",
"_score": 1100.0,
"_source": {
"id": "0ecfc9f56bbb961dfdebc58720be39d3",
"autoIncrement": 126695.0
},
"fields": {
"displayGroup": [
"c44b2428c35030cc3d12a5383bbb5dae"
]
},
"sort": [
0,
1100.0,
0,
126695,
"0ecfc9f56bbb961dfdebc58720be39d3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "aa122b3452735ae7780a30089718ef0b",
"_score": 1100.0,
"_source": {
"id": "aa122b3452735ae7780a30089718ef0b",
"autoIncrement": 126694.0
},
"fields": {
"displayGroup": [
"a9906cfd252288a69a89496ed7be0a89"
]
},
"sort": [
0,
1100.0,
0,
126694,
"aa122b3452735ae7780a30089718ef0b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0238079cd872e582bd5d7e76e1db8012",
"_score": 1100.0,
"_source": {
"id": "0238079cd872e582bd5d7e76e1db8012",
"autoIncrement": 126693.0
},
"fields": {
"displayGroup": [
"ec3da47e2ae3b8af56e4340719398097"
]
},
"sort": [
0,
1100.0,
0,
126693,
"0238079cd872e582bd5d7e76e1db8012"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "58b7c97a5ef7294d831fd69ce7a0d495",
"_score": 1100.0,
"_source": {
"id": "58b7c97a5ef7294d831fd69ce7a0d495",
"autoIncrement": 126692.0
},
"fields": {
"displayGroup": [
"3a8066f342202f0b6bf5dcba7dcefd38"
]
},
"sort": [
0,
1100.0,
0,
126692,
"58b7c97a5ef7294d831fd69ce7a0d495"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c36515a39c9016c0a2c9f8d6f17684d8",
"_score": 1100.0,
"_source": {
"id": "c36515a39c9016c0a2c9f8d6f17684d8",
"autoIncrement": 126691.0
},
"fields": {
"displayGroup": [
"9dcc6b850168c32c65e8c0b2a5787860"
]
},
"sort": [
0,
1100.0,
0,
126691,
"c36515a39c9016c0a2c9f8d6f17684d8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9b5b9a7b927154e734e2b07f675c8b35",
"_score": 1100.0,
"_source": {
"id": "9b5b9a7b927154e734e2b07f675c8b35",
"autoIncrement": 126690.0
},
"fields": {
"displayGroup": [
"76142b773989b808664940aba137e4f5"
]
},
"sort": [
0,
1100.0,
0,
126690,
"9b5b9a7b927154e734e2b07f675c8b35"
]
}
]
},
"aggregations": {
"total-count": {
"value": 450
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.97 ms |
Request:
{"index":"staging-67_product","track_total_hits":false,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"6bea64103f3985500f32c4f72e408bdc"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"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_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","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":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"multi-width":{"composite":{"sources":[{"multi-width.sorting":{"terms":{"field":"width","order":"ASC"}}},{"multi-width.key":{"terms":{"field":"width"}}}],"size":"99999"}},"multi-height":{"composite":{"sources":[{"multi-height.sorting":{"terms":{"field":"height","order":"ASC"}}},{"multi-height.key":{"terms":{"field":"height"}}}],"size":"99999"}},"multi-tiefe":{"composite":{"sources":[{"multi-tiefe.sorting":{"terms":{"field":"attribute_tiefe","order":"ASC"}}},{"multi-tiefe.key":{"terms":{"field":"attribute_tiefe"}}}],"size":"99999"}},"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"multi-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"size":"99999"}},"multi-fachlast":{"composite":{"sources":[{"multi-fachlast.sorting":{"terms":{"field":"attribute_fachlast","order":"ASC"}}},{"multi-fachlast.key":{"terms":{"field":"attribute_fachlast"}}}],"size":"99999"}},"multi-ausfuehrungBoden":{"composite":{"sources":[{"multi-ausfuehrungBoden.sorting":{"terms":{"field":"attribute_ausfuehrungBoden","order":"ASC"}}},{"multi-ausfuehrungBoden.key":{"terms":{"field":"attribute_ausfuehrungBoden"}}}],"size":"99999"}},"multi-farbeRahmen":{"composite":{"sources":[{"multi-farbeRahmen.sorting":{"terms":{"field":"attribute_farbeRahmen","order":"ASC"}}},{"multi-farbeRahmen.key":{"terms":{"field":"attribute_farbeRahmen"}}}],"size":"99999"}},"manufacturer-count":{"terms":{"field":"manufacturerId","size":10000}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
POST http://localhost:9200/staging-67_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": [
{
"term": {
"active": true
}
},
{
"range": {
"visibility_132e445c03814d67ac47c04afb6d5d99": {
"gte": 30
}
}
}
]
}
},
{
"term": {
"categoryTree": "6bea64103f3985500f32c4f72e408bdc"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"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_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"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": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"multi-width": {
"composite": {
"sources": [
{
"multi-width.sorting": {
"terms": {
"field": "width",
"order": "ASC"
}
}
},
{
"multi-width.key": {
"terms": {
"field": "width"
}
}
}
],
"size": "99999"
}
},
"multi-height": {
"composite": {
"sources": [
{
"multi-height.sorting": {
"terms": {
"field": "height",
"order": "ASC"
}
}
},
{
"multi-height.key": {
"terms": {
"field": "height"
}
}
}
],
"size": "99999"
}
},
"multi-tiefe": {
"composite": {
"sources": [
{
"multi-tiefe.sorting": {
"terms": {
"field": "attribute_tiefe",
"order": "ASC"
}
}
},
{
"multi-tiefe.key": {
"terms": {
"field": "attribute_tiefe"
}
}
}
],
"size": "99999"
}
},
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"multi-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"size": "99999"
}
},
"multi-fachlast": {
"composite": {
"sources": [
{
"multi-fachlast.sorting": {
"terms": {
"field": "attribute_fachlast",
"order": "ASC"
}
}
},
{
"multi-fachlast.key": {
"terms": {
"field": "attribute_fachlast"
}
}
}
],
"size": "99999"
}
},
"multi-ausfuehrungBoden": {
"composite": {
"sources": [
{
"multi-ausfuehrungBoden.sorting": {
"terms": {
"field": "attribute_ausfuehrungBoden",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungBoden.key": {
"terms": {
"field": "attribute_ausfuehrungBoden"
}
}
}
],
"size": "99999"
}
},
"multi-farbeRahmen": {
"composite": {
"sources": [
{
"multi-farbeRahmen.sorting": {
"terms": {
"field": "attribute_farbeRahmen",
"order": "ASC"
}
}
},
{
"multi-farbeRahmen.key": {
"terms": {
"field": "attribute_farbeRahmen"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 450,
"min": 101.0,
"max": 774.0,
"avg": 310.9822222222222,
"sum": 139942.0
},
"rating-exists": {
"doc_count": 450,
"rating": {
"value": 0.0
}
},
"shipping-free-filter": {
"doc_count": 0,
"shipping-free": {
"value": null
}
},
"properties": {
"doc_count": 0,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"options": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"manufacturer-count-filter": {
"after_key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "6702a27cc2ed074813e1d59f22465957",
"manufacturer-count-filter.key": "6702a27cc2ed074813e1d59f22465957"
},
"doc_count": 108
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 190
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"multi-width": {
"after_key": {
"multi-width.sorting": 5140.0,
"multi-width.key": 5140.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 750.0,
"multi-width.key": 750.0
},
"doc_count": 54
},
{
"key": {
"multi-width.sorting": 875.0,
"multi-width.key": 875.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 960.0,
"multi-width.key": 960.0
},
"doc_count": 54
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 64
},
{
"key": {
"multi-width.sorting": 1005.0,
"multi-width.key": 1005.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 1010.0,
"multi-width.key": 1010.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 1250.0,
"multi-width.key": 1250.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 1260.0,
"multi-width.key": 1260.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 1285.0,
"multi-width.key": 1285.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 2010.0,
"multi-width.key": 2010.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 2570.0,
"multi-width.key": 2570.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 3015.0,
"multi-width.key": 3015.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 3855.0,
"multi-width.key": 3855.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 4020.0,
"multi-width.key": 4020.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 5140.0,
"multi-width.key": 5140.0
},
"doc_count": 1
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 2750.0,
"multi-height.key": 2750.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 1900.0,
"multi-height.key": 1900.0
},
"doc_count": 36
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 119
},
{
"key": {
"multi-height.sorting": 2075.0,
"multi-height.key": 2075.0
},
"doc_count": 35
},
{
"key": {
"multi-height.sorting": 2250.0,
"multi-height.key": 2250.0
},
"doc_count": 68
},
{
"key": {
"multi-height.sorting": 2325.0,
"multi-height.key": 2325.0
},
"doc_count": 60
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 64
},
{
"key": {
"multi-height.sorting": 2600.0,
"multi-height.key": 2600.0
},
"doc_count": 36
},
{
"key": {
"multi-height.sorting": 2750.0,
"multi-height.key": 2750.0
},
"doc_count": 32
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 300.0,
"multi-tiefe.key": 300.0
},
"doc_count": 166
},
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 68
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 32
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 167
},
{
"key": {
"multi-tiefe.sorting": 626.0,
"multi-tiefe.key": 626.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 8
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 8
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 190
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 108
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 146
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 146
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 6
}
]
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "2 St\u00fcck",
"multi-anzahlFachboeden.key": "2 St\u00fcck"
},
"doc_count": 36
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 12
},
{
"key": {
"multi-anzahlFachboeden.sorting": "6 St\u00fcck",
"multi-anzahlFachboeden.key": "6 St\u00fcck"
},
"doc_count": 121
},
{
"key": {
"multi-anzahlFachboeden.sorting": "7 St\u00fcck",
"multi-anzahlFachboeden.key": "7 St\u00fcck"
},
"doc_count": 105
},
{
"key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"doc_count": 24
}
]
},
"multi-fachlast": {
"after_key": {
"multi-fachlast.sorting": "80 kg",
"multi-fachlast.key": "80 kg"
},
"buckets": [
{
"key": {
"multi-fachlast.sorting": "150 kg",
"multi-fachlast.key": "150 kg"
},
"doc_count": 51
},
{
"key": {
"multi-fachlast.sorting": "250 kg",
"multi-fachlast.key": "250 kg"
},
"doc_count": 67
},
{
"key": {
"multi-fachlast.sorting": "60 kg",
"multi-fachlast.key": "60 kg"
},
"doc_count": 48
},
{
"key": {
"multi-fachlast.sorting": "80 kg",
"multi-fachlast.key": "80 kg"
},
"doc_count": 96
}
]
},
"multi-ausfuehrungBoden": {
"after_key": {
"multi-ausfuehrungBoden.sorting": "Stahl",
"multi-ausfuehrungBoden.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-ausfuehrungBoden.sorting": "Spanplatte",
"multi-ausfuehrungBoden.key": "Spanplatte"
},
"doc_count": 67
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahl",
"multi-ausfuehrungBoden.key": "Stahl"
},
"doc_count": 231
}
]
},
"multi-farbeRahmen": {
"after_key": {
"multi-farbeRahmen.sorting": "verzinkt",
"multi-farbeRahmen.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-farbeRahmen.sorting": "RAL 7035 lichtgrau",
"multi-farbeRahmen.key": "RAL 7035 lichtgrau"
},
"doc_count": 108
},
{
"key": {
"multi-farbeRahmen.sorting": "verzinkt",
"multi-farbeRahmen.key": "verzinkt"
},
"doc_count": 190
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 190
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 108
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|