| 1 |
22.82 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":312,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 9,
"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": "56393f4d51dd16da4c26d47a4dbe4f49",
"_score": 1350.0,
"_source": {
"id": "56393f4d51dd16da4c26d47a4dbe4f49",
"autoIncrement": 148575.0
},
"fields": {
"displayGroup": [
"164d987b6cf6ac99775f5aea11ceacb5"
]
},
"sort": [
0,
1350.0,
0,
148575,
"56393f4d51dd16da4c26d47a4dbe4f49"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6b8a670b75ca4cd3fbc8a9f1ccafb730",
"_score": 1350.0,
"_source": {
"id": "6b8a670b75ca4cd3fbc8a9f1ccafb730",
"autoIncrement": 148574.0
},
"fields": {
"displayGroup": [
"93578934cd83be886630e5f00d5e2176"
]
},
"sort": [
0,
1350.0,
0,
148574,
"6b8a670b75ca4cd3fbc8a9f1ccafb730"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5c2faae0f097c292fafab450bf6cbcff",
"_score": 1350.0,
"_source": {
"id": "5c2faae0f097c292fafab450bf6cbcff",
"autoIncrement": 148573.0
},
"fields": {
"displayGroup": [
"e1f0e97a0914b88c5cc5cfd1469c7d45"
]
},
"sort": [
0,
1350.0,
0,
148573,
"5c2faae0f097c292fafab450bf6cbcff"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bfd995a80c21c030f99fa2810604ee52",
"_score": 1350.0,
"_source": {
"id": "bfd995a80c21c030f99fa2810604ee52",
"autoIncrement": 148572.0
},
"fields": {
"displayGroup": [
"fa57d46bb96a0d52b1e7b05cef7eb3bb"
]
},
"sort": [
0,
1350.0,
0,
148572,
"bfd995a80c21c030f99fa2810604ee52"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0de646a23f701eaec10eeb23ce89a0f4",
"_score": 1350.0,
"_source": {
"id": "0de646a23f701eaec10eeb23ce89a0f4",
"autoIncrement": 148571.0
},
"fields": {
"displayGroup": [
"20913e5108084d995b58fbeeacf55bc5"
]
},
"sort": [
0,
1350.0,
0,
148571,
"0de646a23f701eaec10eeb23ce89a0f4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7055136fef559ce59a48a61864087eb4",
"_score": 1350.0,
"_source": {
"id": "7055136fef559ce59a48a61864087eb4",
"autoIncrement": 148570.0
},
"fields": {
"displayGroup": [
"a6e3d3c28ecdd9fceb5d5f880859daee"
]
},
"sort": [
0,
1350.0,
0,
148570,
"7055136fef559ce59a48a61864087eb4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "620ce9c941697ed84697119357402655",
"_score": 1350.0,
"_source": {
"id": "620ce9c941697ed84697119357402655",
"autoIncrement": 148569.0
},
"fields": {
"displayGroup": [
"05b03c809c38a42638ae92438891a78f"
]
},
"sort": [
0,
1350.0,
0,
148569,
"620ce9c941697ed84697119357402655"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "176e10edaa9f550598d9d9388d9c02e8",
"_score": 1350.0,
"_source": {
"id": "176e10edaa9f550598d9d9388d9c02e8",
"autoIncrement": 148568.0
},
"fields": {
"displayGroup": [
"48be55d5e2f9bbe86a9078b8d7ffaba6"
]
},
"sort": [
0,
1350.0,
0,
148568,
"176e10edaa9f550598d9d9388d9c02e8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c92cd7897192a2835d67d05ba43e7f37",
"_score": 1350.0,
"_source": {
"id": "c92cd7897192a2835d67d05ba43e7f37",
"autoIncrement": 148567.0
},
"fields": {
"displayGroup": [
"0ed62c13dc38a97d044c64e5c823b0fa"
]
},
"sort": [
0,
1350.0,
0,
148567,
"c92cd7897192a2835d67d05ba43e7f37"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7518e9d9009422185b3091595fa02ff1",
"_score": 1350.0,
"_source": {
"id": "7518e9d9009422185b3091595fa02ff1",
"autoIncrement": 148566.0
},
"fields": {
"displayGroup": [
"0df4381cbcd1151c50285255e579a71e"
]
},
"sort": [
0,
1350.0,
0,
148566,
"7518e9d9009422185b3091595fa02ff1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fa3bab8bf9db488104ce0667703502cd",
"_score": 1350.0,
"_source": {
"id": "fa3bab8bf9db488104ce0667703502cd",
"autoIncrement": 148565.0
},
"fields": {
"displayGroup": [
"a5a826a693997f11c66f1224c26aa824"
]
},
"sort": [
0,
1350.0,
0,
148565,
"fa3bab8bf9db488104ce0667703502cd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ded198330d3b43f154cffd61d3dd778e",
"_score": 1350.0,
"_source": {
"id": "ded198330d3b43f154cffd61d3dd778e",
"autoIncrement": 148564.0
},
"fields": {
"displayGroup": [
"80e8bfb4bbd53c380c4a55ccd1ce1ab9"
]
},
"sort": [
0,
1350.0,
0,
148564,
"ded198330d3b43f154cffd61d3dd778e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2b1e2b40b4778bb42ceecf53fcffa4eb",
"_score": 1350.0,
"_source": {
"id": "2b1e2b40b4778bb42ceecf53fcffa4eb",
"autoIncrement": 148563.0
},
"fields": {
"displayGroup": [
"738b15798d5bdde7d6f345cfa66272b8"
]
},
"sort": [
0,
1350.0,
0,
148563,
"2b1e2b40b4778bb42ceecf53fcffa4eb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b1c74f262adc478dd04e5668cd2abd1c",
"_score": 1350.0,
"_source": {
"id": "b1c74f262adc478dd04e5668cd2abd1c",
"autoIncrement": 148562.0
},
"fields": {
"displayGroup": [
"cabf2c32604072ae63a869d0c1528142"
]
},
"sort": [
0,
1350.0,
0,
148562,
"b1c74f262adc478dd04e5668cd2abd1c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "38622d97575a3b0861ef90219bb86798",
"_score": 1350.0,
"_source": {
"id": "38622d97575a3b0861ef90219bb86798",
"autoIncrement": 148561.0
},
"fields": {
"displayGroup": [
"8ac10f69c7ae99d5c5be3ccc1d6182ad"
]
},
"sort": [
0,
1350.0,
0,
148561,
"38622d97575a3b0861ef90219bb86798"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4c5c875c1ee5d4f54b81b2dc481b6af7",
"_score": 1350.0,
"_source": {
"id": "4c5c875c1ee5d4f54b81b2dc481b6af7",
"autoIncrement": 148560.0
},
"fields": {
"displayGroup": [
"eb35d2693e38a0fefd001db63751e6bd"
]
},
"sort": [
0,
1350.0,
0,
148560,
"4c5c875c1ee5d4f54b81b2dc481b6af7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b97a805df3cffe7b37ab2a82cf6a2cc9",
"_score": 1350.0,
"_source": {
"id": "b97a805df3cffe7b37ab2a82cf6a2cc9",
"autoIncrement": 148559.0
},
"fields": {
"displayGroup": [
"b4aee4cf4223cad26d5cc8b35e23e6b2"
]
},
"sort": [
0,
1350.0,
0,
148559,
"b97a805df3cffe7b37ab2a82cf6a2cc9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9277566ec276608be6b9316a5ce6ee9d",
"_score": 1350.0,
"_source": {
"id": "9277566ec276608be6b9316a5ce6ee9d",
"autoIncrement": 148558.0
},
"fields": {
"displayGroup": [
"08de6943543506f2e859cf100bcaef93"
]
},
"sort": [
0,
1350.0,
0,
148558,
"9277566ec276608be6b9316a5ce6ee9d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7c863229f068b56d2ad2387ff2a4c3af",
"_score": 1350.0,
"_source": {
"id": "7c863229f068b56d2ad2387ff2a4c3af",
"autoIncrement": 148557.0
},
"fields": {
"displayGroup": [
"bccb99e21b9049e90834e00c8e2b70d2"
]
},
"sort": [
0,
1350.0,
0,
148557,
"7c863229f068b56d2ad2387ff2a4c3af"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dc6b9e552968dc1d2963c6059f3c1a20",
"_score": 1350.0,
"_source": {
"id": "dc6b9e552968dc1d2963c6059f3c1a20",
"autoIncrement": 148556.0
},
"fields": {
"displayGroup": [
"50db5c4c7d9f9a33313673e00dbc10a9"
]
},
"sort": [
0,
1350.0,
0,
148556,
"dc6b9e552968dc1d2963c6059f3c1a20"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7636d93e0cacab1967bcf1d6b46b3038",
"_score": 1350.0,
"_source": {
"id": "7636d93e0cacab1967bcf1d6b46b3038",
"autoIncrement": 148555.0
},
"fields": {
"displayGroup": [
"782d6aa389afad99eed669a13bdca755"
]
},
"sort": [
0,
1350.0,
0,
148555,
"7636d93e0cacab1967bcf1d6b46b3038"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4c9f74f38f37851499adef36975c1c3b",
"_score": 1350.0,
"_source": {
"id": "4c9f74f38f37851499adef36975c1c3b",
"autoIncrement": 148554.0
},
"fields": {
"displayGroup": [
"d05c6dad70168cee9abffa41d7bb706c"
]
},
"sort": [
0,
1350.0,
0,
148554,
"4c9f74f38f37851499adef36975c1c3b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cee3fd847db200a003a7aaef01e1c653",
"_score": 1350.0,
"_source": {
"id": "cee3fd847db200a003a7aaef01e1c653",
"autoIncrement": 148553.0
},
"fields": {
"displayGroup": [
"b8c11c6a1ac3ed39fefaf6dbcbc6e0f1"
]
},
"sort": [
0,
1350.0,
0,
148553,
"cee3fd847db200a003a7aaef01e1c653"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "25cea4bf644ef9d13c7aeef66a85576f",
"_score": 1350.0,
"_source": {
"id": "25cea4bf644ef9d13c7aeef66a85576f",
"autoIncrement": 148552.0
},
"fields": {
"displayGroup": [
"214eeed94aecc113450068e3e6f6f19f"
]
},
"sort": [
0,
1350.0,
0,
148552,
"25cea4bf644ef9d13c7aeef66a85576f"
]
}
]
},
"aggregations": {
"total-count": {
"value": 1222
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.27 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
|