| 1 |
17.27 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":"b63b4fd8addb05833091b900709027f2"}},{"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": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 155,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "d8d2135b4ae02f66455b76c7a6ab892a",
"_score": 1100.0,
"_source": {
"id": "d8d2135b4ae02f66455b76c7a6ab892a",
"autoIncrement": 145599.0
},
"fields": {
"displayGroup": [
"5af64d7bedc071944d5a1413e484c467"
]
},
"sort": [
0,
1100.0,
0,
145599,
"d8d2135b4ae02f66455b76c7a6ab892a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5029c4e5d3d2102444bfa67e874c5014",
"_score": 1100.0,
"_source": {
"id": "5029c4e5d3d2102444bfa67e874c5014",
"autoIncrement": 145598.0
},
"fields": {
"displayGroup": [
"5eaec49193bcc19071d585c92831d85f"
]
},
"sort": [
0,
1100.0,
0,
145598,
"5029c4e5d3d2102444bfa67e874c5014"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6d1c04e595bc749458be916b93ea1486",
"_score": 1100.0,
"_source": {
"id": "6d1c04e595bc749458be916b93ea1486",
"autoIncrement": 136528.0
},
"fields": {
"displayGroup": [
"fb9eb3b4ec4a521cd9c88edf3960f26d"
]
},
"sort": [
0,
1100.0,
0,
136528,
"6d1c04e595bc749458be916b93ea1486"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "51105a779d0e2ee57efffa7dcd9d42f8",
"_score": 1100.0,
"_source": {
"id": "51105a779d0e2ee57efffa7dcd9d42f8",
"autoIncrement": 132648.0
},
"fields": {
"displayGroup": [
"175cd6f7c7e7ce6be52d370f0ac70a3d"
]
},
"sort": [
0,
1100.0,
0,
132648,
"51105a779d0e2ee57efffa7dcd9d42f8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7d1d57d41e8b5b307a58f7384dd8b2b1",
"_score": 1100.0,
"_source": {
"id": "7d1d57d41e8b5b307a58f7384dd8b2b1",
"autoIncrement": 128879.0
},
"fields": {
"displayGroup": [
"8d8ce2d6991e8b8b335788e73a0b624a"
]
},
"sort": [
0,
1100.0,
0,
128879,
"7d1d57d41e8b5b307a58f7384dd8b2b1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "24036f980f124d7b71913363bb102687",
"_score": 1100.0,
"_source": {
"id": "24036f980f124d7b71913363bb102687",
"autoIncrement": 128803.0
},
"fields": {
"displayGroup": [
"042a77bc826e4f441692ba323491c944"
]
},
"sort": [
0,
1100.0,
0,
128803,
"24036f980f124d7b71913363bb102687"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2b485b2221b2c8d71f60285487b2abf8",
"_score": 1100.0,
"_source": {
"id": "2b485b2221b2c8d71f60285487b2abf8",
"autoIncrement": 127807.0
},
"fields": {
"displayGroup": [
"1eb565438788d9f1475fbb214fe4cedc"
]
},
"sort": [
0,
1100.0,
0,
127807,
"2b485b2221b2c8d71f60285487b2abf8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eb5c5bb71a80a08e5393c9f4b3fed007",
"_score": 1100.0,
"_source": {
"id": "eb5c5bb71a80a08e5393c9f4b3fed007",
"autoIncrement": 127785.0
},
"fields": {
"displayGroup": [
"9e8510c1c328622d066c245f9a1e9872"
]
},
"sort": [
0,
1100.0,
0,
127785,
"eb5c5bb71a80a08e5393c9f4b3fed007"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b928428cf6b93a3b3ceeae653365ba72",
"_score": 1100.0,
"_source": {
"id": "b928428cf6b93a3b3ceeae653365ba72",
"autoIncrement": 127351.0
},
"fields": {
"displayGroup": [
"b3f7755196f5fbefe8031c798c135421"
]
},
"sort": [
0,
1100.0,
0,
127351,
"b928428cf6b93a3b3ceeae653365ba72"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a2454e2131f89a40a30b3141c38d2832",
"_score": 1100.0,
"_source": {
"id": "a2454e2131f89a40a30b3141c38d2832",
"autoIncrement": 121858.0
},
"fields": {
"displayGroup": [
"c77af315a7b4e17e6624dfd107c42548"
]
},
"sort": [
0,
1100.0,
0,
121858,
"a2454e2131f89a40a30b3141c38d2832"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "36d152928f869f2cce0784b0b49e08a2",
"_score": 1100.0,
"_source": {
"id": "36d152928f869f2cce0784b0b49e08a2",
"autoIncrement": 121857.0
},
"fields": {
"displayGroup": [
"adb388f82ddb2caaa1ad1ffcc8acbdf3"
]
},
"sort": [
0,
1100.0,
0,
121857,
"36d152928f869f2cce0784b0b49e08a2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "236b191d3a7e8b84ce161af071f27531",
"_score": 1100.0,
"_source": {
"id": "236b191d3a7e8b84ce161af071f27531",
"autoIncrement": 121835.0
},
"fields": {
"displayGroup": [
"98b0ea3db5bb76c9ded177cac4afc79b"
]
},
"sort": [
0,
1100.0,
0,
121835,
"236b191d3a7e8b84ce161af071f27531"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e6095466a00eabaebac043e47268000f",
"_score": 1100.0,
"_source": {
"id": "e6095466a00eabaebac043e47268000f",
"autoIncrement": 121686.0
},
"fields": {
"displayGroup": [
"fc05619745b66e5896f232a954db56a3"
]
},
"sort": [
0,
1100.0,
0,
121686,
"e6095466a00eabaebac043e47268000f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d6cc2b424f6e6fa58fb627c2155a356f",
"_score": 1100.0,
"_source": {
"id": "d6cc2b424f6e6fa58fb627c2155a356f",
"autoIncrement": 118982.0
},
"fields": {
"displayGroup": [
"3b30d2d414e0348ae6a171f22028af41"
]
},
"sort": [
0,
1100.0,
0,
118982,
"d6cc2b424f6e6fa58fb627c2155a356f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e24f86b8be4d1216c09c4674afebd107",
"_score": 1100.0,
"_source": {
"id": "e24f86b8be4d1216c09c4674afebd107",
"autoIncrement": 105903.0
},
"fields": {
"displayGroup": [
"e7ad5526086aa8e5ba0e7a87bade98ea"
]
},
"sort": [
0,
1100.0,
0,
105903,
"e24f86b8be4d1216c09c4674afebd107"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ad6d6fb2bf3dcb7a910d879c00f2aa3e",
"_score": 1100.0,
"_source": {
"id": "ad6d6fb2bf3dcb7a910d879c00f2aa3e",
"autoIncrement": 105902.0
},
"fields": {
"displayGroup": [
"c60d785671705d8f654215a1e8846d45"
]
},
"sort": [
0,
1100.0,
0,
105902,
"ad6d6fb2bf3dcb7a910d879c00f2aa3e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "53fede4c535796042ca9ff3bf106f68b",
"_score": 1100.0,
"_source": {
"id": "53fede4c535796042ca9ff3bf106f68b",
"autoIncrement": 105901.0
},
"fields": {
"displayGroup": [
"7953480ee4cfe85aab595879c810d3d5"
]
},
"sort": [
0,
1100.0,
0,
105901,
"53fede4c535796042ca9ff3bf106f68b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8660f59292a17a7b4ba33a261c531094",
"_score": 1100.0,
"_source": {
"id": "8660f59292a17a7b4ba33a261c531094",
"autoIncrement": 74473.0
},
"fields": {
"displayGroup": [
"3488666a09ee51ed39af0939d25be556"
]
},
"sort": [
0,
1100.0,
0,
74473,
"8660f59292a17a7b4ba33a261c531094"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2be53bd26bce67b34b04db999d4ad8e4",
"_score": 1100.0,
"_source": {
"id": "2be53bd26bce67b34b04db999d4ad8e4",
"autoIncrement": 74472.0
},
"fields": {
"displayGroup": [
"e2273d7dd052ed0a8429efff44f3543c"
]
},
"sort": [
0,
1100.0,
0,
74472,
"2be53bd26bce67b34b04db999d4ad8e4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "358889fe1f43e79d3fe08d6e2f319f0a",
"_score": 1100.0,
"_source": {
"id": "358889fe1f43e79d3fe08d6e2f319f0a",
"autoIncrement": 74471.0
},
"fields": {
"displayGroup": [
"c10c947eeeb28d4b1a6e20d15b53ba4c"
]
},
"sort": [
0,
1100.0,
0,
74471,
"358889fe1f43e79d3fe08d6e2f319f0a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2aa34cef4e02543d24bd0528670a0dbb",
"_score": 1100.0,
"_source": {
"id": "2aa34cef4e02543d24bd0528670a0dbb",
"autoIncrement": 74470.0
},
"fields": {
"displayGroup": [
"afa5d729566995d37f3e586cc574b853"
]
},
"sort": [
0,
1100.0,
0,
74470,
"2aa34cef4e02543d24bd0528670a0dbb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1239a3370ef06f3124ccb5aafe773ee2",
"_score": 1100.0,
"_source": {
"id": "1239a3370ef06f3124ccb5aafe773ee2",
"autoIncrement": 74469.0
},
"fields": {
"displayGroup": [
"ae867506eac760a2b669e812c563ff9e"
]
},
"sort": [
0,
1100.0,
0,
74469,
"1239a3370ef06f3124ccb5aafe773ee2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c6070962c62f8aed67218047909f2d2f",
"_score": 1100.0,
"_source": {
"id": "c6070962c62f8aed67218047909f2d2f",
"autoIncrement": 74468.0
},
"fields": {
"displayGroup": [
"b8f0e694743cc6d8ea1e4a689c6ddf62"
]
},
"sort": [
0,
1100.0,
0,
74468,
"c6070962c62f8aed67218047909f2d2f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "24a26b4a6cab08a9836f443b1942d6bd",
"_score": 1100.0,
"_source": {
"id": "24a26b4a6cab08a9836f443b1942d6bd",
"autoIncrement": 74463.0
},
"fields": {
"displayGroup": [
"7214500138a5c3f2762464109af92f21"
]
},
"sort": [
0,
1100.0,
0,
74463,
"24a26b4a6cab08a9836f443b1942d6bd"
]
}
]
},
"aggregations": {
"total-count": {
"value": 155
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.19 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":"b63b4fd8addb05833091b900709027f2"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"price":{"stats":{"script":{"source":"double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n","lang":"painless","params":{"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1}],"decimals":100,"round":true,"multiplier":100.0}}}},"rating-exists":{"filter":{"range":{"ratingAverage":{"gte":0.0}}},"aggregations":{"rating":{"max":{"field":"ratingAverage"}}}},"shipping-free-filter":{"filter":{"term":{"shippingFree":true}},"aggregations":{"shipping-free":{"max":{"field":"shippingFree"}}}},"properties":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"width":{"stats":{"field":"width"}},"width-stats":{"filter":{"range":{"width":{"gt":0.0}}},"aggregations":{"width-stats":{"stats":{"field":"width"}}}},"height":{"stats":{"field":"height"}},"height-stats":{"filter":{"range":{"height":{"gt":0.0}}},"aggregations":{"height-stats":{"stats":{"field":"height"}}}},"tiefe":{"stats":{"field":"attribute_tiefe"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"multi-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": "b63b4fd8addb05833091b900709027f2"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"price": {
"stats": {
"script": {
"source": "double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n",
"lang": "painless",
"params": {
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
}
],
"decimals": 100,
"round": true,
"multiplier": 100.0
}
}
}
},
"rating-exists": {
"filter": {
"range": {
"ratingAverage": {
"gte": 0.0
}
}
},
"aggregations": {
"rating": {
"max": {
"field": "ratingAverage"
}
}
}
},
"shipping-free-filter": {
"filter": {
"term": {
"shippingFree": true
}
},
"aggregations": {
"shipping-free": {
"max": {
"field": "shippingFree"
}
}
}
},
"properties": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"width": {
"stats": {
"field": "width"
}
},
"width-stats": {
"filter": {
"range": {
"width": {
"gt": 0.0
}
}
},
"aggregations": {
"width-stats": {
"stats": {
"field": "width"
}
}
}
},
"height": {
"stats": {
"field": "height"
}
},
"height-stats": {
"filter": {
"range": {
"height": {
"gt": 0.0
}
}
},
"aggregations": {
"height-stats": {
"stats": {
"field": "height"
}
}
}
},
"tiefe": {
"stats": {
"field": "attribute_tiefe"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"multi-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": 155,
"min": 108.0,
"max": 594.0,
"avg": 313.89032258064515,
"sum": 48653.0
},
"rating-exists": {
"doc_count": 155,
"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": "d6f4440b8633f973d33c78928bdac2e1",
"manufacturer-count-filter.key": "d6f4440b8633f973d33c78928bdac2e1"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "1a883793b8738cf7ab301f8d7c8d5b91",
"manufacturer-count-filter.key": "1a883793b8738cf7ab301f8d7c8d5b91"
},
"doc_count": 2
},
{
"key": {
"manufacturer-count-filter.sorting": "2e30356d97a7f9b781e52c96f19f58e3",
"manufacturer-count-filter.key": "2e30356d97a7f9b781e52c96f19f58e3"
},
"doc_count": 112
},
{
"key": {
"manufacturer-count-filter.sorting": "d6f4440b8633f973d33c78928bdac2e1",
"manufacturer-count-filter.key": "d6f4440b8633f973d33c78928bdac2e1"
},
"doc_count": 40
}
]
},
"bool-reduced": {
"doc_count": 7,
"bool-reduced": {
"value": 7
}
},
"width": {
"count": 28,
"min": 245.0,
"max": 425.0,
"avg": 384.64285714285717,
"sum": 10770.0
},
"width-stats": {
"doc_count": 28,
"width-stats": {
"count": 28,
"min": 245.0,
"max": 425.0,
"avg": 384.64285714285717,
"sum": 10770.0
}
},
"height": {
"count": 92,
"min": 340.0,
"max": 2000.0,
"avg": 630.0,
"sum": 57960.0
},
"height-stats": {
"doc_count": 92,
"height-stats": {
"count": 92,
"min": 340.0,
"max": 2000.0,
"avg": 630.0,
"sum": 57960.0
}
},
"tiefe": {
"count": 28,
"min": 55.0,
"max": 480.0,
"avg": 288.9642857142857,
"sum": 8091.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Standabfallsammler",
"multi-typModel.key": "Standabfallsammler"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Abfallsammler",
"multi-typModel.key": "Abfallsammler"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Abfallsammler Wand",
"multi-typModel.key": "Abfallsammler Wand"
},
"doc_count": 46
},
{
"key": {
"multi-typModel.sorting": "Abfallsammler f\u00fcr au\u00dfen",
"multi-typModel.key": "Abfallsammler f\u00fcr au\u00dfen"
},
"doc_count": 8
},
{
"key": {
"multi-typModel.sorting": "Standabfallsammler",
"multi-typModel.key": "Standabfallsammler"
},
"doc_count": 99
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "Edelstahl",
"multi-farbe.key": "Edelstahl"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "RAL 7001 Silbergrau",
"multi-farbe.key": "RAL 7001 Silbergrau"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "anthrazit\/eisenglimmer",
"multi-farbe.key": "anthrazit\/eisenglimmer"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "anthrazitgrau",
"multi-farbe.key": "anthrazitgrau"
},
"doc_count": 18
},
{
"key": {
"multi-farbe.sorting": "antiksilber",
"multi-farbe.key": "antiksilber"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "braun",
"multi-farbe.key": "braun"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "eisenglimmer",
"multi-farbe.key": "eisenglimmer"
},
"doc_count": 21
},
{
"key": {
"multi-farbe.sorting": "enzianblau",
"multi-farbe.key": "enzianblau"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "feuerrot",
"multi-farbe.key": "feuerrot"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "feuerverzinkt",
"multi-farbe.key": "feuerverzinkt"
},
"doc_count": 9
},
{
"key": {
"multi-farbe.sorting": "feuerverzinkt \/feuerverzinkt",
"multi-farbe.key": "feuerverzinkt \/feuerverzinkt"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "feuerverzinkt\/kobaltblau",
"multi-farbe.key": "feuerverzinkt\/kobaltblau"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "feuerverzinkt\/orange",
"multi-farbe.key": "feuerverzinkt\/orange"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "gelborange",
"multi-farbe.key": "gelborange"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "kaminrot",
"multi-farbe.key": "kaminrot"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "kieselgrau",
"multi-farbe.key": "kieselgrau"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "kobaltblau",
"multi-farbe.key": "kobaltblau"
},
"doc_count": 21
},
{
"key": {
"multi-farbe.sorting": "lichtgrau",
"multi-farbe.key": "lichtgrau"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "moosgr\u00fcn",
"multi-farbe.key": "moosgr\u00fcn"
},
"doc_count": 19
},
{
"key": {
"multi-farbe.sorting": "purpurrot",
"multi-farbe.key": "purpurrot"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "schwarzgrau",
"multi-farbe.key": "schwarzgrau"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "silber",
"multi-farbe.key": "silber"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "smaragdgr\u00fcn",
"multi-farbe.key": "smaragdgr\u00fcn"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "verkehrsgelb",
"multi-farbe.key": "verkehrsgelb"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "verkehrsgelb\/moosgr\u00fcn",
"multi-farbe.key": "verkehrsgelb\/moosgr\u00fcn"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "verkehrswei\u00df",
"multi-farbe.key": "verkehrswei\u00df"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"doc_count": 13
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stuhl",
"multi-material.key": "Stuhl"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 125
},
{
"key": {
"multi-material.sorting": "Stuhl",
"multi-material.key": "Stuhl"
},
"doc_count": 1
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "2e30356d97a7f9b781e52c96f19f58e3",
"doc_count": 112
},
{
"key": "d6f4440b8633f973d33c78928bdac2e1",
"doc_count": 40
},
{
"key": "1a883793b8738cf7ab301f8d7c8d5b91",
"doc_count": 2
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|