| 1 |
21.35 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":"969e9d8d4509e20ed09840a20f075ec8"}},{"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":168,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 245,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "22db66ccb88448056c4a0de64e11f02a",
"_score": 100.0,
"_source": {
"id": "22db66ccb88448056c4a0de64e11f02a",
"autoIncrement": 29426.0
},
"fields": {
"displayGroup": [
"4ec4e1293fc104924b349271c661d036"
]
},
"sort": [
0,
100.0,
0,
29426,
"22db66ccb88448056c4a0de64e11f02a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c2e8ca435a78ebecd93f82512ad3d68c",
"_score": 100.0,
"_source": {
"id": "c2e8ca435a78ebecd93f82512ad3d68c",
"autoIncrement": 29415.0
},
"fields": {
"displayGroup": [
"5c04684d7eb14ddeede56e3101a5dc96"
]
},
"sort": [
0,
100.0,
0,
29415,
"c2e8ca435a78ebecd93f82512ad3d68c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5590fbcee6d96280a0e1e9f3114e44b8",
"_score": 100.0,
"_source": {
"id": "5590fbcee6d96280a0e1e9f3114e44b8",
"autoIncrement": 29414.0
},
"fields": {
"displayGroup": [
"153ae1ed919c8ad05ae4d150edac87e4"
]
},
"sort": [
0,
100.0,
0,
29414,
"5590fbcee6d96280a0e1e9f3114e44b8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "260b2a0043590c95f5638fee5d51d5a6",
"_score": 100.0,
"_source": {
"id": "260b2a0043590c95f5638fee5d51d5a6",
"autoIncrement": 27584.0
},
"fields": {
"displayGroup": [
"a95625f5efce371455a4febffe68ab81"
]
},
"sort": [
0,
100.0,
0,
27584,
"260b2a0043590c95f5638fee5d51d5a6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3e79959887e3c270eb773967a9bab82f",
"_score": 100.0,
"_source": {
"id": "3e79959887e3c270eb773967a9bab82f",
"autoIncrement": 27583.0
},
"fields": {
"displayGroup": [
"f93b3b8ca58cbc1a6f6979e143e404ad"
]
},
"sort": [
0,
100.0,
0,
27583,
"3e79959887e3c270eb773967a9bab82f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6a99eab126f6a27b05c82c2a1ccfed62",
"_score": 100.0,
"_source": {
"id": "6a99eab126f6a27b05c82c2a1ccfed62",
"autoIncrement": 27268.0
},
"fields": {
"displayGroup": [
"272ea0c53a321f0a320c8c9ff77591e1"
]
},
"sort": [
0,
100.0,
0,
27268,
"6a99eab126f6a27b05c82c2a1ccfed62"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "90c1257831783283d2f3c0f2147e8668",
"_score": 100.0,
"_source": {
"id": "90c1257831783283d2f3c0f2147e8668",
"autoIncrement": 27267.0
},
"fields": {
"displayGroup": [
"887ed3a01e5beb3f6fdf892699db75d3"
]
},
"sort": [
0,
100.0,
0,
27267,
"90c1257831783283d2f3c0f2147e8668"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6e7f8ff2e0a7771936bfa459bb9ca600",
"_score": 100.0,
"_source": {
"id": "6e7f8ff2e0a7771936bfa459bb9ca600",
"autoIncrement": 27266.0
},
"fields": {
"displayGroup": [
"93b69ca1181070044daed670e411e1dc"
]
},
"sort": [
0,
100.0,
0,
27266,
"6e7f8ff2e0a7771936bfa459bb9ca600"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "076a2d4322c5d9e7eabbd787c41a0103",
"_score": 100.0,
"_source": {
"id": "076a2d4322c5d9e7eabbd787c41a0103",
"autoIncrement": 27265.0
},
"fields": {
"displayGroup": [
"c78980a22f0caf992c3be41cf05ab8a5"
]
},
"sort": [
0,
100.0,
0,
27265,
"076a2d4322c5d9e7eabbd787c41a0103"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1e779f3681cbd1558e7a5fda567ca887",
"_score": 100.0,
"_source": {
"id": "1e779f3681cbd1558e7a5fda567ca887",
"autoIncrement": 27264.0
},
"fields": {
"displayGroup": [
"44720d636ddcff94bafc6a8de3db7f91"
]
},
"sort": [
0,
100.0,
0,
27264,
"1e779f3681cbd1558e7a5fda567ca887"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "018a2c78dd97e0ede9af0d92c5b00036",
"_score": 100.0,
"_source": {
"id": "018a2c78dd97e0ede9af0d92c5b00036",
"autoIncrement": 27263.0
},
"fields": {
"displayGroup": [
"9d8b324cdddd899cd9fe8d407dedfd37"
]
},
"sort": [
0,
100.0,
0,
27263,
"018a2c78dd97e0ede9af0d92c5b00036"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "023cfa162a8cb337eae8136db22a4282",
"_score": 100.0,
"_source": {
"id": "023cfa162a8cb337eae8136db22a4282",
"autoIncrement": 27262.0
},
"fields": {
"displayGroup": [
"a194d9cb97ef759dd34ce2aa8a23ae73"
]
},
"sort": [
0,
100.0,
0,
27262,
"023cfa162a8cb337eae8136db22a4282"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f88d565c8629d3fb896b40c4f07bba63",
"_score": 100.0,
"_source": {
"id": "f88d565c8629d3fb896b40c4f07bba63",
"autoIncrement": 27261.0
},
"fields": {
"displayGroup": [
"132e64f5f04eaf00ab378d76c51c8ba3"
]
},
"sort": [
0,
100.0,
0,
27261,
"f88d565c8629d3fb896b40c4f07bba63"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7103c7b50b5f3e9cf3811a700413c332",
"_score": 100.0,
"_source": {
"id": "7103c7b50b5f3e9cf3811a700413c332",
"autoIncrement": 27260.0
},
"fields": {
"displayGroup": [
"2caf0740076033429e6ae9d210231e78"
]
},
"sort": [
0,
100.0,
0,
27260,
"7103c7b50b5f3e9cf3811a700413c332"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cf4d6068bda3e26689a849ea201ae053",
"_score": 100.0,
"_source": {
"id": "cf4d6068bda3e26689a849ea201ae053",
"autoIncrement": 27259.0
},
"fields": {
"displayGroup": [
"834f8241dc4bd755cc0413b1e6fb08cb"
]
},
"sort": [
0,
100.0,
0,
27259,
"cf4d6068bda3e26689a849ea201ae053"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "04a8110c948c60fb5a6a2802b863ab14",
"_score": 100.0,
"_source": {
"id": "04a8110c948c60fb5a6a2802b863ab14",
"autoIncrement": 27258.0
},
"fields": {
"displayGroup": [
"8ecf038b25ee34e489d384e13cd35098"
]
},
"sort": [
0,
100.0,
0,
27258,
"04a8110c948c60fb5a6a2802b863ab14"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e7483e7e6e77968a515e7d55554f2c2f",
"_score": 100.0,
"_source": {
"id": "e7483e7e6e77968a515e7d55554f2c2f",
"autoIncrement": 27257.0
},
"fields": {
"displayGroup": [
"fd41abcc6a0b9194f390ea216c7135b5"
]
},
"sort": [
0,
100.0,
0,
27257,
"e7483e7e6e77968a515e7d55554f2c2f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f7f3a994db996515ccda361a98ef511e",
"_score": 100.0,
"_source": {
"id": "f7f3a994db996515ccda361a98ef511e",
"autoIncrement": 27244.0
},
"fields": {
"displayGroup": [
"6c7cda66c8bcfbf1d39174dd6d983d8b"
]
},
"sort": [
0,
100.0,
0,
27244,
"f7f3a994db996515ccda361a98ef511e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "59945a2cee1588d69abf9f6d6d16956c",
"_score": 100.0,
"_source": {
"id": "59945a2cee1588d69abf9f6d6d16956c",
"autoIncrement": 27243.0
},
"fields": {
"displayGroup": [
"ff23194c454ce8afe8b9af1130c13e9a"
]
},
"sort": [
0,
100.0,
0,
27243,
"59945a2cee1588d69abf9f6d6d16956c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8b94ddfd58d7264429a35260fc7ab585",
"_score": 100.0,
"_source": {
"id": "8b94ddfd58d7264429a35260fc7ab585",
"autoIncrement": 27242.0
},
"fields": {
"displayGroup": [
"82c99b6d874a7cca6291efe4a661b202"
]
},
"sort": [
0,
100.0,
0,
27242,
"8b94ddfd58d7264429a35260fc7ab585"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eadbaa1a5a57af27f5d3b091eea28672",
"_score": 100.0,
"_source": {
"id": "eadbaa1a5a57af27f5d3b091eea28672",
"autoIncrement": 27241.0
},
"fields": {
"displayGroup": [
"4766f6943beeba60a73a200f8aa0f200"
]
},
"sort": [
0,
100.0,
0,
27241,
"eadbaa1a5a57af27f5d3b091eea28672"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "31c665a06bd22ce2943d60f0c4312917",
"_score": 100.0,
"_source": {
"id": "31c665a06bd22ce2943d60f0c4312917",
"autoIncrement": 27240.0
},
"fields": {
"displayGroup": [
"31a9d72af76af71f678dd91f8213d034"
]
},
"sort": [
0,
100.0,
0,
27240,
"31c665a06bd22ce2943d60f0c4312917"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a89bcc4dd0ed587614879a9d96f8a9ae",
"_score": 100.0,
"_source": {
"id": "a89bcc4dd0ed587614879a9d96f8a9ae",
"autoIncrement": 27239.0
},
"fields": {
"displayGroup": [
"3f48bcd14e0aaf630ff9f0df6cbb5c8e"
]
},
"sort": [
0,
100.0,
0,
27239,
"a89bcc4dd0ed587614879a9d96f8a9ae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "453e37bbdf214d2bba9b41c9a625c94b",
"_score": 100.0,
"_source": {
"id": "453e37bbdf214d2bba9b41c9a625c94b",
"autoIncrement": 27238.0
},
"fields": {
"displayGroup": [
"805ad05b5cd1ace1c9fb121c3fed54fc"
]
},
"sort": [
0,
100.0,
0,
27238,
"453e37bbdf214d2bba9b41c9a625c94b"
]
}
]
},
"aggregations": {
"total-count": {
"value": 245
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
13.74 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":"969e9d8d4509e20ed09840a20f075ec8"}},{"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_rule5b270e597f114fbba683590b4a9cb579_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_rule5b270e597f114fbba683590b4a9cb579_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"}},"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"multi-traglast":{"composite":{"sources":[{"multi-traglast.sorting":{"terms":{"field":"attribute_traglast","order":"ASC"}}},{"multi-traglast.key":{"terms":{"field":"attribute_traglast"}}}],"size":"99999"}},"multi-material":{"composite":{"sources":[{"multi-material.sorting":{"terms":{"field":"attribute_material","order":"ASC"}}},{"multi-material.key":{"terms":{"field":"attribute_material"}}}],"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": "969e9d8d4509e20ed09840a20f075ec8"
}
},
{
"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_rule5b270e597f114fbba683590b4a9cb579_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_rule5b270e597f114fbba683590b4a9cb579_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"
}
},
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"multi-traglast": {
"composite": {
"sources": [
{
"multi-traglast.sorting": {
"terms": {
"field": "attribute_traglast",
"order": "ASC"
}
}
},
{
"multi-traglast.key": {
"terms": {
"field": "attribute_traglast"
}
}
}
],
"size": "99999"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 7,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 245,
"min": 4.8,
"max": 2349.0,
"avg": 221.4387755102041,
"sum": 54252.5
},
"rating-exists": {
"doc_count": 245,
"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": "1acbf8858846ac1ca47b6395e9eca5e2",
"manufacturer-count-filter.key": "1acbf8858846ac1ca47b6395e9eca5e2"
},
"doc_count": 6
},
{
"key": {
"manufacturer-count-filter.sorting": "5267ee69add37a0408db89f9cd30c57f",
"manufacturer-count-filter.key": "5267ee69add37a0408db89f9cd30c57f"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 81
},
{
"key": {
"manufacturer-count-filter.sorting": "6702a27cc2ed074813e1d59f22465957",
"manufacturer-count-filter.key": "6702a27cc2ed074813e1d59f22465957"
},
"doc_count": 27
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 17
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke",
"multi-typModel.key": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Palettenregal Trennarme",
"multi-typModel.key": "Palettenregal Trennarme"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Ausrollregale",
"multi-typModel.key": "Zubeh\u00f6r Ausrollregale"
},
"doc_count": 8
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Auszugregale",
"multi-typModel.key": "Zubeh\u00f6r Auszugregale"
},
"doc_count": 73
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 133
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Kabeltrommelregale",
"multi-typModel.key": "Zubeh\u00f6r Kabeltrommelregale"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Reifenregale",
"multi-typModel.key": "Zubeh\u00f6r Reifenregale"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Schlauchregale",
"multi-typModel.key": "Zubeh\u00f6r Schlauchregale"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Wabenregale",
"multi-typModel.key": "Zubeh\u00f6r Wabenregale"
},
"doc_count": 6
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke",
"multi-typModel.key": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke"
},
"doc_count": 14
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 1695.0,
"multi-width.key": 1695.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 300.0,
"multi-width.key": 300.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 600.0,
"multi-width.key": 600.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 701.0,
"multi-width.key": 701.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 750.0,
"multi-width.key": 750.0
},
"doc_count": 6
},
{
"key": {
"multi-width.sorting": 800.0,
"multi-width.key": 800.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 805.0,
"multi-width.key": 805.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 870.0,
"multi-width.key": 870.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 875.0,
"multi-width.key": 875.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 890.0,
"multi-width.key": 890.0
},
"doc_count": 21
},
{
"key": {
"multi-width.sorting": 900.0,
"multi-width.key": 900.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 918.0,
"multi-width.key": 918.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 960.0,
"multi-width.key": 960.0
},
"doc_count": 6
},
{
"key": {
"multi-width.sorting": 985.0,
"multi-width.key": 985.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 1005.0,
"multi-width.key": 1005.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 1010.0,
"multi-width.key": 1010.0
},
"doc_count": 9
},
{
"key": {
"multi-width.sorting": 1090.0,
"multi-width.key": 1090.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 1200.0,
"multi-width.key": 1200.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 1250.0,
"multi-width.key": 1250.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 1260.0,
"multi-width.key": 1260.0
},
"doc_count": 9
},
{
"key": {
"multi-width.sorting": 1285.0,
"multi-width.key": 1285.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 1290.0,
"multi-width.key": 1290.0
},
"doc_count": 21
},
{
"key": {
"multi-width.sorting": 1400.0,
"multi-width.key": 1400.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 13
},
{
"key": {
"multi-width.sorting": 1695.0,
"multi-width.key": 1695.0
},
"doc_count": 2
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 2600.0,
"multi-height.key": 2600.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 75.0,
"multi-height.key": 75.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 1000.0,
"multi-height.key": 1000.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 1500.0,
"multi-height.key": 1500.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 1830.0,
"multi-height.key": 1830.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 1900.0,
"multi-height.key": 1900.0
},
"doc_count": 8
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2200.0,
"multi-height.key": 2200.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2250.0,
"multi-height.key": 2250.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2600.0,
"multi-height.key": 2600.0
},
"doc_count": 3
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 6000.0,
"multi-tiefe.key": 6000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 300.0,
"multi-tiefe.key": 300.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 32
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 27
},
{
"key": {
"multi-tiefe.sorting": 540.0,
"multi-tiefe.key": 540.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 28
},
{
"key": {
"multi-tiefe.sorting": 612.0,
"multi-tiefe.key": 612.0
},
"doc_count": 4
},
{
"key": {
"multi-tiefe.sorting": 750.0,
"multi-tiefe.key": 750.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 8
},
{
"key": {
"multi-tiefe.sorting": 860.0,
"multi-tiefe.key": 860.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 9
},
{
"key": {
"multi-tiefe.sorting": 1060.0,
"multi-tiefe.key": 1060.0
},
"doc_count": 13
},
{
"key": {
"multi-tiefe.sorting": 1260.0,
"multi-tiefe.key": 1260.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 3000.0,
"multi-tiefe.key": 3000.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 6000.0,
"multi-tiefe.key": 6000.0
},
"doc_count": 2
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 81
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 27
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 17
},
{
"key": "1acbf8858846ac1ca47b6395e9eca5e2",
"doc_count": 6
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 4
}
]
},
"multi-traglast": {
"buckets": []
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 2
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 81
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 27
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 17
},
{
"key": "1acbf8858846ac1ca47b6395e9eca5e2",
"doc_count": 6
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|