| 1 |
15.03 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":"c7efab542aff0013c9be98813ac23da4"}},{"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": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 40,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "ac7f4e6669d4da2d0ceec945be2b021c",
"_score": 1100.0,
"_source": {
"id": "ac7f4e6669d4da2d0ceec945be2b021c",
"autoIncrement": 145493.0
},
"fields": {
"displayGroup": [
"da73206099b0d9cb29e889459b78137d"
]
},
"sort": [
0,
1100.0,
0,
145493,
"ac7f4e6669d4da2d0ceec945be2b021c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6cf7069fd6045340f8e2999439756ed7",
"_score": 1100.0,
"_source": {
"id": "6cf7069fd6045340f8e2999439756ed7",
"autoIncrement": 82830.0
},
"fields": {
"displayGroup": [
"c026904eda089308f9efa7a53c71d484"
]
},
"sort": [
0,
1100.0,
0,
82830,
"6cf7069fd6045340f8e2999439756ed7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8d9ba3e02c1b724c99fca7620bda649a",
"_score": 1100.0,
"_source": {
"id": "8d9ba3e02c1b724c99fca7620bda649a",
"autoIncrement": 74446.0
},
"fields": {
"displayGroup": [
"5868de8fe19d9d10a8a10e0e009b6948"
]
},
"sort": [
0,
1100.0,
0,
74446,
"8d9ba3e02c1b724c99fca7620bda649a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "62f091e22804308f9131986cc73d72da",
"_score": 1100.0,
"_source": {
"id": "62f091e22804308f9131986cc73d72da",
"autoIncrement": 74441.0
},
"fields": {
"displayGroup": [
"f16f44e859329303aadb8cf880ec022f"
]
},
"sort": [
0,
1100.0,
0,
74441,
"62f091e22804308f9131986cc73d72da"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8de3e34d36ee412c6cb7cad63b4aea76",
"_score": 1100.0,
"_source": {
"id": "8de3e34d36ee412c6cb7cad63b4aea76",
"autoIncrement": 74440.0
},
"fields": {
"displayGroup": [
"f5e360bd221ca55ec311e8349d2cc516"
]
},
"sort": [
0,
1100.0,
0,
74440,
"8de3e34d36ee412c6cb7cad63b4aea76"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "546418f525a858b1f2bd7ebdcf2ae2a2",
"_score": 1100.0,
"_source": {
"id": "546418f525a858b1f2bd7ebdcf2ae2a2",
"autoIncrement": 74345.0
},
"fields": {
"displayGroup": [
"f152ee34b6536c818701b0f5d229580b"
]
},
"sort": [
0,
1100.0,
0,
74345,
"546418f525a858b1f2bd7ebdcf2ae2a2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e408beed173fc790105f1633d047f704",
"_score": 1100.0,
"_source": {
"id": "e408beed173fc790105f1633d047f704",
"autoIncrement": 74344.0
},
"fields": {
"displayGroup": [
"06840ee5ddae50dbf97de27169a21420"
]
},
"sort": [
0,
1100.0,
0,
74344,
"e408beed173fc790105f1633d047f704"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9923c25e02ceb804f95ec3646c3fa725",
"_score": 1100.0,
"_source": {
"id": "9923c25e02ceb804f95ec3646c3fa725",
"autoIncrement": 74343.0
},
"fields": {
"displayGroup": [
"df2bbe4b7bb8e4b96fe33be08bbbf8a9"
]
},
"sort": [
0,
1100.0,
0,
74343,
"9923c25e02ceb804f95ec3646c3fa725"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "64a0f80a6ebd27f5e16808d1a19cd9b5",
"_score": 1100.0,
"_source": {
"id": "64a0f80a6ebd27f5e16808d1a19cd9b5",
"autoIncrement": 74342.0
},
"fields": {
"displayGroup": [
"d095bb60fae8225390adc5bf4af13d1a"
]
},
"sort": [
0,
1100.0,
0,
74342,
"64a0f80a6ebd27f5e16808d1a19cd9b5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c79eaa154c0a372ea988976bab554fab",
"_score": 1100.0,
"_source": {
"id": "c79eaa154c0a372ea988976bab554fab",
"autoIncrement": 74341.0
},
"fields": {
"displayGroup": [
"dc4f98e4ccb674ac035ba78cc93896f1"
]
},
"sort": [
0,
1100.0,
0,
74341,
"c79eaa154c0a372ea988976bab554fab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e3d17e04cb371fa3a39d24b5c93b975e",
"_score": 1100.0,
"_source": {
"id": "e3d17e04cb371fa3a39d24b5c93b975e",
"autoIncrement": 74340.0
},
"fields": {
"displayGroup": [
"dc1ecc3aad4cab6ade02a2b8d5daf8b3"
]
},
"sort": [
0,
1100.0,
0,
74340,
"e3d17e04cb371fa3a39d24b5c93b975e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "86436118af011e7f058155a4ab8dcfea",
"_score": 1100.0,
"_source": {
"id": "86436118af011e7f058155a4ab8dcfea",
"autoIncrement": 74339.0
},
"fields": {
"displayGroup": [
"cfda8a6e6434bd9c79cd8bf4dbb797ae"
]
},
"sort": [
0,
1100.0,
0,
74339,
"86436118af011e7f058155a4ab8dcfea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a0f6466aa5cda6aea262dd7a5675bb12",
"_score": 1100.0,
"_source": {
"id": "a0f6466aa5cda6aea262dd7a5675bb12",
"autoIncrement": 74338.0
},
"fields": {
"displayGroup": [
"d7fbd104a0fff94f4a6265330cb1350c"
]
},
"sort": [
0,
1100.0,
0,
74338,
"a0f6466aa5cda6aea262dd7a5675bb12"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dcf68cc50ef169a4e2dcbaa901e5f249",
"_score": 1100.0,
"_source": {
"id": "dcf68cc50ef169a4e2dcbaa901e5f249",
"autoIncrement": 74337.0
},
"fields": {
"displayGroup": [
"5ffad757dfa26f434d19394677ada4e1"
]
},
"sort": [
0,
1100.0,
0,
74337,
"dcf68cc50ef169a4e2dcbaa901e5f249"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "29072d388db3a07b387823893c38f137",
"_score": 1100.0,
"_source": {
"id": "29072d388db3a07b387823893c38f137",
"autoIncrement": 74336.0
},
"fields": {
"displayGroup": [
"e34342396ab4d09747adbb5e7f24709f"
]
},
"sort": [
0,
1100.0,
0,
74336,
"29072d388db3a07b387823893c38f137"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "04f5fccafc71d755f28743bf6d412349",
"_score": 1100.0,
"_source": {
"id": "04f5fccafc71d755f28743bf6d412349",
"autoIncrement": 74255.0
},
"fields": {
"displayGroup": [
"d32fdb5405f9680e11bfa749f964051f"
]
},
"sort": [
0,
1100.0,
0,
74255,
"04f5fccafc71d755f28743bf6d412349"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c687f7f324f061e503a1497e0123fba8",
"_score": 1100.0,
"_source": {
"id": "c687f7f324f061e503a1497e0123fba8",
"autoIncrement": 74254.0
},
"fields": {
"displayGroup": [
"628b2399d231ceea9b65dae9fb72c2a9"
]
},
"sort": [
0,
1100.0,
0,
74254,
"c687f7f324f061e503a1497e0123fba8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7591a5463f64cf6698743c553f468fe8",
"_score": 1100.0,
"_source": {
"id": "7591a5463f64cf6698743c553f468fe8",
"autoIncrement": 74253.0
},
"fields": {
"displayGroup": [
"44ffdce18a5b2381db11bb65d0732238"
]
},
"sort": [
0,
1100.0,
0,
74253,
"7591a5463f64cf6698743c553f468fe8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "84dbd097b87ac568b417ad559c918fc0",
"_score": 1100.0,
"_source": {
"id": "84dbd097b87ac568b417ad559c918fc0",
"autoIncrement": 74252.0
},
"fields": {
"displayGroup": [
"e9f7aae5208f6dee7bb191a25e662b31"
]
},
"sort": [
0,
1100.0,
0,
74252,
"84dbd097b87ac568b417ad559c918fc0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ef1c4c731915c7aa41851a48cbac1929",
"_score": 1100.0,
"_source": {
"id": "ef1c4c731915c7aa41851a48cbac1929",
"autoIncrement": 74251.0
},
"fields": {
"displayGroup": [
"f7257228882e880d665cae4d662898f4"
]
},
"sort": [
0,
1100.0,
0,
74251,
"ef1c4c731915c7aa41851a48cbac1929"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b464e9c80f7c40f3e403ea7c0342f41b",
"_score": 1100.0,
"_source": {
"id": "b464e9c80f7c40f3e403ea7c0342f41b",
"autoIncrement": 74250.0
},
"fields": {
"displayGroup": [
"5ed54f941e1c3e8600202b0951130a30"
]
},
"sort": [
0,
1100.0,
0,
74250,
"b464e9c80f7c40f3e403ea7c0342f41b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a26f427004c4d390fe1509bc299030a0",
"_score": 1100.0,
"_source": {
"id": "a26f427004c4d390fe1509bc299030a0",
"autoIncrement": 74249.0
},
"fields": {
"displayGroup": [
"03b95a1cb8b1497613583ca252c9e498"
]
},
"sort": [
0,
1100.0,
0,
74249,
"a26f427004c4d390fe1509bc299030a0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4c8a50095fa0ed4d029960ddca5d353c",
"_score": 1100.0,
"_source": {
"id": "4c8a50095fa0ed4d029960ddca5d353c",
"autoIncrement": 74244.0
},
"fields": {
"displayGroup": [
"df50ce7acf9940d4a7b14fa09daa621f"
]
},
"sort": [
0,
1100.0,
0,
74244,
"4c8a50095fa0ed4d029960ddca5d353c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "060dc1169bcb5cf596868ad6d2e24e54",
"_score": 1100.0,
"_source": {
"id": "060dc1169bcb5cf596868ad6d2e24e54",
"autoIncrement": 74122.0
},
"fields": {
"displayGroup": [
"3e048f9913773dd150f762f5c175110d"
]
},
"sort": [
0,
1100.0,
0,
74122,
"060dc1169bcb5cf596868ad6d2e24e54"
]
}
]
},
"aggregations": {
"total-count": {
"value": 40
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
11.47 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":"c7efab542aff0013c9be98813ac23da4"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"price":{"stats":{"script":{"source":"double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n","lang":"painless","params":{"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1}],"decimals":100,"round":true,"multiplier":100.0}}}},"rating-exists":{"filter":{"range":{"ratingAverage":{"gte":0.0}}},"aggregations":{"rating":{"max":{"field":"ratingAverage"}}}},"shipping-free-filter":{"filter":{"term":{"shippingFree":true}},"aggregations":{"shipping-free":{"max":{"field":"shippingFree"}}}},"properties":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"width":{"stats":{"field":"width"}},"width-stats":{"filter":{"range":{"width":{"gt":0.0}}},"aggregations":{"width-stats":{"stats":{"field":"width"}}}},"height":{"stats":{"field":"height"}},"height-stats":{"filter":{"range":{"height":{"gt":0.0}}},"aggregations":{"height-stats":{"stats":{"field":"height"}}}},"tiefe":{"stats":{"field":"attribute_tiefe"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-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": "c7efab542aff0013c9be98813ac23da4"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"price": {
"stats": {
"script": {
"source": "double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n",
"lang": "painless",
"params": {
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
}
],
"decimals": 100,
"round": true,
"multiplier": 100.0
}
}
}
},
"rating-exists": {
"filter": {
"range": {
"ratingAverage": {
"gte": 0.0
}
}
},
"aggregations": {
"rating": {
"max": {
"field": "ratingAverage"
}
}
}
},
"shipping-free-filter": {
"filter": {
"term": {
"shippingFree": true
}
},
"aggregations": {
"shipping-free": {
"max": {
"field": "shippingFree"
}
}
}
},
"properties": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"width": {
"stats": {
"field": "width"
}
},
"width-stats": {
"filter": {
"range": {
"width": {
"gt": 0.0
}
}
},
"aggregations": {
"width-stats": {
"stats": {
"field": "width"
}
}
}
},
"height": {
"stats": {
"field": "height"
}
},
"height-stats": {
"filter": {
"range": {
"height": {
"gt": 0.0
}
}
},
"aggregations": {
"height-stats": {
"stats": {
"field": "height"
}
}
}
},
"tiefe": {
"stats": {
"field": "attribute_tiefe"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-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": 6,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 40,
"min": 18.8,
"max": 286.0,
"avg": 137.6765,
"sum": 5507.06
},
"rating-exists": {
"doc_count": 40,
"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": "339b2f19a3f2821963c7d2b0ca441bd2",
"manufacturer-count-filter.key": "339b2f19a3f2821963c7d2b0ca441bd2"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "073f0fd955bd5cde8f0cf3c8e654c061",
"manufacturer-count-filter.key": "073f0fd955bd5cde8f0cf3c8e654c061"
},
"doc_count": 38
},
{
"key": {
"manufacturer-count-filter.sorting": "339b2f19a3f2821963c7d2b0ca441bd2",
"manufacturer-count-filter.key": "339b2f19a3f2821963c7d2b0ca441bd2"
},
"doc_count": 2
}
]
},
"bool-reduced": {
"doc_count": 11,
"bool-reduced": {
"value": 11
}
},
"width": {
"count": 31,
"min": 160.0,
"max": 490.0,
"avg": 362.0,
"sum": 11222.0
},
"width-stats": {
"doc_count": 31,
"width-stats": {
"count": 31,
"min": 160.0,
"max": 490.0,
"avg": 362.0,
"sum": 11222.0
}
},
"height": {
"count": 31,
"min": 110.0,
"max": 560.0,
"avg": 279.5483870967742,
"sum": 8666.0
},
"height-stats": {
"doc_count": 31,
"height-stats": {
"count": 31,
"min": 110.0,
"max": 560.0,
"avg": 279.5483870967742,
"sum": 8666.0
}
},
"tiefe": {
"count": 30,
"min": 57.0,
"max": 400.0,
"avg": 176.9,
"sum": 5307.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Verbandtaschen",
"multi-typModel.key": "Verbandtaschen"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Augensp\u00fclduschen",
"multi-typModel.key": "Augensp\u00fclduschen"
},
"doc_count": 1
},
{
"key": {
"multi-typModel.sorting": "Erste-Hilfe-Koffer",
"multi-typModel.key": "Erste-Hilfe-Koffer"
},
"doc_count": 22
},
{
"key": {
"multi-typModel.sorting": "Verbandk\u00e4sten",
"multi-typModel.key": "Verbandk\u00e4sten"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Verbandschr\u00e4nke",
"multi-typModel.key": "Verbandschr\u00e4nke"
},
"doc_count": 9
},
{
"key": {
"multi-typModel.sorting": "Verbandtaschen",
"multi-typModel.key": "Verbandtaschen"
},
"doc_count": 5
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "orange",
"multi-farbe.key": "orange"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"doc_count": 1
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 1
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "073f0fd955bd5cde8f0cf3c8e654c061",
"doc_count": 38
},
{
"key": "339b2f19a3f2821963c7d2b0ca441bd2",
"doc_count": 2
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|