| 1 |
16.57 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":"d65d88a8b8740496fcde80b01c793595"}},{"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":48,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 93,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "0c68948866d30fa592fe6ff6e3c38203",
"_score": 1100.0,
"_source": {
"id": "0c68948866d30fa592fe6ff6e3c38203",
"autoIncrement": 65328.0
},
"fields": {
"displayGroup": [
"a41e8fd1105f017c2bba6a2f5fc379dc"
]
},
"sort": [
0,
1100.0,
0,
65328,
"0c68948866d30fa592fe6ff6e3c38203"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9b5e7c0e7da507102c41253c2a71b7fc",
"_score": 1100.0,
"_source": {
"id": "9b5e7c0e7da507102c41253c2a71b7fc",
"autoIncrement": 65327.0
},
"fields": {
"displayGroup": [
"a462a338b50cdbd9a48337a919751522"
]
},
"sort": [
0,
1100.0,
0,
65327,
"9b5e7c0e7da507102c41253c2a71b7fc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5fef72175ff697bd680cafa53f6c639c",
"_score": 1100.0,
"_source": {
"id": "5fef72175ff697bd680cafa53f6c639c",
"autoIncrement": 65326.0
},
"fields": {
"displayGroup": [
"4ae0aba1be6228bcf02598f58352c015"
]
},
"sort": [
0,
1100.0,
0,
65326,
"5fef72175ff697bd680cafa53f6c639c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "17ac087a389370a8a8f43eca0814236f",
"_score": 1100.0,
"_source": {
"id": "17ac087a389370a8a8f43eca0814236f",
"autoIncrement": 65325.0
},
"fields": {
"displayGroup": [
"add5e2c9240d073ef6c74baa59563bd5"
]
},
"sort": [
0,
1100.0,
0,
65325,
"17ac087a389370a8a8f43eca0814236f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ce28b681b9bf4f93e348e233a3cc1fab",
"_score": 1100.0,
"_source": {
"id": "ce28b681b9bf4f93e348e233a3cc1fab",
"autoIncrement": 65324.0
},
"fields": {
"displayGroup": [
"5e1e5fe7d8a57b4a77df76df92dfefbd"
]
},
"sort": [
0,
1100.0,
0,
65324,
"ce28b681b9bf4f93e348e233a3cc1fab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ae81b7f14105db80460a171bc253530b",
"_score": 1100.0,
"_source": {
"id": "ae81b7f14105db80460a171bc253530b",
"autoIncrement": 65323.0
},
"fields": {
"displayGroup": [
"e0f4c5d66fdbc240c8dd6a040071a327"
]
},
"sort": [
0,
1100.0,
0,
65323,
"ae81b7f14105db80460a171bc253530b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fb284833ead85735dc6a66e6ef1f03ad",
"_score": 1100.0,
"_source": {
"id": "fb284833ead85735dc6a66e6ef1f03ad",
"autoIncrement": 65322.0
},
"fields": {
"displayGroup": [
"7b83ae14e6295b27a008884264503ea3"
]
},
"sort": [
0,
1100.0,
0,
65322,
"fb284833ead85735dc6a66e6ef1f03ad"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b5a6e499dce88131e365daf65be8bda0",
"_score": 1100.0,
"_source": {
"id": "b5a6e499dce88131e365daf65be8bda0",
"autoIncrement": 65321.0
},
"fields": {
"displayGroup": [
"dad64c2959e3794a7aaf0e0a12cfc2c2"
]
},
"sort": [
0,
1100.0,
0,
65321,
"b5a6e499dce88131e365daf65be8bda0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "457b22a164427280090ac6d87ed6b517",
"_score": 1100.0,
"_source": {
"id": "457b22a164427280090ac6d87ed6b517",
"autoIncrement": 65320.0
},
"fields": {
"displayGroup": [
"d48ed37215f9adfa7cafee9aed9934cd"
]
},
"sort": [
0,
1100.0,
0,
65320,
"457b22a164427280090ac6d87ed6b517"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "691b69c2fef1dfc62ae5609d439440f6",
"_score": 1100.0,
"_source": {
"id": "691b69c2fef1dfc62ae5609d439440f6",
"autoIncrement": 65319.0
},
"fields": {
"displayGroup": [
"e6add345ea3982a308095252922227a7"
]
},
"sort": [
0,
1100.0,
0,
65319,
"691b69c2fef1dfc62ae5609d439440f6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b36827234933ec2928dd98fe0c4807eb",
"_score": 1100.0,
"_source": {
"id": "b36827234933ec2928dd98fe0c4807eb",
"autoIncrement": 64922.0
},
"fields": {
"displayGroup": [
"20d655199f38a893f540a7bc68d11861"
]
},
"sort": [
0,
1100.0,
0,
64922,
"b36827234933ec2928dd98fe0c4807eb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "45b0de1bcdbf6d1bff9c115bfbc7ba26",
"_score": 1100.0,
"_source": {
"id": "45b0de1bcdbf6d1bff9c115bfbc7ba26",
"autoIncrement": 64921.0
},
"fields": {
"displayGroup": [
"5cfb1ffaa930d1df780687ae36a3c15a"
]
},
"sort": [
0,
1100.0,
0,
64921,
"45b0de1bcdbf6d1bff9c115bfbc7ba26"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "debfaad0ba7fb4d139af1c37e07c763e",
"_score": 1100.0,
"_source": {
"id": "debfaad0ba7fb4d139af1c37e07c763e",
"autoIncrement": 64920.0
},
"fields": {
"displayGroup": [
"190e70fb17044613f12ca690d5ae64b5"
]
},
"sort": [
0,
1100.0,
0,
64920,
"debfaad0ba7fb4d139af1c37e07c763e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9e5ffcdda3e9f9750e5a7ef2595c298f",
"_score": 1100.0,
"_source": {
"id": "9e5ffcdda3e9f9750e5a7ef2595c298f",
"autoIncrement": 64919.0
},
"fields": {
"displayGroup": [
"f2e88491176cc81eeefe7ec5699b3074"
]
},
"sort": [
0,
1100.0,
0,
64919,
"9e5ffcdda3e9f9750e5a7ef2595c298f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "77334f7df0804593c4d841c200adb31c",
"_score": 1100.0,
"_source": {
"id": "77334f7df0804593c4d841c200adb31c",
"autoIncrement": 64918.0
},
"fields": {
"displayGroup": [
"2dca84064b04f8dae367a309f07e8d06"
]
},
"sort": [
0,
1100.0,
0,
64918,
"77334f7df0804593c4d841c200adb31c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7df6d464c6c0d298a07fff9f3fd0693b",
"_score": 1100.0,
"_source": {
"id": "7df6d464c6c0d298a07fff9f3fd0693b",
"autoIncrement": 64917.0
},
"fields": {
"displayGroup": [
"7a7ade3a3a153844a73b3c05488bc6e9"
]
},
"sort": [
0,
1100.0,
0,
64917,
"7df6d464c6c0d298a07fff9f3fd0693b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b5cd2c33881ba5c8631291e1c4b384b4",
"_score": 1100.0,
"_source": {
"id": "b5cd2c33881ba5c8631291e1c4b384b4",
"autoIncrement": 64916.0
},
"fields": {
"displayGroup": [
"f57c4e60539d2514f92690a87c719b66"
]
},
"sort": [
0,
1100.0,
0,
64916,
"b5cd2c33881ba5c8631291e1c4b384b4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0a7d91fc377425789ac167907f019a5b",
"_score": 1100.0,
"_source": {
"id": "0a7d91fc377425789ac167907f019a5b",
"autoIncrement": 64915.0
},
"fields": {
"displayGroup": [
"10cc866888b3582e7baf8d1a7a0060d5"
]
},
"sort": [
0,
1100.0,
0,
64915,
"0a7d91fc377425789ac167907f019a5b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7678e30bbe4ac6bae4c77a26be1859a4",
"_score": 1100.0,
"_source": {
"id": "7678e30bbe4ac6bae4c77a26be1859a4",
"autoIncrement": 64914.0
},
"fields": {
"displayGroup": [
"bf96bcd1e27f5d61807702202c24d578"
]
},
"sort": [
0,
1100.0,
0,
64914,
"7678e30bbe4ac6bae4c77a26be1859a4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e08dcf50f702c28dbdd16c61e8579989",
"_score": 1100.0,
"_source": {
"id": "e08dcf50f702c28dbdd16c61e8579989",
"autoIncrement": 25513.0
},
"fields": {
"displayGroup": [
"cc287f27c59225d8cb57a4bb880e11a6"
]
},
"sort": [
0,
1100.0,
0,
25513,
"e08dcf50f702c28dbdd16c61e8579989"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "aefa4f17b84ce27b545412ad53557bce",
"_score": 1100.0,
"_source": {
"id": "aefa4f17b84ce27b545412ad53557bce",
"autoIncrement": 25512.0
},
"fields": {
"displayGroup": [
"ae4976faffa9744de48edca2f1a326b3"
]
},
"sort": [
0,
1100.0,
0,
25512,
"aefa4f17b84ce27b545412ad53557bce"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cef3f1066f5c6d5416177286ef88431a",
"_score": 1100.0,
"_source": {
"id": "cef3f1066f5c6d5416177286ef88431a",
"autoIncrement": 25511.0
},
"fields": {
"displayGroup": [
"81c969a6d2df1a18e4c2916b673ede62"
]
},
"sort": [
0,
1100.0,
0,
25511,
"cef3f1066f5c6d5416177286ef88431a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2b8ae285fc3b25d0e5be2f312b84ef08",
"_score": 1100.0,
"_source": {
"id": "2b8ae285fc3b25d0e5be2f312b84ef08",
"autoIncrement": 25510.0
},
"fields": {
"displayGroup": [
"ffba63fbfccf802744e01b51b12b4017"
]
},
"sort": [
0,
1100.0,
0,
25510,
"2b8ae285fc3b25d0e5be2f312b84ef08"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a137be3691633c5c31ba378b0d475717",
"_score": 1100.0,
"_source": {
"id": "a137be3691633c5c31ba378b0d475717",
"autoIncrement": 25479.0
},
"fields": {
"displayGroup": [
"8930d1938a3dd15ec94107ce0ab6716b"
]
},
"sort": [
0,
1100.0,
0,
25479,
"a137be3691633c5c31ba378b0d475717"
]
}
]
},
"aggregations": {
"total-count": {
"value": 93
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.34 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":"d65d88a8b8740496fcde80b01c793595"}},{"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"}}}},"width":{"stats":{"field":"width"}},"width-stats":{"filter":{"range":{"width":{"gt":0.0}}},"aggregations":{"width-stats":{"stats":{"field":"width"}}}},"height":{"stats":{"field":"height"}},"height-stats":{"filter":{"range":{"height":{"gt":0.0}}},"aggregations":{"height-stats":{"stats":{"field":"height"}}}},"tiefe":{"stats":{"field":"attribute_tiefe"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"multi-ausfuehrungTrennwandelement":{"composite":{"sources":[{"multi-ausfuehrungTrennwandelement.sorting":{"terms":{"field":"attribute_ausfuehrungTrennwandelement","order":"ASC"}}},{"multi-ausfuehrungTrennwandelement.key":{"terms":{"field":"attribute_ausfuehrungTrennwandelement"}}}],"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": "d65d88a8b8740496fcde80b01c793595"
}
},
{
"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"
}
}
}
},
"width": {
"stats": {
"field": "width"
}
},
"width-stats": {
"filter": {
"range": {
"width": {
"gt": 0.0
}
}
},
"aggregations": {
"width-stats": {
"stats": {
"field": "width"
}
}
}
},
"height": {
"stats": {
"field": "height"
}
},
"height-stats": {
"filter": {
"range": {
"height": {
"gt": 0.0
}
}
},
"aggregations": {
"height-stats": {
"stats": {
"field": "height"
}
}
}
},
"tiefe": {
"stats": {
"field": "attribute_tiefe"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"multi-ausfuehrungTrennwandelement": {
"composite": {
"sources": [
{
"multi-ausfuehrungTrennwandelement.sorting": {
"terms": {
"field": "attribute_ausfuehrungTrennwandelement",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungTrennwandelement.key": {
"terms": {
"field": "attribute_ausfuehrungTrennwandelement"
}
}
}
],
"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": 93,
"min": 34.5,
"max": 8299.0,
"avg": 1257.9408602150538,
"sum": 116988.5
},
"rating-exists": {
"doc_count": 93,
"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": "d4209d6f7a6d6d1745ec549336714d81",
"manufacturer-count-filter.key": "d4209d6f7a6d6d1745ec549336714d81"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "370f952a6a12b228a3e6113f77b76902",
"manufacturer-count-filter.key": "370f952a6a12b228a3e6113f77b76902"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "4616606d5a8590d8c1d305d50dce2f73",
"manufacturer-count-filter.key": "4616606d5a8590d8c1d305d50dce2f73"
},
"doc_count": 82
},
{
"key": {
"manufacturer-count-filter.sorting": "d4209d6f7a6d6d1745ec549336714d81",
"manufacturer-count-filter.key": "d4209d6f7a6d6d1745ec549336714d81"
},
"doc_count": 7
}
]
},
"bool-reduced": {
"doc_count": 10,
"bool-reduced": {
"value": 10
}
},
"width": {
"count": 60,
"min": 250.0,
"max": 5000.0,
"avg": 1867.5,
"sum": 112050.0
},
"width-stats": {
"doc_count": 60,
"width-stats": {
"count": 60,
"min": 250.0,
"max": 5000.0,
"avg": 1867.5,
"sum": 112050.0
}
},
"height": {
"count": 76,
"min": 650.0,
"max": 3000.0,
"avg": 1885.5263157894738,
"sum": 143300.0
},
"height-stats": {
"doc_count": 76,
"height-stats": {
"count": 76,
"min": 650.0,
"max": 3000.0,
"avg": 1885.5263157894738,
"sum": 143300.0
}
},
"tiefe": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Sonstige Trennwandsysteme",
"multi-typModel.key": "Sonstige Trennwandsysteme"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Lager- und Maschinentrennwandsysteme",
"multi-typModel.key": "Lager- und Maschinentrennwandsysteme"
},
"doc_count": 10
},
{
"key": {
"multi-typModel.sorting": "Lager-Trennwandsysteme",
"multi-typModel.key": "Lager-Trennwandsysteme"
},
"doc_count": 76
},
{
"key": {
"multi-typModel.sorting": "Sonstige Trennwandsysteme",
"multi-typModel.key": "Sonstige Trennwandsysteme"
},
"doc_count": 7
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 1018 Zinkgelb",
"multi-farbe.key": "RAL 1018 Zinkgelb"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "RAL 1018 zinkgelb",
"multi-farbe.key": "RAL 1018 zinkgelb"
},
"doc_count": 15
},
{
"key": {
"multi-farbe.sorting": "RAL 7037 Staubgrau",
"multi-farbe.key": "RAL 7037 Staubgrau"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "RAL 7037 staubgrau",
"multi-farbe.key": "RAL 7037 staubgrau"
},
"doc_count": 49
},
{
"key": {
"multi-farbe.sorting": "RAL 9005 Tiefschwarz",
"multi-farbe.key": "RAL 9005 Tiefschwarz"
},
"doc_count": 9
},
{
"key": {
"multi-farbe.sorting": "RAL 9005 tiefschwarz",
"multi-farbe.key": "RAL 9005 tiefschwarz"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"doc_count": 3
}
]
},
"multi-ausfuehrungTrennwandelement": {
"after_key": {
"multi-ausfuehrungTrennwandelement.sorting": "Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Wandelement"
},
"buckets": [
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Anfangs und Endpfosten",
"multi-ausfuehrungTrennwandelement.key": "Anfangs und Endpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Anfangs- und Endpfosten",
"multi-ausfuehrungTrennwandelement.key": "Anfangs- und Endpfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Anfangs-\/End-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "Anfangs-\/End-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement \u00fcber Doppelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement \u00fcber Doppelt\u00fcr"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement \u00fcber Einzelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement \u00fcber Einzelt\u00fcr"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Aufsatzelement \u00fcber Schiebet\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Aufsatzelement \u00fcber Schiebet\u00fcr"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Ausgabeelement mit Ausgabetisch",
"multi-ausfuehrungTrennwandelement.key": "Ausgabeelement mit Ausgabetisch"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Doppel-Fl\u00fcgeltor",
"multi-ausfuehrungTrennwandelement.key": "Doppel-Fl\u00fcgeltor"
},
"doc_count": 8
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Doppel-Fl\u00fcgelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Doppel-Fl\u00fcgelt\u00fcr"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Eck-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "Eck-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Eckpfosten",
"multi-ausfuehrungTrennwandelement.key": "Eckpfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Falttor",
"multi-ausfuehrungTrennwandelement.key": "Falttor"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Fluegeltuer",
"multi-ausfuehrungTrennwandelement.key": "Fluegeltuer"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Fl\u00fcgelt\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Fl\u00fcgelt\u00fcr"
},
"doc_count": 3
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Freitragendes Schiebetor",
"multi-ausfuehrungTrennwandelement.key": "Freitragendes Schiebetor"
},
"doc_count": 4
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Klinkengriff f\u00fcr Schiebet\u00fcren, abschlie\u00dfbar",
"multi-ausfuehrungTrennwandelement.key": "Klinkengriff f\u00fcr Schiebet\u00fcren, abschlie\u00dfbar"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Mittel-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "Mittel-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Mittelpfosten",
"multi-ausfuehrungTrennwandelement.key": "Mittelpfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Radsatz",
"multi-ausfuehrungTrennwandelement.key": "Radsatz"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Schiebetuer",
"multi-ausfuehrungTrennwandelement.key": "Schiebetuer"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Schiebet\u00fcr",
"multi-ausfuehrungTrennwandelement.key": "Schiebet\u00fcr"
},
"doc_count": 6
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Sicherheitsschalter f\u00fcr Einzel- und Doppel-Fl\u00fcgelt\u00fcren",
"multi-ausfuehrungTrennwandelement.key": "Sicherheitsschalter f\u00fcr Einzel- und Doppel-Fl\u00fcgelt\u00fcren"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Sicherheitsschalter f\u00fcr Schiebet\u00fcren",
"multi-ausfuehrungTrennwandelement.key": "Sicherheitsschalter f\u00fcr Schiebet\u00fcren"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Stellfu\u00df",
"multi-ausfuehrungTrennwandelement.key": "Stellfu\u00df"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "T-Aufsatzpfosten",
"multi-ausfuehrungTrennwandelement.key": "T-Aufsatzpfosten"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "T-Pfosten",
"multi-ausfuehrungTrennwandelement.key": "T-Pfosten"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Aufsatzelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Aufsatzelement"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Eck-Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Eck-Wandelement"
},
"doc_count": 2
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Eckelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Eckelement"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Element",
"multi-ausfuehrungTrennwandelement.key": "Vario-Element"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Vario-Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Vario-Wandelement"
},
"doc_count": 1
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Wandanschlussprofil",
"multi-ausfuehrungTrennwandelement.key": "Wandanschlussprofil"
},
"doc_count": 3
},
{
"key": {
"multi-ausfuehrungTrennwandelement.sorting": "Wandelement",
"multi-ausfuehrungTrennwandelement.key": "Wandelement"
},
"doc_count": 13
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "4616606d5a8590d8c1d305d50dce2f73",
"doc_count": 82
},
{
"key": "d4209d6f7a6d6d1745ec549336714d81",
"doc_count": 7
},
{
"key": "370f952a6a12b228a3e6113f77b76902",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|