| 1 |
17.28 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":"a37f3e4a8f5e19d03dfc78626b8312bf"}},{"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":120,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 542,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "a38b809ac98c9482525a319706679012",
"_score": 1100.0,
"_source": {
"id": "a38b809ac98c9482525a319706679012",
"autoIncrement": 134915.0
},
"fields": {
"displayGroup": [
"e9db345f84e5f04ce566e87ba578bfc4"
]
},
"sort": [
38,
1100.0,
0,
134915,
"a38b809ac98c9482525a319706679012"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "67a6f44085c5387f8ec94a8b4b564b2e",
"_score": 1100.0,
"_source": {
"id": "67a6f44085c5387f8ec94a8b4b564b2e",
"autoIncrement": 135013.0
},
"fields": {
"displayGroup": [
"6ec061b871da42e35c4ccbeb2619a257"
]
},
"sort": [
37,
1100.0,
0,
135013,
"67a6f44085c5387f8ec94a8b4b564b2e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "98072d3461b3d26add35e3d17b5db206",
"_score": 1100.0,
"_source": {
"id": "98072d3461b3d26add35e3d17b5db206",
"autoIncrement": 134914.0
},
"fields": {
"displayGroup": [
"43d176fc1bf323d06b356db97c2d87a4"
]
},
"sort": [
37,
1100.0,
0,
134914,
"98072d3461b3d26add35e3d17b5db206"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "12170f4f2bb446cb3327d0fa9f53d9c3",
"_score": 1100.0,
"_source": {
"id": "12170f4f2bb446cb3327d0fa9f53d9c3",
"autoIncrement": 135011.0
},
"fields": {
"displayGroup": [
"250c00660c96fda0771ee058fed43122"
]
},
"sort": [
36,
1100.0,
0,
135011,
"12170f4f2bb446cb3327d0fa9f53d9c3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f6cd42d643a7ac7223afa0dbd1cecfa6",
"_score": 1100.0,
"_source": {
"id": "f6cd42d643a7ac7223afa0dbd1cecfa6",
"autoIncrement": 134824.0
},
"fields": {
"displayGroup": [
"8dcf0c73fec4c6e49580787851560d6c"
]
},
"sort": [
36,
1100.0,
0,
134824,
"f6cd42d643a7ac7223afa0dbd1cecfa6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b327b94d49c1735c4f8e1a222e5d9105",
"_score": 1100.0,
"_source": {
"id": "b327b94d49c1735c4f8e1a222e5d9105",
"autoIncrement": 135020.0
},
"fields": {
"displayGroup": [
"64276d3e7954b1622dad7b4f77f75001"
]
},
"sort": [
35,
1100.0,
0,
135020,
"b327b94d49c1735c4f8e1a222e5d9105"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "05f71ee5c8df933e64b6ef72042a0fc5",
"_score": 1100.0,
"_source": {
"id": "05f71ee5c8df933e64b6ef72042a0fc5",
"autoIncrement": 73266.0
},
"fields": {
"displayGroup": [
"fd6b123f340292c7d80b0470c524c3f4"
]
},
"sort": [
35,
1100.0,
0,
73266,
"05f71ee5c8df933e64b6ef72042a0fc5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8d16f5fb187f8bdba0b471f58d9a97f3",
"_score": 1100.0,
"_source": {
"id": "8d16f5fb187f8bdba0b471f58d9a97f3",
"autoIncrement": 135018.0
},
"fields": {
"displayGroup": [
"f704fbae7a8cec4790fcedcf33f53be2"
]
},
"sort": [
34,
1100.0,
0,
135018,
"8d16f5fb187f8bdba0b471f58d9a97f3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ef0671e0a145e3c8da316ae851dc81e8",
"_score": 1100.0,
"_source": {
"id": "ef0671e0a145e3c8da316ae851dc81e8",
"autoIncrement": 73267.0
},
"fields": {
"displayGroup": [
"8d99dc00c0cdd3b81da8b43759b4461d"
]
},
"sort": [
34,
1100.0,
0,
73267,
"ef0671e0a145e3c8da316ae851dc81e8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cec0d39beaf0bf4566b6ded15181484c",
"_score": 1100.0,
"_source": {
"id": "cec0d39beaf0bf4566b6ded15181484c",
"autoIncrement": 135014.0
},
"fields": {
"displayGroup": [
"5cddc723b469325315153e8ffc2a9e0f"
]
},
"sort": [
33,
1100.0,
0,
135014,
"cec0d39beaf0bf4566b6ded15181484c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "107f3916b6ba1d8f0927d527d6268f5a",
"_score": 1100.0,
"_source": {
"id": "107f3916b6ba1d8f0927d527d6268f5a",
"autoIncrement": 134825.0
},
"fields": {
"displayGroup": [
"66e0d87c5e104a3bae42c062d8956ab1"
]
},
"sort": [
33,
1100.0,
0,
134825,
"107f3916b6ba1d8f0927d527d6268f5a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a53115e1ddead503fb66a07da1690fe3",
"_score": 1100.0,
"_source": {
"id": "a53115e1ddead503fb66a07da1690fe3",
"autoIncrement": 135016.0
},
"fields": {
"displayGroup": [
"ee46991e1d9de513d134125920e4a27e"
]
},
"sort": [
32,
1100.0,
0,
135016,
"a53115e1ddead503fb66a07da1690fe3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ff4a27128e4a206d8ea020a95c16f0f8",
"_score": 1100.0,
"_source": {
"id": "ff4a27128e4a206d8ea020a95c16f0f8",
"autoIncrement": 134826.0
},
"fields": {
"displayGroup": [
"b4f2dcddb5c52597f220c0e12cd5fa36"
]
},
"sort": [
32,
1100.0,
0,
134826,
"ff4a27128e4a206d8ea020a95c16f0f8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "669d1817539783bffb286025d10f5a88",
"_score": 1100.0,
"_source": {
"id": "669d1817539783bffb286025d10f5a88",
"autoIncrement": 134823.0
},
"fields": {
"displayGroup": [
"f730b11e0035bd50fa013ca37f2bbec7"
]
},
"sort": [
31,
1100.0,
0,
134823,
"669d1817539783bffb286025d10f5a88"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c2e3cd0e5200a0e2e63da8e899c9cf6d",
"_score": 1100.0,
"_source": {
"id": "c2e3cd0e5200a0e2e63da8e899c9cf6d",
"autoIncrement": 73660.0
},
"fields": {
"displayGroup": [
"8ef6a32c366b3fefba33ccc608936572"
]
},
"sort": [
31,
1100.0,
0,
73660,
"c2e3cd0e5200a0e2e63da8e899c9cf6d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9ffa2d78fa6abbf6c4c443f0404c130f",
"_score": 1100.0,
"_source": {
"id": "9ffa2d78fa6abbf6c4c443f0404c130f",
"autoIncrement": 135019.0
},
"fields": {
"displayGroup": [
"0bde7a76f6fecd6344cffcf1f2aea52b"
]
},
"sort": [
30,
1100.0,
0,
135019,
"9ffa2d78fa6abbf6c4c443f0404c130f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e69faf6e80563126ad48ab48cacb25f2",
"_score": 1100.0,
"_source": {
"id": "e69faf6e80563126ad48ab48cacb25f2",
"autoIncrement": 73263.0
},
"fields": {
"displayGroup": [
"b0bfa4797514f287a450c181952f07a2"
]
},
"sort": [
30,
1100.0,
0,
73263,
"e69faf6e80563126ad48ab48cacb25f2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "22e2beba927194fafcf1f258e81b0b41",
"_score": 1100.0,
"_source": {
"id": "22e2beba927194fafcf1f258e81b0b41",
"autoIncrement": 135015.0
},
"fields": {
"displayGroup": [
"4d51090f92cab6679ba3d5452b165a6a"
]
},
"sort": [
29,
1100.0,
0,
135015,
"22e2beba927194fafcf1f258e81b0b41"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "63deefbb262b188e4b32fce8fff82893",
"_score": 1100.0,
"_source": {
"id": "63deefbb262b188e4b32fce8fff82893",
"autoIncrement": 73264.0
},
"fields": {
"displayGroup": [
"6c63abc81d8bbbdb6f5329e06cdfdc4c"
]
},
"sort": [
29,
1100.0,
0,
73264,
"63deefbb262b188e4b32fce8fff82893"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "066610861d52a920c9a01586aa1f0660",
"_score": 1100.0,
"_source": {
"id": "066610861d52a920c9a01586aa1f0660",
"autoIncrement": 134822.0
},
"fields": {
"displayGroup": [
"fb596cd3554420669710cdc8e1e54fa6"
]
},
"sort": [
28,
1100.0,
0,
134822,
"066610861d52a920c9a01586aa1f0660"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "09795f45d5567c9b04429c816b244bef",
"_score": 1100.0,
"_source": {
"id": "09795f45d5567c9b04429c816b244bef",
"autoIncrement": 73661.0
},
"fields": {
"displayGroup": [
"55060596832c5cf6234755bd44e4ad54"
]
},
"sort": [
28,
1100.0,
0,
73661,
"09795f45d5567c9b04429c816b244bef"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bb612c5383adcbf49a357e5a22251041",
"_score": 1100.0,
"_source": {
"id": "bb612c5383adcbf49a357e5a22251041",
"autoIncrement": 135021.0
},
"fields": {
"displayGroup": [
"82cdef93c59e8e4797e2bb426e01fc0d"
]
},
"sort": [
27,
1100.0,
0,
135021,
"bb612c5383adcbf49a357e5a22251041"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "23957903ca08a57d7cebf58e777d8858",
"_score": 1100.0,
"_source": {
"id": "23957903ca08a57d7cebf58e777d8858",
"autoIncrement": 73261.0
},
"fields": {
"displayGroup": [
"d022759d9059917cff3734ec1f397306"
]
},
"sort": [
27,
1100.0,
0,
73261,
"23957903ca08a57d7cebf58e777d8858"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0f9745ddc14de7f803e2d26ac33649ba",
"_score": 1100.0,
"_source": {
"id": "0f9745ddc14de7f803e2d26ac33649ba",
"autoIncrement": 135022.0
},
"fields": {
"displayGroup": [
"7c9cd1f180fc5b260039512893e5eacf"
]
},
"sort": [
26,
1100.0,
0,
135022,
"0f9745ddc14de7f803e2d26ac33649ba"
]
}
]
},
"aggregations": {
"total-count": {
"value": 542
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.04 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":"a37f3e4a8f5e19d03dfc78626b8312bf"}},{"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"}}}},"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-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": "a37f3e4a8f5e19d03dfc78626b8312bf"
}
},
{
"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"
}
}
}
},
"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-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": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 542,
"min": 2.0,
"max": 122.0,
"avg": 13.272011070110702,
"sum": 7193.43
},
"rating-exists": {
"doc_count": 542,
"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": "c3a426735eefdce4df6537fb4b7ae301",
"manufacturer-count-filter.key": "c3a426735eefdce4df6537fb4b7ae301"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "1a883793b8738cf7ab301f8d7c8d5b91",
"manufacturer-count-filter.key": "1a883793b8738cf7ab301f8d7c8d5b91"
},
"doc_count": 2
},
{
"key": {
"manufacturer-count-filter.sorting": "339b2f19a3f2821963c7d2b0ca441bd2",
"manufacturer-count-filter.key": "339b2f19a3f2821963c7d2b0ca441bd2"
},
"doc_count": 8
},
{
"key": {
"manufacturer-count-filter.sorting": "c3a426735eefdce4df6537fb4b7ae301",
"manufacturer-count-filter.key": "c3a426735eefdce4df6537fb4b7ae301"
},
"doc_count": 506
}
]
},
"bool-reduced": {
"doc_count": 2,
"bool-reduced": {
"value": 2
}
},
"width": {
"count": 384,
"min": 20.0,
"max": 660.0,
"avg": 263.640625,
"sum": 101238.0
},
"width-stats": {
"doc_count": 384,
"width-stats": {
"count": 384,
"min": 20.0,
"max": 660.0,
"avg": 263.640625,
"sum": 101238.0
}
},
"height": {
"count": 264,
"min": 20.0,
"max": 1000.0,
"avg": 211.62121212121212,
"sum": 55868.0
},
"height-stats": {
"doc_count": 264,
"height-stats": {
"count": 264,
"min": 20.0,
"max": 1000.0,
"avg": 211.62121212121212,
"sum": 55868.0
}
},
"tiefe": {
"count": 1,
"min": 430.0,
"max": 430.0,
"avg": 430.0,
"sum": 430.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Hinweisschilder",
"multi-typModel.key": "Zubeh\u00f6r Hinweisschilder"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Bodenmarkieraufkleber",
"multi-typModel.key": "Bodenmarkieraufkleber"
},
"doc_count": 8
},
{
"key": {
"multi-typModel.sorting": "Brandschutzkennzeichen",
"multi-typModel.key": "Brandschutzkennzeichen"
},
"doc_count": 33
},
{
"key": {
"multi-typModel.sorting": "Gebotsschilder",
"multi-typModel.key": "Gebotsschilder"
},
"doc_count": 62
},
{
"key": {
"multi-typModel.sorting": "Parkplatzkennzeichnung",
"multi-typModel.key": "Parkplatzkennzeichnung"
},
"doc_count": 31
},
{
"key": {
"multi-typModel.sorting": "Piktogramme \/ Beschrift.",
"multi-typModel.key": "Piktogramme \/ Beschrift."
},
"doc_count": 40
},
{
"key": {
"multi-typModel.sorting": "Pr\u00fcf- und Inventarplaketten",
"multi-typModel.key": "Pr\u00fcf- und Inventarplaketten"
},
"doc_count": 13
},
{
"key": {
"multi-typModel.sorting": "Pr\u00fcfplaketten",
"multi-typModel.key": "Pr\u00fcfplaketten"
},
"doc_count": 24
},
{
"key": {
"multi-typModel.sorting": "Rettungswegkennzeichen",
"multi-typModel.key": "Rettungswegkennzeichen"
},
"doc_count": 105
},
{
"key": {
"multi-typModel.sorting": "Sicherheitsbeschilderung",
"multi-typModel.key": "Sicherheitsbeschilderung"
},
"doc_count": 30
},
{
"key": {
"multi-typModel.sorting": "Verbotskennzeichnung",
"multi-typModel.key": "Verbotskennzeichnung"
},
"doc_count": 64
},
{
"key": {
"multi-typModel.sorting": "Warnkennzeichnung",
"multi-typModel.key": "Warnkennzeichnung"
},
"doc_count": 125
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Abfallsammler f\u00fcr innen",
"multi-typModel.key": "Zubeh\u00f6r Abfallsammler f\u00fcr innen"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Hinweisschilder",
"multi-typModel.key": "Zubeh\u00f6r Hinweisschilder"
},
"doc_count": 5
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Polyethylen",
"multi-material.key": "Polyethylen"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Alu langnachleuchtend",
"multi-material.key": "Alu langnachleuchtend"
},
"doc_count": 1
},
{
"key": {
"multi-material.sorting": "Aluminium",
"multi-material.key": "Aluminium"
},
"doc_count": 125
},
{
"key": {
"multi-material.sorting": "Aluminium langnachleuchtend",
"multi-material.key": "Aluminium langnachleuchtend"
},
"doc_count": 18
},
{
"key": {
"multi-material.sorting": "Folie",
"multi-material.key": "Folie"
},
"doc_count": 197
},
{
"key": {
"multi-material.sorting": "Folie langnachleuchtend",
"multi-material.key": "Folie langnachleuchtend"
},
"doc_count": 34
},
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 87
},
{
"key": {
"multi-material.sorting": "Kunststoff langnachleuchtend",
"multi-material.key": "Kunststoff langnachleuchtend"
},
"doc_count": 38
},
{
"key": {
"multi-material.sorting": "Magnetfolie",
"multi-material.key": "Magnetfolie"
},
"doc_count": 6
},
{
"key": {
"multi-material.sorting": "PVC",
"multi-material.key": "PVC"
},
"doc_count": 12
},
{
"key": {
"multi-material.sorting": "Polyethylen",
"multi-material.key": "Polyethylen"
},
"doc_count": 6
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "c3a426735eefdce4df6537fb4b7ae301",
"doc_count": 506
},
{
"key": "339b2f19a3f2821963c7d2b0ca441bd2",
"doc_count": 8
},
{
"key": "1a883793b8738cf7ab301f8d7c8d5b91",
"doc_count": 2
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|