| 1 |
17.12 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":"56151e710eba39f184e2db4a48b436a8"}},{"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": 190,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "9dc4993e52a2991005118b4d3dd26865",
"_score": 1100.0,
"_source": {
"id": "9dc4993e52a2991005118b4d3dd26865",
"autoIncrement": 114915.0
},
"fields": {
"displayGroup": [
"308298e22326420928fa1a745fa874bd"
]
},
"sort": [
0,
1100.0,
0,
114915,
"9dc4993e52a2991005118b4d3dd26865"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c0e837a8a46da3b39e26f4741401ab5f",
"_score": 1100.0,
"_source": {
"id": "c0e837a8a46da3b39e26f4741401ab5f",
"autoIncrement": 114914.0
},
"fields": {
"displayGroup": [
"321cb371e33b0b74ac056c970fd25deb"
]
},
"sort": [
0,
1100.0,
0,
114914,
"c0e837a8a46da3b39e26f4741401ab5f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bfed19ff2b0278938d3cae69b0e054c5",
"_score": 1100.0,
"_source": {
"id": "bfed19ff2b0278938d3cae69b0e054c5",
"autoIncrement": 114911.0
},
"fields": {
"displayGroup": [
"7ccc9e053d3e5336868e735c13b8978d"
]
},
"sort": [
0,
1100.0,
0,
114911,
"bfed19ff2b0278938d3cae69b0e054c5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "74b8390314eb0a05dc836e3c0709fbe8",
"_score": 1100.0,
"_source": {
"id": "74b8390314eb0a05dc836e3c0709fbe8",
"autoIncrement": 114910.0
},
"fields": {
"displayGroup": [
"8237f3d25129d8fbf4082f0d03cbd825"
]
},
"sort": [
0,
1100.0,
0,
114910,
"74b8390314eb0a05dc836e3c0709fbe8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d3216f07ee991004d1525ffb66d838c5",
"_score": 1100.0,
"_source": {
"id": "d3216f07ee991004d1525ffb66d838c5",
"autoIncrement": 114907.0
},
"fields": {
"displayGroup": [
"2e04a026a30952ea599f5edfcccbbe5e"
]
},
"sort": [
0,
1100.0,
0,
114907,
"d3216f07ee991004d1525ffb66d838c5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f34367adfaab8bdbfbe56c91c0ad8203",
"_score": 1100.0,
"_source": {
"id": "f34367adfaab8bdbfbe56c91c0ad8203",
"autoIncrement": 114906.0
},
"fields": {
"displayGroup": [
"a254fc56ba84cae7eb54b00228a2236f"
]
},
"sort": [
0,
1100.0,
0,
114906,
"f34367adfaab8bdbfbe56c91c0ad8203"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "de70875080f8e09d887f3e59bf74e9b1",
"_score": 1100.0,
"_source": {
"id": "de70875080f8e09d887f3e59bf74e9b1",
"autoIncrement": 114903.0
},
"fields": {
"displayGroup": [
"f01fc33ae9875a426d4bd0e9c512a6a6"
]
},
"sort": [
0,
1100.0,
0,
114903,
"de70875080f8e09d887f3e59bf74e9b1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6b1ee716dca4dc14f3abd34db652844d",
"_score": 1100.0,
"_source": {
"id": "6b1ee716dca4dc14f3abd34db652844d",
"autoIncrement": 114902.0
},
"fields": {
"displayGroup": [
"4211ce9a0776a8ba6f1b8debee777c0b"
]
},
"sort": [
0,
1100.0,
0,
114902,
"6b1ee716dca4dc14f3abd34db652844d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "25403ad42e5cf5010f9476371d6858e0",
"_score": 1100.0,
"_source": {
"id": "25403ad42e5cf5010f9476371d6858e0",
"autoIncrement": 114899.0
},
"fields": {
"displayGroup": [
"f3c74c22dd5e7237304e3a50ce976269"
]
},
"sort": [
0,
1100.0,
0,
114899,
"25403ad42e5cf5010f9476371d6858e0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "76b733e874bacba7dddecf2033cac7b2",
"_score": 1100.0,
"_source": {
"id": "76b733e874bacba7dddecf2033cac7b2",
"autoIncrement": 114897.0
},
"fields": {
"displayGroup": [
"70dd39924b8331f982ea431cfaa2730b"
]
},
"sort": [
0,
1100.0,
0,
114897,
"76b733e874bacba7dddecf2033cac7b2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fa62aa7911c957be93a3d59e2284de9c",
"_score": 1100.0,
"_source": {
"id": "fa62aa7911c957be93a3d59e2284de9c",
"autoIncrement": 114895.0
},
"fields": {
"displayGroup": [
"316495576a047fc82172b6950a484fad"
]
},
"sort": [
0,
1100.0,
0,
114895,
"fa62aa7911c957be93a3d59e2284de9c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d0b74f2d3ecbbef32a7373940d868824",
"_score": 1100.0,
"_source": {
"id": "d0b74f2d3ecbbef32a7373940d868824",
"autoIncrement": 114893.0
},
"fields": {
"displayGroup": [
"a179aa1900517bc16be560101a5db137"
]
},
"sort": [
0,
1100.0,
0,
114893,
"d0b74f2d3ecbbef32a7373940d868824"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9b95cdc9281d133352c3382ad30a54e0",
"_score": 1100.0,
"_source": {
"id": "9b95cdc9281d133352c3382ad30a54e0",
"autoIncrement": 114891.0
},
"fields": {
"displayGroup": [
"6dbc114485c245c8b979bae0a920781a"
]
},
"sort": [
0,
1100.0,
0,
114891,
"9b95cdc9281d133352c3382ad30a54e0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fbadf5c47bd3000ff229a2b8bd27bb2e",
"_score": 1100.0,
"_source": {
"id": "fbadf5c47bd3000ff229a2b8bd27bb2e",
"autoIncrement": 114889.0
},
"fields": {
"displayGroup": [
"809ffda18220b0eb674a57af8a3c61bb"
]
},
"sort": [
0,
1100.0,
0,
114889,
"fbadf5c47bd3000ff229a2b8bd27bb2e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "05ab7191a83a166d3139784bb5ef39e4",
"_score": 1100.0,
"_source": {
"id": "05ab7191a83a166d3139784bb5ef39e4",
"autoIncrement": 114887.0
},
"fields": {
"displayGroup": [
"7973e57d53df8b14ab20252481970bc2"
]
},
"sort": [
0,
1100.0,
0,
114887,
"05ab7191a83a166d3139784bb5ef39e4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "18099982aef8e9cd132f2895d42d778d",
"_score": 1100.0,
"_source": {
"id": "18099982aef8e9cd132f2895d42d778d",
"autoIncrement": 114886.0
},
"fields": {
"displayGroup": [
"c6fa85f5a17c945c8a7d64f6affea21b"
]
},
"sort": [
0,
1100.0,
0,
114886,
"18099982aef8e9cd132f2895d42d778d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1e328de25219771d3fd171cd1e313f2a",
"_score": 1100.0,
"_source": {
"id": "1e328de25219771d3fd171cd1e313f2a",
"autoIncrement": 114883.0
},
"fields": {
"displayGroup": [
"b1f1c37c1312e9bce3484f8994567e1e"
]
},
"sort": [
0,
1100.0,
0,
114883,
"1e328de25219771d3fd171cd1e313f2a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4221bda0f437bd5c50f18a7fed30416b",
"_score": 1100.0,
"_source": {
"id": "4221bda0f437bd5c50f18a7fed30416b",
"autoIncrement": 114882.0
},
"fields": {
"displayGroup": [
"d34b922d5b3383c715995e3ade710732"
]
},
"sort": [
0,
1100.0,
0,
114882,
"4221bda0f437bd5c50f18a7fed30416b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7c1e87e7c0026010bb8ceda676b0e28d",
"_score": 1100.0,
"_source": {
"id": "7c1e87e7c0026010bb8ceda676b0e28d",
"autoIncrement": 114879.0
},
"fields": {
"displayGroup": [
"80976841963234f2d5ecacf5794e85fd"
]
},
"sort": [
0,
1100.0,
0,
114879,
"7c1e87e7c0026010bb8ceda676b0e28d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d27200b11b75e147d9675f4846205420",
"_score": 1100.0,
"_source": {
"id": "d27200b11b75e147d9675f4846205420",
"autoIncrement": 114878.0
},
"fields": {
"displayGroup": [
"3843f5b91ce26684a5b54823555d0f61"
]
},
"sort": [
0,
1100.0,
0,
114878,
"d27200b11b75e147d9675f4846205420"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ac604f1bb6699f8ef61a4d148c064e3b",
"_score": 1100.0,
"_source": {
"id": "ac604f1bb6699f8ef61a4d148c064e3b",
"autoIncrement": 114875.0
},
"fields": {
"displayGroup": [
"08488b9a0af6845f2e20b821254014e4"
]
},
"sort": [
0,
1100.0,
0,
114875,
"ac604f1bb6699f8ef61a4d148c064e3b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8171adf535222b43675e072391aeb278",
"_score": 1100.0,
"_source": {
"id": "8171adf535222b43675e072391aeb278",
"autoIncrement": 114874.0
},
"fields": {
"displayGroup": [
"be2a65f5603bd8d1efb5f1c93590a6b7"
]
},
"sort": [
0,
1100.0,
0,
114874,
"8171adf535222b43675e072391aeb278"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "94bf388081909320efce46203955971d",
"_score": 1100.0,
"_source": {
"id": "94bf388081909320efce46203955971d",
"autoIncrement": 114871.0
},
"fields": {
"displayGroup": [
"4b9867cfb07230153082d3fccabf8769"
]
},
"sort": [
0,
1100.0,
0,
114871,
"94bf388081909320efce46203955971d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4e4d4eb6a2521f92520f52dc84861578",
"_score": 1100.0,
"_source": {
"id": "4e4d4eb6a2521f92520f52dc84861578",
"autoIncrement": 114869.0
},
"fields": {
"displayGroup": [
"5dee275566611e2ac6b4841261a3db19"
]
},
"sort": [
0,
1100.0,
0,
114869,
"4e4d4eb6a2521f92520f52dc84861578"
]
}
]
},
"aggregations": {
"total-count": {
"value": 190
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.96 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":"56151e710eba39f184e2db4a48b436a8"}},{"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-width":{"composite":{"sources":[{"multi-width.sorting":{"terms":{"field":"width","order":"ASC"}}},{"multi-width.key":{"terms":{"field":"width"}}}],"size":"99999"}},"multi-height":{"composite":{"sources":[{"multi-height.sorting":{"terms":{"field":"height","order":"ASC"}}},{"multi-height.key":{"terms":{"field":"height"}}}],"size":"99999"}},"multi-tiefe":{"composite":{"sources":[{"multi-tiefe.sorting":{"terms":{"field":"attribute_tiefe","order":"ASC"}}},{"multi-tiefe.key":{"terms":{"field":"attribute_tiefe"}}}],"size":"99999"}},"multi-fachlast":{"composite":{"sources":[{"multi-fachlast.sorting":{"terms":{"field":"attribute_fachlast","order":"ASC"}}},{"multi-fachlast.key":{"terms":{"field":"attribute_fachlast"}}}],"size":"99999"}},"multi-oberflaecheBoden":{"composite":{"sources":[{"multi-oberflaecheBoden.sorting":{"terms":{"field":"attribute_oberflaecheBoden","order":"ASC"}}},{"multi-oberflaecheBoden.key":{"terms":{"field":"attribute_oberflaecheBoden"}}}],"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": "56151e710eba39f184e2db4a48b436a8"
}
},
{
"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-width": {
"composite": {
"sources": [
{
"multi-width.sorting": {
"terms": {
"field": "width",
"order": "ASC"
}
}
},
{
"multi-width.key": {
"terms": {
"field": "width"
}
}
}
],
"size": "99999"
}
},
"multi-height": {
"composite": {
"sources": [
{
"multi-height.sorting": {
"terms": {
"field": "height",
"order": "ASC"
}
}
},
{
"multi-height.key": {
"terms": {
"field": "height"
}
}
}
],
"size": "99999"
}
},
"multi-tiefe": {
"composite": {
"sources": [
{
"multi-tiefe.sorting": {
"terms": {
"field": "attribute_tiefe",
"order": "ASC"
}
}
},
{
"multi-tiefe.key": {
"terms": {
"field": "attribute_tiefe"
}
}
}
],
"size": "99999"
}
},
"multi-fachlast": {
"composite": {
"sources": [
{
"multi-fachlast.sorting": {
"terms": {
"field": "attribute_fachlast",
"order": "ASC"
}
}
},
{
"multi-fachlast.key": {
"terms": {
"field": "attribute_fachlast"
}
}
}
],
"size": "99999"
}
},
"multi-oberflaecheBoden": {
"composite": {
"sources": [
{
"multi-oberflaecheBoden.sorting": {
"terms": {
"field": "attribute_oberflaecheBoden",
"order": "ASC"
}
}
},
{
"multi-oberflaecheBoden.key": {
"terms": {
"field": "attribute_oberflaecheBoden"
}
}
}
],
"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": 190,
"min": 439.0,
"max": 2379.0,
"avg": 1013.4157894736842,
"sum": 192549.0
},
"rating-exists": {
"doc_count": 190,
"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": 136
}
]
},
"bool-reduced": {
"doc_count": 12,
"bool-reduced": {
"value": 12
}
},
"multi-width": {
"after_key": {
"multi-width.sorting": 11073.0,
"multi-width.key": 11073.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 1750.0,
"multi-width.key": 1750.0
},
"doc_count": 24
},
{
"key": {
"multi-width.sorting": 1785.0,
"multi-width.key": 1785.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 1850.0,
"multi-width.key": 1850.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 2010.0,
"multi-width.key": 2010.0
},
"doc_count": 24
},
{
"key": {
"multi-width.sorting": 2140.0,
"multi-width.key": 2140.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 2250.0,
"multi-width.key": 2250.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 2500.0,
"multi-width.key": 2500.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 2570.0,
"multi-width.key": 2570.0
},
"doc_count": 24
},
{
"key": {
"multi-width.sorting": 2700.0,
"multi-width.key": 2700.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 4398.0,
"multi-width.key": 4398.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 6623.0,
"multi-width.key": 6623.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 8848.0,
"multi-width.key": 8848.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 11073.0,
"multi-width.key": 11073.0
},
"doc_count": 1
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 71
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 65
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 42
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 18
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 18
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 53
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 55
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 34
}
]
},
"multi-fachlast": {
"after_key": {
"multi-fachlast.sorting": "975 kg",
"multi-fachlast.key": "975 kg"
},
"buckets": [
{
"key": {
"multi-fachlast.sorting": "1015 kg",
"multi-fachlast.key": "1015 kg"
},
"doc_count": 9
},
{
"key": {
"multi-fachlast.sorting": "1090 kg",
"multi-fachlast.key": "1090 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "374 kg",
"multi-fachlast.key": "374 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "400 kg",
"multi-fachlast.key": "400 kg"
},
"doc_count": 72
},
{
"key": {
"multi-fachlast.sorting": "464 kg",
"multi-fachlast.key": "464 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "467 kg",
"multi-fachlast.key": "467 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "561 kg",
"multi-fachlast.key": "561 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "580 kg",
"multi-fachlast.key": "580 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "622 kg",
"multi-fachlast.key": "622 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "650 kg",
"multi-fachlast.key": "650 kg"
},
"doc_count": 10
},
{
"key": {
"multi-fachlast.sorting": "656 kg",
"multi-fachlast.key": "656 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "660 kg",
"multi-fachlast.key": "660 kg"
},
"doc_count": 9
},
{
"key": {
"multi-fachlast.sorting": "670 kg",
"multi-fachlast.key": "670 kg"
},
"doc_count": 16
},
{
"key": {
"multi-fachlast.sorting": "696 kg",
"multi-fachlast.key": "696 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "700 kg",
"multi-fachlast.key": "700 kg"
},
"doc_count": 9
},
{
"key": {
"multi-fachlast.sorting": "777 kg",
"multi-fachlast.key": "777 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "790 kg",
"multi-fachlast.key": "790 kg"
},
"doc_count": 9
},
{
"key": {
"multi-fachlast.sorting": "812 kg",
"multi-fachlast.key": "812 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "820 kg",
"multi-fachlast.key": "820 kg"
},
"doc_count": 10
},
{
"key": {
"multi-fachlast.sorting": "899 kg",
"multi-fachlast.key": "899 kg"
},
"doc_count": 3
},
{
"key": {
"multi-fachlast.sorting": "933 kg",
"multi-fachlast.key": "933 kg"
},
"doc_count": 2
},
{
"key": {
"multi-fachlast.sorting": "950 kg",
"multi-fachlast.key": "950 kg"
},
"doc_count": 16
},
{
"key": {
"multi-fachlast.sorting": "975 kg",
"multi-fachlast.key": "975 kg"
},
"doc_count": 3
}
]
},
"multi-oberflaecheBoden": {
"after_key": {
"multi-oberflaecheBoden.sorting": "verzinkt",
"multi-oberflaecheBoden.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-oberflaecheBoden.sorting": "Holz",
"multi-oberflaecheBoden.key": "Holz"
},
"doc_count": 100
},
{
"key": {
"multi-oberflaecheBoden.sorting": "verzinkt",
"multi-oberflaecheBoden.key": "verzinkt"
},
"doc_count": 87
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 136
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|