| 1 |
19.82 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":"fea2deb87575dd2095042b8e2a148dc6"}},{"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":96,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 6,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1305,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "09887aa6e93b6e9e2977157579143424",
"_score": 1400.0,
"_source": {
"id": "09887aa6e93b6e9e2977157579143424",
"autoIncrement": 128593.0
},
"fields": {
"displayGroup": [
"e32ea8135e432703e9f022af895eece3"
]
},
"sort": [
0,
1400.0,
0,
128593,
"09887aa6e93b6e9e2977157579143424"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "19658c1efef75e00b779cb08903fd26e",
"_score": 1400.0,
"_source": {
"id": "19658c1efef75e00b779cb08903fd26e",
"autoIncrement": 128591.0
},
"fields": {
"displayGroup": [
"2a0b8f1a865ce800a61919c250904df8"
]
},
"sort": [
0,
1400.0,
0,
128591,
"19658c1efef75e00b779cb08903fd26e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5c91f73370c2cad336c23f7087eb67ad",
"_score": 1400.0,
"_source": {
"id": "5c91f73370c2cad336c23f7087eb67ad",
"autoIncrement": 128589.0
},
"fields": {
"displayGroup": [
"37e3f67d4a3e7b7156c18dd38127d6d3"
]
},
"sort": [
0,
1400.0,
0,
128589,
"5c91f73370c2cad336c23f7087eb67ad"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eed0c5821b82c9af6e8cecde9a5f01b4",
"_score": 1400.0,
"_source": {
"id": "eed0c5821b82c9af6e8cecde9a5f01b4",
"autoIncrement": 128587.0
},
"fields": {
"displayGroup": [
"bd7750e9f49ef5dbdcb6e6ee628806de"
]
},
"sort": [
0,
1400.0,
0,
128587,
"eed0c5821b82c9af6e8cecde9a5f01b4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "18c4da540417e4bd10bb2b0eb99c1101",
"_score": 1400.0,
"_source": {
"id": "18c4da540417e4bd10bb2b0eb99c1101",
"autoIncrement": 128585.0
},
"fields": {
"displayGroup": [
"7df9f3b1513a91dff2ece1594ae25e59"
]
},
"sort": [
0,
1400.0,
0,
128585,
"18c4da540417e4bd10bb2b0eb99c1101"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8a60305a32c292f035126e0dcb5df3fa",
"_score": 1400.0,
"_source": {
"id": "8a60305a32c292f035126e0dcb5df3fa",
"autoIncrement": 128583.0
},
"fields": {
"displayGroup": [
"3451bbbde1e0f56ea6e912cbbb7a3102"
]
},
"sort": [
0,
1400.0,
0,
128583,
"8a60305a32c292f035126e0dcb5df3fa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eb6b4af77a49f61dcbd33fb36abc7f4a",
"_score": 1400.0,
"_source": {
"id": "eb6b4af77a49f61dcbd33fb36abc7f4a",
"autoIncrement": 128581.0
},
"fields": {
"displayGroup": [
"671771c5cb87294c8be65dc962ce3fc3"
]
},
"sort": [
0,
1400.0,
0,
128581,
"eb6b4af77a49f61dcbd33fb36abc7f4a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b8bb7775f1c74929c466216e03155a0e",
"_score": 1400.0,
"_source": {
"id": "b8bb7775f1c74929c466216e03155a0e",
"autoIncrement": 128579.0
},
"fields": {
"displayGroup": [
"6ea1d37ea7c45b1a6c3fa53087275be0"
]
},
"sort": [
0,
1400.0,
0,
128579,
"b8bb7775f1c74929c466216e03155a0e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a2156e1afd7932ecd5354d2c82eab3c3",
"_score": 1400.0,
"_source": {
"id": "a2156e1afd7932ecd5354d2c82eab3c3",
"autoIncrement": 128577.0
},
"fields": {
"displayGroup": [
"ac7b12870252fc7294c8fbaf73fbccf1"
]
},
"sort": [
0,
1400.0,
0,
128577,
"a2156e1afd7932ecd5354d2c82eab3c3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "102db16b211efbc18d458fac15eaa4d7",
"_score": 1400.0,
"_source": {
"id": "102db16b211efbc18d458fac15eaa4d7",
"autoIncrement": 128575.0
},
"fields": {
"displayGroup": [
"2ec203aa3d0cd589bc803e361f7f94d5"
]
},
"sort": [
0,
1400.0,
0,
128575,
"102db16b211efbc18d458fac15eaa4d7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d62634126f28c9dea0f4885fa0c26292",
"_score": 1400.0,
"_source": {
"id": "d62634126f28c9dea0f4885fa0c26292",
"autoIncrement": 128573.0
},
"fields": {
"displayGroup": [
"ce0e3bb3a8bd4a4b0c337160a80531b5"
]
},
"sort": [
0,
1400.0,
0,
128573,
"d62634126f28c9dea0f4885fa0c26292"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6eacd9dc9015b8c9164553cdbc0f7002",
"_score": 1400.0,
"_source": {
"id": "6eacd9dc9015b8c9164553cdbc0f7002",
"autoIncrement": 128571.0
},
"fields": {
"displayGroup": [
"98c7f6719f6da66ced386da7195d9647"
]
},
"sort": [
0,
1400.0,
0,
128571,
"6eacd9dc9015b8c9164553cdbc0f7002"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "be8eff23cb2aa0bb1a31b053d4c233f5",
"_score": 1400.0,
"_source": {
"id": "be8eff23cb2aa0bb1a31b053d4c233f5",
"autoIncrement": 128568.0
},
"fields": {
"displayGroup": [
"246379562f82ba69bd9368c46daa5fd2"
]
},
"sort": [
0,
1400.0,
0,
128568,
"be8eff23cb2aa0bb1a31b053d4c233f5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ecf2acfda62ebaeef5136d85038a5b10",
"_score": 1400.0,
"_source": {
"id": "ecf2acfda62ebaeef5136d85038a5b10",
"autoIncrement": 128564.0
},
"fields": {
"displayGroup": [
"6b744e6464f94eb58908397cd6b3689b"
]
},
"sort": [
0,
1400.0,
0,
128564,
"ecf2acfda62ebaeef5136d85038a5b10"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f3e9cc7d04a8ba57a141f59bd2083cd9",
"_score": 1400.0,
"_source": {
"id": "f3e9cc7d04a8ba57a141f59bd2083cd9",
"autoIncrement": 128562.0
},
"fields": {
"displayGroup": [
"3d9796a6492462c3d28e2bf122cd277d"
]
},
"sort": [
0,
1400.0,
0,
128562,
"f3e9cc7d04a8ba57a141f59bd2083cd9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ba4f0f11778db316d43a821fc6ca8df0",
"_score": 1400.0,
"_source": {
"id": "ba4f0f11778db316d43a821fc6ca8df0",
"autoIncrement": 128558.0
},
"fields": {
"displayGroup": [
"d8bb51590fa91e04a89df27c1cec2631"
]
},
"sort": [
0,
1400.0,
0,
128558,
"ba4f0f11778db316d43a821fc6ca8df0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9f91c05b10a97e89972600668972971a",
"_score": 1400.0,
"_source": {
"id": "9f91c05b10a97e89972600668972971a",
"autoIncrement": 128556.0
},
"fields": {
"displayGroup": [
"7341d61f3d2926e21a922418b12999ba"
]
},
"sort": [
0,
1400.0,
0,
128556,
"9f91c05b10a97e89972600668972971a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "40c64154117be9d392fd68d223091e5f",
"_score": 1400.0,
"_source": {
"id": "40c64154117be9d392fd68d223091e5f",
"autoIncrement": 128554.0
},
"fields": {
"displayGroup": [
"6014cf65f855effaedd4a3ed1bd92f09"
]
},
"sort": [
0,
1400.0,
0,
128554,
"40c64154117be9d392fd68d223091e5f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1545ec3b431b47b391ccff478ebc74c0",
"_score": 1400.0,
"_source": {
"id": "1545ec3b431b47b391ccff478ebc74c0",
"autoIncrement": 128550.0
},
"fields": {
"displayGroup": [
"65a20125af66ba6f4a66afcc7d7e7d25"
]
},
"sort": [
0,
1400.0,
0,
128550,
"1545ec3b431b47b391ccff478ebc74c0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7a689a836122d3f2c340555b00b3a391",
"_score": 1400.0,
"_source": {
"id": "7a689a836122d3f2c340555b00b3a391",
"autoIncrement": 128545.0
},
"fields": {
"displayGroup": [
"b9d8f13223ab24dcbd6ba355cdb390b9"
]
},
"sort": [
0,
1400.0,
0,
128545,
"7a689a836122d3f2c340555b00b3a391"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9e430ac5f21e5ba439949a91e997b37a",
"_score": 1400.0,
"_source": {
"id": "9e430ac5f21e5ba439949a91e997b37a",
"autoIncrement": 128541.0
},
"fields": {
"displayGroup": [
"1419e813ed84f367401e224651151cd8"
]
},
"sort": [
0,
1400.0,
0,
128541,
"9e430ac5f21e5ba439949a91e997b37a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "97bc892f89eb8b210a83081b27273fa3",
"_score": 1400.0,
"_source": {
"id": "97bc892f89eb8b210a83081b27273fa3",
"autoIncrement": 128539.0
},
"fields": {
"displayGroup": [
"7c4e22fb91f17ad6f0b3692121f5f398"
]
},
"sort": [
0,
1400.0,
0,
128539,
"97bc892f89eb8b210a83081b27273fa3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5f2a7bc68c8c7ee51c9df269c23aa22e",
"_score": 1400.0,
"_source": {
"id": "5f2a7bc68c8c7ee51c9df269c23aa22e",
"autoIncrement": 128537.0
},
"fields": {
"displayGroup": [
"6ecfd5f6b14d0448a7a3bca2b079c81e"
]
},
"sort": [
0,
1400.0,
0,
128537,
"5f2a7bc68c8c7ee51c9df269c23aa22e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5d85679f19e3f268654be625d9a7ebb0",
"_score": 1400.0,
"_source": {
"id": "5d85679f19e3f268654be625d9a7ebb0",
"autoIncrement": 128535.0
},
"fields": {
"displayGroup": [
"26928b08d31f693b7d6fea010e9087d8"
]
},
"sort": [
0,
1400.0,
0,
128535,
"5d85679f19e3f268654be625d9a7ebb0"
]
}
]
},
"aggregations": {
"total-count": {
"value": 1305
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.99 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":"fea2deb87575dd2095042b8e2a148dc6"}},{"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-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"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"}},"multi-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-regalsystem":{"composite":{"sources":[{"multi-regalsystem.sorting":{"terms":{"field":"attribute_regalsystem","order":"ASC"}}},{"multi-regalsystem.key":{"terms":{"field":"attribute_regalsystem"}}}],"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": "fea2deb87575dd2095042b8e2a148dc6"
}
},
{
"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-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"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"
}
},
"multi-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-regalsystem": {
"composite": {
"sources": [
{
"multi-regalsystem.sorting": {
"terms": {
"field": "attribute_regalsystem",
"order": "ASC"
}
}
},
{
"multi-regalsystem.key": {
"terms": {
"field": "attribute_regalsystem"
}
}
}
],
"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": 1305,
"min": 0.36,
"max": 1860.0,
"avg": 223.66880459770113,
"sum": 291887.79
},
"rating-exists": {
"doc_count": 1305,
"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": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 1305
}
]
},
"bool-reduced": {
"doc_count": 24,
"bool-reduced": {
"value": 24
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Langgutregale",
"multi-typModel.key": "Zubeh\u00f6r Langgutregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Fachbodenregale",
"multi-typModel.key": "Fachbodenregale"
},
"doc_count": 1057
},
{
"key": {
"multi-typModel.sorting": "Getr\u00e4nkekistenregale",
"multi-typModel.key": "Getr\u00e4nkekistenregale"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 237
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Langgutregale",
"multi-typModel.key": "Zubeh\u00f6r Langgutregale"
},
"doc_count": 9
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 5081.0,
"multi-width.key": 5081.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 600.0,
"multi-width.key": 600.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 771.0,
"multi-width.key": 771.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 870.0,
"multi-width.key": 870.0
},
"doc_count": 68
},
{
"key": {
"multi-width.sorting": 875.0,
"multi-width.key": 875.0
},
"doc_count": 138
},
{
"key": {
"multi-width.sorting": 900.0,
"multi-width.key": 900.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 906.0,
"multi-width.key": 906.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 931.0,
"multi-width.key": 931.0
},
"doc_count": 126
},
{
"key": {
"multi-width.sorting": 980.0,
"multi-width.key": 980.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 986.0,
"multi-width.key": 986.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 74
},
{
"key": {
"multi-width.sorting": 1005.0,
"multi-width.key": 1005.0
},
"doc_count": 154
},
{
"key": {
"multi-width.sorting": 1061.0,
"multi-width.key": 1061.0
},
"doc_count": 145
},
{
"key": {
"multi-width.sorting": 1186.0,
"multi-width.key": 1186.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1280.0,
"multi-width.key": 1280.0
},
"doc_count": 67
},
{
"key": {
"multi-width.sorting": 1285.0,
"multi-width.key": 1285.0
},
"doc_count": 155
},
{
"key": {
"multi-width.sorting": 1341.0,
"multi-width.key": 1341.0
},
"doc_count": 148
},
{
"key": {
"multi-width.sorting": 1586.0,
"multi-width.key": 1586.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1690.0,
"multi-width.key": 1690.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 1695.0,
"multi-width.key": 1695.0
},
"doc_count": 29
},
{
"key": {
"multi-width.sorting": 1751.0,
"multi-width.key": 1751.0
},
"doc_count": 24
},
{
"key": {
"multi-width.sorting": 1806.0,
"multi-width.key": 1806.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 2066.0,
"multi-width.key": 2066.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 2686.0,
"multi-width.key": 2686.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 3071.0,
"multi-width.key": 3071.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 3506.0,
"multi-width.key": 3506.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 4076.0,
"multi-width.key": 4076.0
},
"doc_count": 6
},
{
"key": {
"multi-width.sorting": 5081.0,
"multi-width.key": 5081.0
},
"doc_count": 6
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 100.0,
"multi-height.key": 100.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 110.0,
"multi-height.key": 110.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 120.0,
"multi-height.key": 120.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 150.0,
"multi-height.key": 150.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 200.0,
"multi-height.key": 200.0
},
"doc_count": 13
},
{
"key": {
"multi-height.sorting": 210.0,
"multi-height.key": 210.0
},
"doc_count": 5
},
{
"key": {
"multi-height.sorting": 240.0,
"multi-height.key": 240.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 310.0,
"multi-height.key": 310.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 320.0,
"multi-height.key": 320.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 400.0,
"multi-height.key": 400.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 410.0,
"multi-height.key": 410.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 460.0,
"multi-height.key": 460.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 819.0,
"multi-height.key": 819.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 1019.0,
"multi-height.key": 1019.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 1319.0,
"multi-height.key": 1319.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 1800.0,
"multi-height.key": 1800.0
},
"doc_count": 5
},
{
"key": {
"multi-height.sorting": 1980.0,
"multi-height.key": 1980.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 385
},
{
"key": {
"multi-height.sorting": 2480.0,
"multi-height.key": 2480.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 339
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 337
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 130.0,
"multi-tiefe.key": 130.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 201.0,
"multi-tiefe.key": 201.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 300.0,
"multi-tiefe.key": 300.0
},
"doc_count": 174
},
{
"key": {
"multi-tiefe.sorting": 301.0,
"multi-tiefe.key": 301.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 326.0,
"multi-tiefe.key": 326.0
},
"doc_count": 112
},
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 185
},
{
"key": {
"multi-tiefe.sorting": 401.0,
"multi-tiefe.key": 401.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 426.0,
"multi-tiefe.key": 426.0
},
"doc_count": 124
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 186
},
{
"key": {
"multi-tiefe.sorting": 501.0,
"multi-tiefe.key": 501.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 510.0,
"multi-tiefe.key": 510.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 526.0,
"multi-tiefe.key": 526.0
},
"doc_count": 118
},
{
"key": {
"multi-tiefe.sorting": 530.0,
"multi-tiefe.key": 530.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 186
},
{
"key": {
"multi-tiefe.sorting": 626.0,
"multi-tiefe.key": 626.0
},
"doc_count": 118
},
{
"key": {
"multi-tiefe.sorting": 701.0,
"multi-tiefe.key": 701.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 12
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Regalreihe",
"multi-regalausfuehrung.key": "Regalreihe"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbauregal",
"multi-regalausfuehrung.key": "Anbauregal"
},
"doc_count": 515
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 1
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundregal",
"multi-regalausfuehrung.key": "Grundregal"
},
"doc_count": 514
},
{
"key": {
"multi-regalausfuehrung.sorting": "Regalreihe",
"multi-regalausfuehrung.key": "Regalreihe"
},
"doc_count": 29
}
]
},
"multi-regalsystem": {
"after_key": {
"multi-regalsystem.sorting": "Stecksystem",
"multi-regalsystem.key": "Stecksystem"
},
"buckets": [
{
"key": {
"multi-regalsystem.sorting": "Schraubsystem",
"multi-regalsystem.key": "Schraubsystem"
},
"doc_count": 126
},
{
"key": {
"multi-regalsystem.sorting": "Stecksystem",
"multi-regalsystem.key": "Stecksystem"
},
"doc_count": 930
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 1305
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|