| 1 |
19.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":"401faa7c7e853a8159e874be1affa176"}},{"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":432,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 6,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 698,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "e77a894554f09598b65d7957f7457ad8",
"_score": 1100.0,
"_source": {
"id": "e77a894554f09598b65d7957f7457ad8",
"autoIncrement": 127851.0
},
"fields": {
"displayGroup": [
"d732190d92da8b8717434ea9bbc9610e"
]
},
"sort": [
0,
1100.0,
0,
127851,
"e77a894554f09598b65d7957f7457ad8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "df54850c4f3b341e0136c792b0a6a3a4",
"_score": 1100.0,
"_source": {
"id": "df54850c4f3b341e0136c792b0a6a3a4",
"autoIncrement": 127849.0
},
"fields": {
"displayGroup": [
"de56085284dbdc67eed460489f3a8592"
]
},
"sort": [
0,
1100.0,
0,
127849,
"df54850c4f3b341e0136c792b0a6a3a4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "00ddce95521b950d5973fd43b6348cf4",
"_score": 1100.0,
"_source": {
"id": "00ddce95521b950d5973fd43b6348cf4",
"autoIncrement": 127847.0
},
"fields": {
"displayGroup": [
"b729df35b718db0d0774bd2cb5ac5f72"
]
},
"sort": [
0,
1100.0,
0,
127847,
"00ddce95521b950d5973fd43b6348cf4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b7079ab8d6e9287f13976326c3856c60",
"_score": 1100.0,
"_source": {
"id": "b7079ab8d6e9287f13976326c3856c60",
"autoIncrement": 127845.0
},
"fields": {
"displayGroup": [
"a55969b6429135d47286811e3b024a57"
]
},
"sort": [
0,
1100.0,
0,
127845,
"b7079ab8d6e9287f13976326c3856c60"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0178d0ae5d0eeb473dd416d3655b11d5",
"_score": 1100.0,
"_source": {
"id": "0178d0ae5d0eeb473dd416d3655b11d5",
"autoIncrement": 127843.0
},
"fields": {
"displayGroup": [
"4b7e1dda6de697fdd69862b7562170d4"
]
},
"sort": [
0,
1100.0,
0,
127843,
"0178d0ae5d0eeb473dd416d3655b11d5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3086d6dedc10b8c5880974cc4b525711",
"_score": 1100.0,
"_source": {
"id": "3086d6dedc10b8c5880974cc4b525711",
"autoIncrement": 127841.0
},
"fields": {
"displayGroup": [
"33961cb0e98747955ec61ddf4f3e3814"
]
},
"sort": [
0,
1100.0,
0,
127841,
"3086d6dedc10b8c5880974cc4b525711"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "48ea0b0860b5dcbc1b8bdda3178254fe",
"_score": 1100.0,
"_source": {
"id": "48ea0b0860b5dcbc1b8bdda3178254fe",
"autoIncrement": 127839.0
},
"fields": {
"displayGroup": [
"9513ed80a36e976c21e715e5b6e4de58"
]
},
"sort": [
0,
1100.0,
0,
127839,
"48ea0b0860b5dcbc1b8bdda3178254fe"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8fa2333642105f76f6cae9c2e027c8c9",
"_score": 1100.0,
"_source": {
"id": "8fa2333642105f76f6cae9c2e027c8c9",
"autoIncrement": 127837.0
},
"fields": {
"displayGroup": [
"61cc738929fdc1977efd844a0345512e"
]
},
"sort": [
0,
1100.0,
0,
127837,
"8fa2333642105f76f6cae9c2e027c8c9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d337e0a8c6631f36cdcb207105ab6c99",
"_score": 1100.0,
"_source": {
"id": "d337e0a8c6631f36cdcb207105ab6c99",
"autoIncrement": 127835.0
},
"fields": {
"displayGroup": [
"a295488ec18b8fde453dd6f3ca4088c9"
]
},
"sort": [
0,
1100.0,
0,
127835,
"d337e0a8c6631f36cdcb207105ab6c99"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "316401471ef9acb7c17fb70d1a042ca6",
"_score": 1100.0,
"_source": {
"id": "316401471ef9acb7c17fb70d1a042ca6",
"autoIncrement": 127833.0
},
"fields": {
"displayGroup": [
"c1e78b80131aafb4c4f06e562b11cf9b"
]
},
"sort": [
0,
1100.0,
0,
127833,
"316401471ef9acb7c17fb70d1a042ca6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f098627e2a967c1eb773207a995f7a12",
"_score": 1100.0,
"_source": {
"id": "f098627e2a967c1eb773207a995f7a12",
"autoIncrement": 127831.0
},
"fields": {
"displayGroup": [
"14935ffd8f23c07d3393a97e734ca9c6"
]
},
"sort": [
0,
1100.0,
0,
127831,
"f098627e2a967c1eb773207a995f7a12"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "18ead7686fb6cb0294f05e35311bdfb8",
"_score": 1100.0,
"_source": {
"id": "18ead7686fb6cb0294f05e35311bdfb8",
"autoIncrement": 127829.0
},
"fields": {
"displayGroup": [
"3f86f5dec303b4985386c4c0d0c5eaa9"
]
},
"sort": [
0,
1100.0,
0,
127829,
"18ead7686fb6cb0294f05e35311bdfb8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b1647e3c2037d92dfc359981989db757",
"_score": 1100.0,
"_source": {
"id": "b1647e3c2037d92dfc359981989db757",
"autoIncrement": 127827.0
},
"fields": {
"displayGroup": [
"021f30c13cdc76166429979a72aa9b55"
]
},
"sort": [
0,
1100.0,
0,
127827,
"b1647e3c2037d92dfc359981989db757"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8b488d90dece6e81f69f77dd18df47d7",
"_score": 1100.0,
"_source": {
"id": "8b488d90dece6e81f69f77dd18df47d7",
"autoIncrement": 127825.0
},
"fields": {
"displayGroup": [
"2cb6871b6e309886f2041b1bdf7cc5bf"
]
},
"sort": [
0,
1100.0,
0,
127825,
"8b488d90dece6e81f69f77dd18df47d7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b5349ae0d1380e22bb5013744b482968",
"_score": 1100.0,
"_source": {
"id": "b5349ae0d1380e22bb5013744b482968",
"autoIncrement": 127823.0
},
"fields": {
"displayGroup": [
"d6443ce5da196fd3191ecb01fb4c9965"
]
},
"sort": [
0,
1100.0,
0,
127823,
"b5349ae0d1380e22bb5013744b482968"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cd1530f3c02913a02ad3fe8ca6a51fd2",
"_score": 1100.0,
"_source": {
"id": "cd1530f3c02913a02ad3fe8ca6a51fd2",
"autoIncrement": 127821.0
},
"fields": {
"displayGroup": [
"905402935b668bc3b43f5ae26c010fef"
]
},
"sort": [
0,
1100.0,
0,
127821,
"cd1530f3c02913a02ad3fe8ca6a51fd2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b7dddb292172744b3380b105cbedd40b",
"_score": 1100.0,
"_source": {
"id": "b7dddb292172744b3380b105cbedd40b",
"autoIncrement": 127819.0
},
"fields": {
"displayGroup": [
"eb2f6c8ed6e40bb1dc3cd9dfe7c82c7d"
]
},
"sort": [
0,
1100.0,
0,
127819,
"b7dddb292172744b3380b105cbedd40b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1ad9504c120ee8ca5e6819d201a215bf",
"_score": 1100.0,
"_source": {
"id": "1ad9504c120ee8ca5e6819d201a215bf",
"autoIncrement": 127817.0
},
"fields": {
"displayGroup": [
"85ccafc18e8dfe8b344a3c206901ac30"
]
},
"sort": [
0,
1100.0,
0,
127817,
"1ad9504c120ee8ca5e6819d201a215bf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d62860a2c715e4437cd3aae5ee4bc23e",
"_score": 1100.0,
"_source": {
"id": "d62860a2c715e4437cd3aae5ee4bc23e",
"autoIncrement": 127808.0
},
"fields": {
"displayGroup": [
"be8c45865031d3de3a61ba9acb3cfff9"
]
},
"sort": [
0,
1100.0,
0,
127808,
"d62860a2c715e4437cd3aae5ee4bc23e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7fc74b16d5c65cf6e637c4aec31fef44",
"_score": 1100.0,
"_source": {
"id": "7fc74b16d5c65cf6e637c4aec31fef44",
"autoIncrement": 126488.0
},
"fields": {
"displayGroup": [
"a87d54fe96d44ce4e4cafecea4e1b374"
]
},
"sort": [
0,
1100.0,
0,
126488,
"7fc74b16d5c65cf6e637c4aec31fef44"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a2eb4134a6c88942416b078e7c8f8f85",
"_score": 1100.0,
"_source": {
"id": "a2eb4134a6c88942416b078e7c8f8f85",
"autoIncrement": 125400.0
},
"fields": {
"displayGroup": [
"3b70c5fc41686cfc484e39409241de21"
]
},
"sort": [
0,
1100.0,
0,
125400,
"a2eb4134a6c88942416b078e7c8f8f85"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d6be12b86c7443905ecbd5a1804354b6",
"_score": 400.0,
"_source": {
"id": "d6be12b86c7443905ecbd5a1804354b6",
"autoIncrement": 98500.0
},
"fields": {
"displayGroup": [
"8547194d358d0ff196424dab5af81484"
]
},
"sort": [
0,
400.0,
0,
98500,
"d6be12b86c7443905ecbd5a1804354b6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f79bea941709209e5395f74c3d81c9a7",
"_score": 100.0,
"_source": {
"id": "f79bea941709209e5395f74c3d81c9a7",
"autoIncrement": 147538.0
},
"fields": {
"displayGroup": [
"86eac9f38b9678b3d08460e4b1409460"
]
},
"sort": [
0,
100.0,
0,
147538,
"f79bea941709209e5395f74c3d81c9a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "abb9d38c1bdcf796bb32cc5d629cb6cf",
"_score": 100.0,
"_source": {
"id": "abb9d38c1bdcf796bb32cc5d629cb6cf",
"autoIncrement": 147537.0
},
"fields": {
"displayGroup": [
"7a9d35f2f4ba460432a3b986c5b187b0"
]
},
"sort": [
0,
100.0,
0,
147537,
"abb9d38c1bdcf796bb32cc5d629cb6cf"
]
}
]
},
"aggregations": {
"total-count": {
"value": 698
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.91 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":"401faa7c7e853a8159e874be1affa176"}},{"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"}},"multi-traglastGesamt":{"composite":{"sources":[{"multi-traglastGesamt.sorting":{"terms":{"field":"attribute_traglastGesamt","order":"ASC"}}},{"multi-traglastGesamt.key":{"terms":{"field":"attribute_traglastGesamt"}}}],"size":"99999"}},"multi-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"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": "401faa7c7e853a8159e874be1affa176"
}
},
{
"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"
}
},
"multi-traglastGesamt": {
"composite": {
"sources": [
{
"multi-traglastGesamt.sorting": {
"terms": {
"field": "attribute_traglastGesamt",
"order": "ASC"
}
}
},
{
"multi-traglastGesamt.key": {
"terms": {
"field": "attribute_traglastGesamt"
}
}
}
],
"size": "99999"
}
},
"multi-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"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": 698,
"min": 0.36,
"max": 1860.0,
"avg": 163.38687679083094,
"sum": 114044.04
},
"rating-exists": {
"doc_count": 698,
"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": 698
}
]
},
"bool-reduced": {
"doc_count": 12,
"bool-reduced": {
"value": 12
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Langgutregale",
"multi-typModel.key": "Zubeh\u00f6r Langgutregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Fachbodenregale",
"multi-typModel.key": "Fachbodenregale"
},
"doc_count": 451
},
{
"key": {
"multi-typModel.sorting": "Getr\u00e4nkekistenregale",
"multi-typModel.key": "Getr\u00e4nkekistenregale"
},
"doc_count": 1
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 237
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Langgutregale",
"multi-typModel.key": "Zubeh\u00f6r Langgutregale"
},
"doc_count": 9
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 1695.0,
"multi-width.key": 1695.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 600.0,
"multi-width.key": 600.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 771.0,
"multi-width.key": 771.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 870.0,
"multi-width.key": 870.0
},
"doc_count": 26
},
{
"key": {
"multi-width.sorting": 875.0,
"multi-width.key": 875.0
},
"doc_count": 138
},
{
"key": {
"multi-width.sorting": 900.0,
"multi-width.key": 900.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 906.0,
"multi-width.key": 906.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 980.0,
"multi-width.key": 980.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 986.0,
"multi-width.key": 986.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 1005.0,
"multi-width.key": 1005.0
},
"doc_count": 153
},
{
"key": {
"multi-width.sorting": 1186.0,
"multi-width.key": 1186.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1280.0,
"multi-width.key": 1280.0
},
"doc_count": 25
},
{
"key": {
"multi-width.sorting": 1285.0,
"multi-width.key": 1285.0
},
"doc_count": 155
},
{
"key": {
"multi-width.sorting": 1586.0,
"multi-width.key": 1586.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1690.0,
"multi-width.key": 1690.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 1695.0,
"multi-width.key": 1695.0
},
"doc_count": 29
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 100.0,
"multi-height.key": 100.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 110.0,
"multi-height.key": 110.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 120.0,
"multi-height.key": 120.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 150.0,
"multi-height.key": 150.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 200.0,
"multi-height.key": 200.0
},
"doc_count": 13
},
{
"key": {
"multi-height.sorting": 210.0,
"multi-height.key": 210.0
},
"doc_count": 5
},
{
"key": {
"multi-height.sorting": 240.0,
"multi-height.key": 240.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 310.0,
"multi-height.key": 310.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 320.0,
"multi-height.key": 320.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 400.0,
"multi-height.key": 400.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 410.0,
"multi-height.key": 410.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 460.0,
"multi-height.key": 460.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 819.0,
"multi-height.key": 819.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 1019.0,
"multi-height.key": 1019.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 1319.0,
"multi-height.key": 1319.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 1800.0,
"multi-height.key": 1800.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 1980.0,
"multi-height.key": 1980.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 163
},
{
"key": {
"multi-height.sorting": 2480.0,
"multi-height.key": 2480.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 151
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 151
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 130.0,
"multi-tiefe.key": 130.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 201.0,
"multi-tiefe.key": 201.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 300.0,
"multi-tiefe.key": 300.0
},
"doc_count": 153
},
{
"key": {
"multi-tiefe.sorting": 301.0,
"multi-tiefe.key": 301.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 151
},
{
"key": {
"multi-tiefe.sorting": 401.0,
"multi-tiefe.key": 401.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 147
},
{
"key": {
"multi-tiefe.sorting": 501.0,
"multi-tiefe.key": 501.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 510.0,
"multi-tiefe.key": 510.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 530.0,
"multi-tiefe.key": 530.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 153
},
{
"key": {
"multi-tiefe.sorting": 701.0,
"multi-tiefe.key": 701.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 12
}
]
},
"multi-traglastGesamt": {
"buckets": []
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "10 St\u00fcck",
"multi-anzahlFachboeden.key": "10 St\u00fcck"
},
"doc_count": 1
},
{
"key": {
"multi-anzahlFachboeden.sorting": "4 St\u00fcck",
"multi-anzahlFachboeden.key": "4 St\u00fcck"
},
"doc_count": 10
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 145
},
{
"key": {
"multi-anzahlFachboeden.sorting": "6 St\u00fcck",
"multi-anzahlFachboeden.key": "6 St\u00fcck"
},
"doc_count": 143
},
{
"key": {
"multi-anzahlFachboeden.sorting": "7 St\u00fcck",
"multi-anzahlFachboeden.key": "7 St\u00fcck"
},
"doc_count": 144
},
{
"key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"doc_count": 1
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 698
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|