| 1 |
14.64 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":"3210cb5f2a9e659f2772e277a972dff6"}},{"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":24,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 77,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "28886c2695dc0b2523cafa6ad127af17",
"_score": 1100.0,
"_source": {
"id": "28886c2695dc0b2523cafa6ad127af17",
"autoIncrement": 135068.0
},
"fields": {
"displayGroup": [
"7f4ea740cd2c3ac8ad359c1e32c6646d"
]
},
"sort": [
0,
1100.0,
0,
135068,
"28886c2695dc0b2523cafa6ad127af17"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8fe6cee2b9609956562b8495e9c53923",
"_score": 1100.0,
"_source": {
"id": "8fe6cee2b9609956562b8495e9c53923",
"autoIncrement": 135067.0
},
"fields": {
"displayGroup": [
"0c134540822c1924dca9b719789aaaed"
]
},
"sort": [
0,
1100.0,
0,
135067,
"8fe6cee2b9609956562b8495e9c53923"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e30b574b203eab483f2e90412a320247",
"_score": 1100.0,
"_source": {
"id": "e30b574b203eab483f2e90412a320247",
"autoIncrement": 135066.0
},
"fields": {
"displayGroup": [
"90e9e1eb33c1feb91668d67c9ac536ed"
]
},
"sort": [
0,
1100.0,
0,
135066,
"e30b574b203eab483f2e90412a320247"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7b4e94824ffe12c00652f566abae8040",
"_score": 1100.0,
"_source": {
"id": "7b4e94824ffe12c00652f566abae8040",
"autoIncrement": 135065.0
},
"fields": {
"displayGroup": [
"d682993eb4309bccc914c64711acb334"
]
},
"sort": [
0,
1100.0,
0,
135065,
"7b4e94824ffe12c00652f566abae8040"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "27ce36b54ec730d7b63f1707d3b6ff57",
"_score": 1100.0,
"_source": {
"id": "27ce36b54ec730d7b63f1707d3b6ff57",
"autoIncrement": 135064.0
},
"fields": {
"displayGroup": [
"0ebe1a100c27e1d3364715188423009b"
]
},
"sort": [
0,
1100.0,
0,
135064,
"27ce36b54ec730d7b63f1707d3b6ff57"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "111584de901f5fd18c51f751d03e449c",
"_score": 1100.0,
"_source": {
"id": "111584de901f5fd18c51f751d03e449c",
"autoIncrement": 135063.0
},
"fields": {
"displayGroup": [
"9a786ef6000f4b79cfb8bf838b4cc2c4"
]
},
"sort": [
0,
1100.0,
0,
135063,
"111584de901f5fd18c51f751d03e449c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a6e3ac12ce4672210ea46f14a61304a7",
"_score": 1100.0,
"_source": {
"id": "a6e3ac12ce4672210ea46f14a61304a7",
"autoIncrement": 135062.0
},
"fields": {
"displayGroup": [
"3d6d272891d8873cdef278e66639c7a5"
]
},
"sort": [
0,
1100.0,
0,
135062,
"a6e3ac12ce4672210ea46f14a61304a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "af27e2ae7501dfcb6bffa7759b48868a",
"_score": 1100.0,
"_source": {
"id": "af27e2ae7501dfcb6bffa7759b48868a",
"autoIncrement": 135061.0
},
"fields": {
"displayGroup": [
"15fc0948cf5c93ddadaba4e67dd594f9"
]
},
"sort": [
0,
1100.0,
0,
135061,
"af27e2ae7501dfcb6bffa7759b48868a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9b39285063328857985a38f0e7581c54",
"_score": 1100.0,
"_source": {
"id": "9b39285063328857985a38f0e7581c54",
"autoIncrement": 135060.0
},
"fields": {
"displayGroup": [
"a296528eb148565bddc2c5a154e1add5"
]
},
"sort": [
0,
1100.0,
0,
135060,
"9b39285063328857985a38f0e7581c54"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2c1910ff0bb3b441a5a2f726ac41faa7",
"_score": 1100.0,
"_source": {
"id": "2c1910ff0bb3b441a5a2f726ac41faa7",
"autoIncrement": 134983.0
},
"fields": {
"displayGroup": [
"f7eb19aab3b04132c79271ee8490a9b9"
]
},
"sort": [
0,
1100.0,
0,
134983,
"2c1910ff0bb3b441a5a2f726ac41faa7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e5dcfa57b3fb9cfc1b6b8cb46a493b12",
"_score": 1100.0,
"_source": {
"id": "e5dcfa57b3fb9cfc1b6b8cb46a493b12",
"autoIncrement": 134982.0
},
"fields": {
"displayGroup": [
"d67f90ce901940105c91e862d4dc2b86"
]
},
"sort": [
0,
1100.0,
0,
134982,
"e5dcfa57b3fb9cfc1b6b8cb46a493b12"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b0c26e72d1547268ae1e5b430afb2933",
"_score": 1100.0,
"_source": {
"id": "b0c26e72d1547268ae1e5b430afb2933",
"autoIncrement": 134981.0
},
"fields": {
"displayGroup": [
"6942753a19a1a72f433c6e5ad2136ace"
]
},
"sort": [
0,
1100.0,
0,
134981,
"b0c26e72d1547268ae1e5b430afb2933"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9fbc6a2a1dc852932da405c9aa3827ba",
"_score": 1100.0,
"_source": {
"id": "9fbc6a2a1dc852932da405c9aa3827ba",
"autoIncrement": 134980.0
},
"fields": {
"displayGroup": [
"cc652a24ba544999b0430cc15cbc0405"
]
},
"sort": [
0,
1100.0,
0,
134980,
"9fbc6a2a1dc852932da405c9aa3827ba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "579414b25fb8c005e4b6cae380b9fa8a",
"_score": 1100.0,
"_source": {
"id": "579414b25fb8c005e4b6cae380b9fa8a",
"autoIncrement": 134979.0
},
"fields": {
"displayGroup": [
"760c9f1b41d901d0a94e534bceb6b623"
]
},
"sort": [
0,
1100.0,
0,
134979,
"579414b25fb8c005e4b6cae380b9fa8a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b00cf8929136eb272d65cd69262ac284",
"_score": 1100.0,
"_source": {
"id": "b00cf8929136eb272d65cd69262ac284",
"autoIncrement": 134978.0
},
"fields": {
"displayGroup": [
"2cb299e5f80cfb136bec633c6190d92b"
]
},
"sort": [
0,
1100.0,
0,
134978,
"b00cf8929136eb272d65cd69262ac284"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "201703d00e746b2b014843a448dd6abd",
"_score": 1100.0,
"_source": {
"id": "201703d00e746b2b014843a448dd6abd",
"autoIncrement": 134977.0
},
"fields": {
"displayGroup": [
"0eaf8761f9614b86c0186eb8b86f9682"
]
},
"sort": [
0,
1100.0,
0,
134977,
"201703d00e746b2b014843a448dd6abd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f54517d7f65da26156ba88c14e43fab9",
"_score": 1100.0,
"_source": {
"id": "f54517d7f65da26156ba88c14e43fab9",
"autoIncrement": 134976.0
},
"fields": {
"displayGroup": [
"28d410e762ecf4e01ba1d1ce69f07c2c"
]
},
"sort": [
0,
1100.0,
0,
134976,
"f54517d7f65da26156ba88c14e43fab9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4aac1a0b6f4aa4bdde2c205a76f95817",
"_score": 1100.0,
"_source": {
"id": "4aac1a0b6f4aa4bdde2c205a76f95817",
"autoIncrement": 134975.0
},
"fields": {
"displayGroup": [
"a3b79a552785e1a4e1fbf95d9bbe7033"
]
},
"sort": [
0,
1100.0,
0,
134975,
"4aac1a0b6f4aa4bdde2c205a76f95817"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4f6e48240ef969ad200b016e6808c20e",
"_score": 1100.0,
"_source": {
"id": "4f6e48240ef969ad200b016e6808c20e",
"autoIncrement": 134974.0
},
"fields": {
"displayGroup": [
"22b986d1d23c4793d2cd2fbe9d6fdf4f"
]
},
"sort": [
0,
1100.0,
0,
134974,
"4f6e48240ef969ad200b016e6808c20e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5da723379f0b66bac876d4566102e30e",
"_score": 1100.0,
"_source": {
"id": "5da723379f0b66bac876d4566102e30e",
"autoIncrement": 134973.0
},
"fields": {
"displayGroup": [
"18955c6cc3f633f1f93203618c1c4033"
]
},
"sort": [
0,
1100.0,
0,
134973,
"5da723379f0b66bac876d4566102e30e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "529f0d0e16cc6220eb4a73a0c0066675",
"_score": 1100.0,
"_source": {
"id": "529f0d0e16cc6220eb4a73a0c0066675",
"autoIncrement": 134972.0
},
"fields": {
"displayGroup": [
"47db78f6378605ed46926e27b62c958e"
]
},
"sort": [
0,
1100.0,
0,
134972,
"529f0d0e16cc6220eb4a73a0c0066675"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "57c8ee96e5e6e2b54f67f11df33e3371",
"_score": 1100.0,
"_source": {
"id": "57c8ee96e5e6e2b54f67f11df33e3371",
"autoIncrement": 134971.0
},
"fields": {
"displayGroup": [
"c40b17ee62cb07f7bcee90b3bdcfd9fd"
]
},
"sort": [
0,
1100.0,
0,
134971,
"57c8ee96e5e6e2b54f67f11df33e3371"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1ef584a03d2dc4b4a4439849aba37099",
"_score": 1100.0,
"_source": {
"id": "1ef584a03d2dc4b4a4439849aba37099",
"autoIncrement": 134970.0
},
"fields": {
"displayGroup": [
"c472d2ff9bd4197a9bee9cb67b61f9b9"
]
},
"sort": [
0,
1100.0,
0,
134970,
"1ef584a03d2dc4b4a4439849aba37099"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d9bb7506852f7b3a3780e219b83c65df",
"_score": 1100.0,
"_source": {
"id": "d9bb7506852f7b3a3780e219b83c65df",
"autoIncrement": 134969.0
},
"fields": {
"displayGroup": [
"09fa2b0930f4aa33d185930f3d327b56"
]
},
"sort": [
0,
1100.0,
0,
134969,
"d9bb7506852f7b3a3780e219b83c65df"
]
}
]
},
"aggregations": {
"total-count": {
"value": 77
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.39 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":"3210cb5f2a9e659f2772e277a972dff6"}},{"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-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": "3210cb5f2a9e659f2772e277a972dff6"
}
},
{
"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-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 77,
"min": 2.3,
"max": 35.5,
"avg": 8.980519480519481,
"sum": 691.5
},
"rating-exists": {
"doc_count": 77,
"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": "c3a426735eefdce4df6537fb4b7ae301",
"manufacturer-count-filter.key": "c3a426735eefdce4df6537fb4b7ae301"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "339b2f19a3f2821963c7d2b0ca441bd2",
"manufacturer-count-filter.key": "339b2f19a3f2821963c7d2b0ca441bd2"
},
"doc_count": 3
},
{
"key": {
"manufacturer-count-filter.sorting": "c3a426735eefdce4df6537fb4b7ae301",
"manufacturer-count-filter.key": "c3a426735eefdce4df6537fb4b7ae301"
},
"doc_count": 74
}
]
},
"bool-reduced": {
"doc_count": 1,
"bool-reduced": {
"value": 1
}
},
"width": {
"count": 77,
"min": 20.0,
"max": 430.0,
"avg": 230.7792207792208,
"sum": 17770.0
},
"width-stats": {
"doc_count": 77,
"width-stats": {
"count": 77,
"min": 20.0,
"max": 430.0,
"avg": 230.7792207792208,
"sum": 17770.0
}
},
"height": {
"count": 20,
"min": 60.0,
"max": 400.0,
"avg": 215.5,
"sum": 4310.0
},
"height-stats": {
"doc_count": 20,
"height-stats": {
"count": 20,
"min": 60.0,
"max": 400.0,
"avg": 215.5,
"sum": 4310.0
}
},
"tiefe": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Verbotskennzeichnung",
"multi-typModel.key": "Verbotskennzeichnung"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Bodenmarkieraufkleber",
"multi-typModel.key": "Bodenmarkieraufkleber"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Sicherheitsbeschilderung",
"multi-typModel.key": "Sicherheitsbeschilderung"
},
"doc_count": 10
},
{
"key": {
"multi-typModel.sorting": "Verbotskennzeichnung",
"multi-typModel.key": "Verbotskennzeichnung"
},
"doc_count": 64
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "PVC",
"multi-material.key": "PVC"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Aluminium",
"multi-material.key": "Aluminium"
},
"doc_count": 26
},
{
"key": {
"multi-material.sorting": "Folie",
"multi-material.key": "Folie"
},
"doc_count": 31
},
{
"key": {
"multi-material.sorting": "Folie langnachleuchtend",
"multi-material.key": "Folie langnachleuchtend"
},
"doc_count": 2
},
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 13
},
{
"key": {
"multi-material.sorting": "Magnetfolie",
"multi-material.key": "Magnetfolie"
},
"doc_count": 2
},
{
"key": {
"multi-material.sorting": "PVC",
"multi-material.key": "PVC"
},
"doc_count": 3
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "c3a426735eefdce4df6537fb4b7ae301",
"doc_count": 74
},
{
"key": "339b2f19a3f2821963c7d2b0ca441bd2",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|