| 1 |
19.90 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":"967f4db57b7eb644abf129821c6a9671"}},{"exists":{"field":"displayGroup"}}]}}],"should":[{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea07ad57e59841906b9dac1ae23"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea3242c77a3ad7aaa686586f79c"]}}}}]}},"boost":150.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018fe3229d5677949c032d1a4983f006"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["f4e67c126b4e4b4f8b4f4b8295613b5b"]}}}}]}},"boost":1000.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["15706c7290284128acdcdc0aa07bda52"]}}}}]}},"boost":400.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["a33aa3f47e2147c9be62a08216f92c1c"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["e3d0223b8cfd4edb8b5581ae7e9ab5cf"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["62000891305f4ae4837e16e336cf2868"]}}}}]}},"boost":200.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["9222eeebbd984a1fbba6521d6c03bc43"]}}}}]}},"boost":250.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["cb292e1aaf854891a0d4e2fca32dd02f"]}}}}]}},"boost":100.0}}]}},"sort":[{"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.acris_search_sorting_relevance":{"unmapped_type":"integer","missing":0,"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":0,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 6,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1223,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "c0eee94e0f5e93ddec618e54c943c5ae",
"_score": 1100.0,
"_source": {
"id": "c0eee94e0f5e93ddec618e54c943c5ae",
"autoIncrement": 132663.0
},
"fields": {
"displayGroup": [
"ea4dac45843c1b16817ac7e56612d9da"
]
},
"sort": [
90,
1100.0,
0,
132663,
"c0eee94e0f5e93ddec618e54c943c5ae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9aea80001300bc8b685c333458ca89f6",
"_score": 1350.0,
"_source": {
"id": "9aea80001300bc8b685c333458ca89f6",
"autoIncrement": 138243.0
},
"fields": {
"displayGroup": [
"f0561b6aa814f75b477f264d2c28ef09"
]
},
"sort": [
89,
1350.0,
0,
138243,
"9aea80001300bc8b685c333458ca89f6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "95d2c7d25c1e8423831309846edb2813",
"_score": 1350.0,
"_source": {
"id": "95d2c7d25c1e8423831309846edb2813",
"autoIncrement": 133347.0
},
"fields": {
"displayGroup": [
"e9f7371d449c2b76aa6ed4cefab26340"
]
},
"sort": [
88,
1350.0,
0,
133347,
"95d2c7d25c1e8423831309846edb2813"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c7dc8c2a5f97eb2cd6888dacc7927e67",
"_score": 1350.0,
"_source": {
"id": "c7dc8c2a5f97eb2cd6888dacc7927e67",
"autoIncrement": 133355.0
},
"fields": {
"displayGroup": [
"008e81d61d9d8b0a416d67010e064504"
]
},
"sort": [
87,
1350.0,
0,
133355,
"c7dc8c2a5f97eb2cd6888dacc7927e67"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6f194bd746084dd5d18a0f85babd3fec",
"_score": 1350.0,
"_source": {
"id": "6f194bd746084dd5d18a0f85babd3fec",
"autoIncrement": 133348.0
},
"fields": {
"displayGroup": [
"ae81b3bbb68e4ac8ec3ebd557b3f5b2f"
]
},
"sort": [
86,
1350.0,
0,
133348,
"6f194bd746084dd5d18a0f85babd3fec"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "46983989c8a05e255c9145ed39ad04d0",
"_score": 1350.0,
"_source": {
"id": "46983989c8a05e255c9145ed39ad04d0",
"autoIncrement": 133333.0
},
"fields": {
"displayGroup": [
"3d832f9ca657358ff7976e627c29eb7c"
]
},
"sort": [
85,
1350.0,
0,
133333,
"46983989c8a05e255c9145ed39ad04d0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dc42ad2d2aa84bcd0d58fa57f000ee8c",
"_score": 1350.0,
"_source": {
"id": "dc42ad2d2aa84bcd0d58fa57f000ee8c",
"autoIncrement": 133334.0
},
"fields": {
"displayGroup": [
"5ce7e389df77cffa3f6bc77710dcda87"
]
},
"sort": [
84,
1350.0,
0,
133334,
"dc42ad2d2aa84bcd0d58fa57f000ee8c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3e17c36867571d7ecc965e837cfc8c59",
"_score": 1350.0,
"_source": {
"id": "3e17c36867571d7ecc965e837cfc8c59",
"autoIncrement": 133335.0
},
"fields": {
"displayGroup": [
"4c76f799e2b18f8e239e6f47a7f968cf"
]
},
"sort": [
83,
1350.0,
0,
133335,
"3e17c36867571d7ecc965e837cfc8c59"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "616816233b8e29ed7c79b1e663047c6e",
"_score": 1100.0,
"_source": {
"id": "616816233b8e29ed7c79b1e663047c6e",
"autoIncrement": 132664.0
},
"fields": {
"displayGroup": [
"29e536def92d9c180751efa2baa55232"
]
},
"sort": [
80,
1100.0,
0,
132664,
"616816233b8e29ed7c79b1e663047c6e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a880414f7566b4e091098ab5ce2b031d",
"_score": 1650.0,
"_source": {
"id": "a880414f7566b4e091098ab5ce2b031d",
"autoIncrement": 138235.0
},
"fields": {
"displayGroup": [
"8d26dea120f25b165946d5f77a03b0e9"
]
},
"sort": [
0,
1650.0,
0,
138235,
"a880414f7566b4e091098ab5ce2b031d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5638e78be74a5a456fa12738d505c356",
"_score": 1350.0,
"_source": {
"id": "5638e78be74a5a456fa12738d505c356",
"autoIncrement": 171190.0
},
"fields": {
"displayGroup": [
"15abfac54117bfb5dc1ac84c57a6efb1"
]
},
"sort": [
0,
1350.0,
0,
171190,
"5638e78be74a5a456fa12738d505c356"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f32fbfbeba7d2cdb6a49472c89a53db6",
"_score": 1350.0,
"_source": {
"id": "f32fbfbeba7d2cdb6a49472c89a53db6",
"autoIncrement": 171189.0
},
"fields": {
"displayGroup": [
"631759c5942e608c56c8cb14d29fd431"
]
},
"sort": [
0,
1350.0,
0,
171189,
"f32fbfbeba7d2cdb6a49472c89a53db6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6eb51a93cfc848635792c31f14f6d66f",
"_score": 1350.0,
"_source": {
"id": "6eb51a93cfc848635792c31f14f6d66f",
"autoIncrement": 171188.0
},
"fields": {
"displayGroup": [
"121ccf666851339e2882f7ff1ee12dd1"
]
},
"sort": [
0,
1350.0,
0,
171188,
"6eb51a93cfc848635792c31f14f6d66f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "49a3d49a25e7894ad71abf19007afd93",
"_score": 1350.0,
"_source": {
"id": "49a3d49a25e7894ad71abf19007afd93",
"autoIncrement": 171187.0
},
"fields": {
"displayGroup": [
"49c7d0c0f46604774a2b7a218ba88105"
]
},
"sort": [
0,
1350.0,
0,
171187,
"49a3d49a25e7894ad71abf19007afd93"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e2d8205fcc8a1c9d157a3d847ff2b856",
"_score": 1350.0,
"_source": {
"id": "e2d8205fcc8a1c9d157a3d847ff2b856",
"autoIncrement": 171186.0
},
"fields": {
"displayGroup": [
"9087e2b4dca22472868c1bff86c51050"
]
},
"sort": [
0,
1350.0,
0,
171186,
"e2d8205fcc8a1c9d157a3d847ff2b856"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f6ac34b1233bbe3b7b237cab6a445fc5",
"_score": 1350.0,
"_source": {
"id": "f6ac34b1233bbe3b7b237cab6a445fc5",
"autoIncrement": 171185.0
},
"fields": {
"displayGroup": [
"92de2a4693bcee722b29f7843cb56f80"
]
},
"sort": [
0,
1350.0,
0,
171185,
"f6ac34b1233bbe3b7b237cab6a445fc5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9912d846be565ac6937e897074a288b7",
"_score": 1350.0,
"_source": {
"id": "9912d846be565ac6937e897074a288b7",
"autoIncrement": 171184.0
},
"fields": {
"displayGroup": [
"63ce17f2b064d64e29067be5d23f6c57"
]
},
"sort": [
0,
1350.0,
0,
171184,
"9912d846be565ac6937e897074a288b7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dfa165f151a2b7a7f7a830e0e29cf2e5",
"_score": 1350.0,
"_source": {
"id": "dfa165f151a2b7a7f7a830e0e29cf2e5",
"autoIncrement": 171183.0
},
"fields": {
"displayGroup": [
"3bf12b15fdc0bf35dba26a8de2d8746d"
]
},
"sort": [
0,
1350.0,
0,
171183,
"dfa165f151a2b7a7f7a830e0e29cf2e5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d1f816242556b50891eed52b4728adbb",
"_score": 1350.0,
"_source": {
"id": "d1f816242556b50891eed52b4728adbb",
"autoIncrement": 171182.0
},
"fields": {
"displayGroup": [
"f4cb70e8476e50311306d3437ef213e9"
]
},
"sort": [
0,
1350.0,
0,
171182,
"d1f816242556b50891eed52b4728adbb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2a9f3fbd00a16873ac5967175b1af0d6",
"_score": 1350.0,
"_source": {
"id": "2a9f3fbd00a16873ac5967175b1af0d6",
"autoIncrement": 171181.0
},
"fields": {
"displayGroup": [
"78315d7c09b72f7b6c967d297d84a68f"
]
},
"sort": [
0,
1350.0,
0,
171181,
"2a9f3fbd00a16873ac5967175b1af0d6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f91b2bd91ed3151fa06a969e7b96de9c",
"_score": 1350.0,
"_source": {
"id": "f91b2bd91ed3151fa06a969e7b96de9c",
"autoIncrement": 171180.0
},
"fields": {
"displayGroup": [
"5263f973cff3c289c5cc6e40b9cab8ae"
]
},
"sort": [
0,
1350.0,
0,
171180,
"f91b2bd91ed3151fa06a969e7b96de9c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "548e46f8f32493a056ccd54cae696f63",
"_score": 1350.0,
"_source": {
"id": "548e46f8f32493a056ccd54cae696f63",
"autoIncrement": 171179.0
},
"fields": {
"displayGroup": [
"24afc4f874073f737268fd7439cd6bf2"
]
},
"sort": [
0,
1350.0,
0,
171179,
"548e46f8f32493a056ccd54cae696f63"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7d86718c0d749d76d30d0e71623e3f85",
"_score": 1350.0,
"_source": {
"id": "7d86718c0d749d76d30d0e71623e3f85",
"autoIncrement": 148865.0
},
"fields": {
"displayGroup": [
"1e20264afaf4493ef41cfc48857e4986"
]
},
"sort": [
0,
1350.0,
0,
148865,
"7d86718c0d749d76d30d0e71623e3f85"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9dc8cbf432a1e448dfcc62195b5f6741",
"_score": 1350.0,
"_source": {
"id": "9dc8cbf432a1e448dfcc62195b5f6741",
"autoIncrement": 148864.0
},
"fields": {
"displayGroup": [
"51993c1bab61c065ebd9556188363de0"
]
},
"sort": [
0,
1350.0,
0,
148864,
"9dc8cbf432a1e448dfcc62195b5f6741"
]
}
]
},
"aggregations": {
"total-count": {
"value": 1222
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.85 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":"967f4db57b7eb644abf129821c6a9671"}},{"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"}},"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"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": "967f4db57b7eb644abf129821c6a9671"
}
},
{
"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"
}
},
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"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": 1223,
"min": 2.0,
"max": 15416.0,
"avg": 2417.2010629599345,
"sum": 2956236.9
},
"rating-exists": {
"doc_count": 1223,
"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": 1181
}
]
},
"bool-reduced": {
"doc_count": 4,
"bool-reduced": {
"value": 4
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Palettenregale",
"multi-typModel.key": "Zubeh\u00f6r Palettenregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Auffangwannen",
"multi-typModel.key": "Auffangwannen"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Anbaufeld",
"multi-typModel.key": "Palettenregal Anbaufeld"
},
"doc_count": 84
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Auflagetr\u00e4ger",
"multi-typModel.key": "Palettenregal Auflagetr\u00e4ger"
},
"doc_count": 12
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Befestigungen",
"multi-typModel.key": "Palettenregal Befestigungen"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Distanzst\u00fccke",
"multi-typModel.key": "Palettenregal Distanzst\u00fccke"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Durchschubsicherungen",
"multi-typModel.key": "Palettenregal Durchschubsicherungen"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Grundfeld",
"multi-typModel.key": "Palettenregal Grundfeld"
},
"doc_count": 105
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Regalb\u00f6den",
"multi-typModel.key": "Palettenregal Regalb\u00f6den"
},
"doc_count": 18
},
{
"key": {
"multi-typModel.sorting": "Palettenregal R\u00fcckw\u00e4nde",
"multi-typModel.key": "Palettenregal R\u00fcckw\u00e4nde"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Set",
"multi-typModel.key": "Palettenregal Set"
},
"doc_count": 916
},
{
"key": {
"multi-typModel.sorting": "Palettenregal St\u00fctzrahmen",
"multi-typModel.key": "Palettenregal St\u00fctzrahmen"
},
"doc_count": 24
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Tiefenstege",
"multi-typModel.key": "Palettenregal Tiefenstege"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Tiefenwinkelrahmen",
"multi-typModel.key": "Palettenregal Tiefenwinkelrahmen"
},
"doc_count": 1
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Unterlegbleche",
"multi-typModel.key": "Palettenregal Unterlegbleche"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Palettenregal feuerverzinkt",
"multi-typModel.key": "Palettenregal feuerverzinkt"
},
"doc_count": 28
},
{
"key": {
"multi-typModel.sorting": "Palettenregal mobil",
"multi-typModel.key": "Palettenregal mobil"
},
"doc_count": 1
},
{
"key": {
"multi-typModel.sorting": "Rammschutz",
"multi-typModel.key": "Rammschutz"
},
"doc_count": 5
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Palettenregale",
"multi-typModel.key": "Zubeh\u00f6r Palettenregale"
},
"doc_count": 10
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 25890.0,
"multi-width.key": 25890.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 85.0,
"multi-width.key": 85.0
},
"doc_count": 16
},
{
"key": {
"multi-width.sorting": 100.0,
"multi-width.key": 100.0
},
"doc_count": 9
},
{
"key": {
"multi-width.sorting": 140.0,
"multi-width.key": 140.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 150.0,
"multi-width.key": 150.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 200.0,
"multi-width.key": 200.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 230.0,
"multi-width.key": 230.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 250.0,
"multi-width.key": 250.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 300.0,
"multi-width.key": 300.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 800.0,
"multi-width.key": 800.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1100.0,
"multi-width.key": 1100.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1300.0,
"multi-width.key": 1300.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1900.0,
"multi-width.key": 1900.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 1950.0,
"multi-width.key": 1950.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 1970.0,
"multi-width.key": 1970.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1985.0,
"multi-width.key": 1985.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 2070.0,
"multi-width.key": 2070.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 2200.0,
"multi-width.key": 2200.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 2300.0,
"multi-width.key": 2300.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 2680.0,
"multi-width.key": 2680.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 2700.0,
"multi-width.key": 2700.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 2780.0,
"multi-width.key": 2780.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 2785.0,
"multi-width.key": 2785.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 2825.0,
"multi-width.key": 2825.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 2870.0,
"multi-width.key": 2870.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 3300.0,
"multi-width.key": 3300.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 3600.0,
"multi-width.key": 3600.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 3685.0,
"multi-width.key": 3685.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 3770.0,
"multi-width.key": 3770.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 3900.0,
"multi-width.key": 3900.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 4055.0,
"multi-width.key": 4055.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 5655.0,
"multi-width.key": 5655.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 5965.0,
"multi-width.key": 5965.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 6040.0,
"multi-width.key": 6040.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 7455.0,
"multi-width.key": 7455.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 8025.0,
"multi-width.key": 8025.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 8440.0,
"multi-width.key": 8440.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 8590.0,
"multi-width.key": 8590.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 10010.0,
"multi-width.key": 10010.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 11140.0,
"multi-width.key": 11140.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 11225.0,
"multi-width.key": 11225.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 11995.0,
"multi-width.key": 11995.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 13980.0,
"multi-width.key": 13980.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 14010.0,
"multi-width.key": 14010.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 14825.0,
"multi-width.key": 14825.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 15965.0,
"multi-width.key": 15965.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 16795.0,
"multi-width.key": 16795.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 17950.0,
"multi-width.key": 17950.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 18510.0,
"multi-width.key": 18510.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 19580.0,
"multi-width.key": 19580.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 19935.0,
"multi-width.key": 19935.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 21920.0,
"multi-width.key": 21920.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 22195.0,
"multi-width.key": 22195.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 22365.0,
"multi-width.key": 22365.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 23905.0,
"multi-width.key": 23905.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 25150.0,
"multi-width.key": 25150.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 25880.0,
"multi-width.key": 25880.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 25890.0,
"multi-width.key": 25890.0
},
"doc_count": 28
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 7500.0,
"multi-height.key": 7500.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 1.0,
"multi-height.key": 1.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 3.0,
"multi-height.key": 3.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 40.0,
"multi-height.key": 40.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 80.0,
"multi-height.key": 80.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 100.0,
"multi-height.key": 100.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 110.0,
"multi-height.key": 110.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 125.0,
"multi-height.key": 125.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 145.0,
"multi-height.key": 145.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 160.0,
"multi-height.key": 160.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 315.0,
"multi-height.key": 315.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 400.0,
"multi-height.key": 400.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 1000.0,
"multi-height.key": 1000.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 1500.0,
"multi-height.key": 1500.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 2200.0,
"multi-height.key": 2200.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 77
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 152
},
{
"key": {
"multi-height.sorting": 3500.0,
"multi-height.key": 3500.0
},
"doc_count": 152
},
{
"key": {
"multi-height.sorting": 4000.0,
"multi-height.key": 4000.0
},
"doc_count": 227
},
{
"key": {
"multi-height.sorting": 4500.0,
"multi-height.key": 4500.0
},
"doc_count": 239
},
{
"key": {
"multi-height.sorting": 5000.0,
"multi-height.key": 5000.0
},
"doc_count": 56
},
{
"key": {
"multi-height.sorting": 5500.0,
"multi-height.key": 5500.0
},
"doc_count": 227
},
{
"key": {
"multi-height.sorting": 6000.0,
"multi-height.key": 6000.0
},
"doc_count": 18
},
{
"key": {
"multi-height.sorting": 6500.0,
"multi-height.key": 6500.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 7000.0,
"multi-height.key": 7000.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 7500.0,
"multi-height.key": 7500.0
},
"doc_count": 2
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1320.0,
"multi-tiefe.key": 1320.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 50.0,
"multi-tiefe.key": 50.0
},
"doc_count": 12
},
{
"key": {
"multi-tiefe.sorting": 100.0,
"multi-tiefe.key": 100.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 120.0,
"multi-tiefe.key": 120.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 230.0,
"multi-tiefe.key": 230.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 695.0,
"multi-tiefe.key": 695.0
},
"doc_count": 3
},
{
"key": {
"multi-tiefe.sorting": 795.0,
"multi-tiefe.key": 795.0
},
"doc_count": 3
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 319
},
{
"key": {
"multi-tiefe.sorting": 995.0,
"multi-tiefe.key": 995.0
},
"doc_count": 3
},
{
"key": {
"multi-tiefe.sorting": 1095.0,
"multi-tiefe.key": 1095.0
},
"doc_count": 3
},
{
"key": {
"multi-tiefe.sorting": 1100.0,
"multi-tiefe.key": 1100.0
},
"doc_count": 848
},
{
"key": {
"multi-tiefe.sorting": 1135.0,
"multi-tiefe.key": 1135.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 1320.0,
"multi-tiefe.key": 1320.0
},
"doc_count": 1
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 1181
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 1181
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|