| 1 |
20.51 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":1200,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 7,
"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": "dcdcb37b1c3b66987e7878a23c91a5dd",
"_score": 1100.0,
"_source": {
"id": "dcdcb37b1c3b66987e7878a23c91a5dd",
"autoIncrement": 129275.0
},
"fields": {
"displayGroup": [
"b86e21e9d4ecfc715e8c0d6c82d01d86"
]
},
"sort": [
0,
1100.0,
0,
129275,
"dcdcb37b1c3b66987e7878a23c91a5dd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8fd5682ba07195e71c8cf7a98e067004",
"_score": 1100.0,
"_source": {
"id": "8fd5682ba07195e71c8cf7a98e067004",
"autoIncrement": 129274.0
},
"fields": {
"displayGroup": [
"80032b51e3e267b66df4fc7f935a9720"
]
},
"sort": [
0,
1100.0,
0,
129274,
"8fd5682ba07195e71c8cf7a98e067004"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b5a33477b71dc8b4b9d9e27b374b20ba",
"_score": 1100.0,
"_source": {
"id": "b5a33477b71dc8b4b9d9e27b374b20ba",
"autoIncrement": 129273.0
},
"fields": {
"displayGroup": [
"b7e95811d187b1091826b72da125e526"
]
},
"sort": [
0,
1100.0,
0,
129273,
"b5a33477b71dc8b4b9d9e27b374b20ba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6d78c9e2b370c8ea1d7aec7fc5b72fac",
"_score": 1100.0,
"_source": {
"id": "6d78c9e2b370c8ea1d7aec7fc5b72fac",
"autoIncrement": 129272.0
},
"fields": {
"displayGroup": [
"68ce699211a2fd215374ec3fc954244b"
]
},
"sort": [
0,
1100.0,
0,
129272,
"6d78c9e2b370c8ea1d7aec7fc5b72fac"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ea0d0f8dd8222646227a8e50ba0a6c2c",
"_score": 1100.0,
"_source": {
"id": "ea0d0f8dd8222646227a8e50ba0a6c2c",
"autoIncrement": 129271.0
},
"fields": {
"displayGroup": [
"50e40758c85e99dcf9542793f823c437"
]
},
"sort": [
0,
1100.0,
0,
129271,
"ea0d0f8dd8222646227a8e50ba0a6c2c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "85d6f51205894db8a39f917969f3755d",
"_score": 1100.0,
"_source": {
"id": "85d6f51205894db8a39f917969f3755d",
"autoIncrement": 129270.0
},
"fields": {
"displayGroup": [
"4f1697913eb46578ed9dfa8a14ff5a03"
]
},
"sort": [
0,
1100.0,
0,
129270,
"85d6f51205894db8a39f917969f3755d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "37fbf4aa352265a5ed98f7bb65ca68fa",
"_score": 1100.0,
"_source": {
"id": "37fbf4aa352265a5ed98f7bb65ca68fa",
"autoIncrement": 129269.0
},
"fields": {
"displayGroup": [
"f7a6b24766db1f796c7d44805bc05e8e"
]
},
"sort": [
0,
1100.0,
0,
129269,
"37fbf4aa352265a5ed98f7bb65ca68fa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f7d71adb60d0dd86266d676428228a47",
"_score": 1100.0,
"_source": {
"id": "f7d71adb60d0dd86266d676428228a47",
"autoIncrement": 129268.0
},
"fields": {
"displayGroup": [
"7d22fcbed46bde0f7d525151a3d49338"
]
},
"sort": [
0,
1100.0,
0,
129268,
"f7d71adb60d0dd86266d676428228a47"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "df99be333cbeaed0b6c2fa21f3470eaf",
"_score": 1100.0,
"_source": {
"id": "df99be333cbeaed0b6c2fa21f3470eaf",
"autoIncrement": 129267.0
},
"fields": {
"displayGroup": [
"ed6bc271fa6c45cf06d26cd5371c974f"
]
},
"sort": [
0,
1100.0,
0,
129267,
"df99be333cbeaed0b6c2fa21f3470eaf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2ac08e85c9d72f6b16d84feb97efb7ce",
"_score": 1100.0,
"_source": {
"id": "2ac08e85c9d72f6b16d84feb97efb7ce",
"autoIncrement": 129266.0
},
"fields": {
"displayGroup": [
"991bc2749bb81f4685271cf76c2a4b31"
]
},
"sort": [
0,
1100.0,
0,
129266,
"2ac08e85c9d72f6b16d84feb97efb7ce"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2e2676e60bf89e753282eddfc2c7accf",
"_score": 1100.0,
"_source": {
"id": "2e2676e60bf89e753282eddfc2c7accf",
"autoIncrement": 129265.0
},
"fields": {
"displayGroup": [
"5f3544cf97b00ac45a625b2ceeb93e68"
]
},
"sort": [
0,
1100.0,
0,
129265,
"2e2676e60bf89e753282eddfc2c7accf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "148070d236204a54fea6952e8866f5f0",
"_score": 1100.0,
"_source": {
"id": "148070d236204a54fea6952e8866f5f0",
"autoIncrement": 129264.0
},
"fields": {
"displayGroup": [
"d9fb6554158088025941920c6326aff4"
]
},
"sort": [
0,
1100.0,
0,
129264,
"148070d236204a54fea6952e8866f5f0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0f3189a9ecd7ecaf380a4532efa17f0a",
"_score": 1100.0,
"_source": {
"id": "0f3189a9ecd7ecaf380a4532efa17f0a",
"autoIncrement": 129263.0
},
"fields": {
"displayGroup": [
"0e794e53ef614013f3b9f7523ef7ed80"
]
},
"sort": [
0,
1100.0,
0,
129263,
"0f3189a9ecd7ecaf380a4532efa17f0a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "55cfe7f5c97ea037b95c2578bdb9ce32",
"_score": 100.0,
"_source": {
"id": "55cfe7f5c97ea037b95c2578bdb9ce32",
"autoIncrement": 146061.0
},
"fields": {
"displayGroup": [
"deece0f766b879dad601ae138510d80d"
]
},
"sort": [
0,
100.0,
0,
146061,
"55cfe7f5c97ea037b95c2578bdb9ce32"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b3474fa6f57322ba72763c011f014c6b",
"_score": 100.0,
"_source": {
"id": "b3474fa6f57322ba72763c011f014c6b",
"autoIncrement": 146056.0
},
"fields": {
"displayGroup": [
"32c4204ecfefff5d45b8d551001d7a6d"
]
},
"sort": [
0,
100.0,
0,
146056,
"b3474fa6f57322ba72763c011f014c6b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "501fbc4995ab62cbc08d30c6affe3c3e",
"_score": 100.0,
"_source": {
"id": "501fbc4995ab62cbc08d30c6affe3c3e",
"autoIncrement": 146055.0
},
"fields": {
"displayGroup": [
"c341eb2cc82dc754d575e838a1c656cf"
]
},
"sort": [
0,
100.0,
0,
146055,
"501fbc4995ab62cbc08d30c6affe3c3e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bee1195b30c3e576b063e5f3fa1d4cfb",
"_score": 100.0,
"_source": {
"id": "bee1195b30c3e576b063e5f3fa1d4cfb",
"autoIncrement": 112671.0
},
"fields": {
"displayGroup": [
"3143fed4bf5da873fb1648817073c0ee"
]
},
"sort": [
0,
100.0,
0,
112671,
"bee1195b30c3e576b063e5f3fa1d4cfb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "11a9948577c3c2382d1b2f1cb558f95b",
"_score": 100.0,
"_source": {
"id": "11a9948577c3c2382d1b2f1cb558f95b",
"autoIncrement": 112670.0
},
"fields": {
"displayGroup": [
"48da244002810cb743561d918dac1514"
]
},
"sort": [
0,
100.0,
0,
112670,
"11a9948577c3c2382d1b2f1cb558f95b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6718692191a09ecb38c5db559dab16a2",
"_score": 100.0,
"_source": {
"id": "6718692191a09ecb38c5db559dab16a2",
"autoIncrement": 112669.0
},
"fields": {
"displayGroup": [
"b5a3fa43488d33bead5892b04e3907de"
]
},
"sort": [
0,
100.0,
0,
112669,
"6718692191a09ecb38c5db559dab16a2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5c2dbb72885a686881e742d1fbaa4cdb",
"_score": 100.0,
"_source": {
"id": "5c2dbb72885a686881e742d1fbaa4cdb",
"autoIncrement": 112668.0
},
"fields": {
"displayGroup": [
"85533b3e3c6b695e84cb84d64d7feaf7"
]
},
"sort": [
0,
100.0,
0,
112668,
"5c2dbb72885a686881e742d1fbaa4cdb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f8e8e1caa8b8111b62d7caaee2131129",
"_score": 100.0,
"_source": {
"id": "f8e8e1caa8b8111b62d7caaee2131129",
"autoIncrement": 112667.0
},
"fields": {
"displayGroup": [
"e5499e3264bfceafb225d7a3516f4e71"
]
},
"sort": [
0,
100.0,
0,
112667,
"f8e8e1caa8b8111b62d7caaee2131129"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c30de260c09705bde3d19bd0002e97c9",
"_score": 100.0,
"_source": {
"id": "c30de260c09705bde3d19bd0002e97c9",
"autoIncrement": 112666.0
},
"fields": {
"displayGroup": [
"bd8a44bdedf01842482f14968787bc5d"
]
},
"sort": [
0,
100.0,
0,
112666,
"c30de260c09705bde3d19bd0002e97c9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cad47d4c0e2681556d72d5e32486728c",
"_score": 100.0,
"_source": {
"id": "cad47d4c0e2681556d72d5e32486728c",
"autoIncrement": 112665.0
},
"fields": {
"displayGroup": [
"596e1cdd64beca23106c60f9f3fdcbb2"
]
},
"sort": [
0,
100.0,
0,
112665,
"cad47d4c0e2681556d72d5e32486728c"
]
}
]
},
"aggregations": {
"total-count": {
"value": 1222
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.56 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
|