| 1 |
19.41 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":360,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 5,
"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": "08a329eec639864d49361e7c9de80e2e",
"_score": 1100.0,
"_source": {
"id": "08a329eec639864d49361e7c9de80e2e",
"autoIncrement": 127995.0
},
"fields": {
"displayGroup": [
"d43d76c759f5d82f3613e04abc0be021"
]
},
"sort": [
0,
1100.0,
0,
127995,
"08a329eec639864d49361e7c9de80e2e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2656d9256f2a38c9641c5f9263b0c60b",
"_score": 1100.0,
"_source": {
"id": "2656d9256f2a38c9641c5f9263b0c60b",
"autoIncrement": 127993.0
},
"fields": {
"displayGroup": [
"de090864b138c96d842a600f3bcb8f73"
]
},
"sort": [
0,
1100.0,
0,
127993,
"2656d9256f2a38c9641c5f9263b0c60b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "22cce9b9705cb96d93c72fb0d3b8bf16",
"_score": 1100.0,
"_source": {
"id": "22cce9b9705cb96d93c72fb0d3b8bf16",
"autoIncrement": 127991.0
},
"fields": {
"displayGroup": [
"c18a13a5a2cb35493bc2223bb3897f4d"
]
},
"sort": [
0,
1100.0,
0,
127991,
"22cce9b9705cb96d93c72fb0d3b8bf16"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "363372b05f2ed979ccba049252599abb",
"_score": 1100.0,
"_source": {
"id": "363372b05f2ed979ccba049252599abb",
"autoIncrement": 127989.0
},
"fields": {
"displayGroup": [
"6eabf3bed5b54a3d816586c107989e2c"
]
},
"sort": [
0,
1100.0,
0,
127989,
"363372b05f2ed979ccba049252599abb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9a3bb809b5ceccb30eeaee6bdfe4dd1b",
"_score": 1100.0,
"_source": {
"id": "9a3bb809b5ceccb30eeaee6bdfe4dd1b",
"autoIncrement": 127987.0
},
"fields": {
"displayGroup": [
"a910c8a83f02fc67e0f1ad05b583a6cb"
]
},
"sort": [
0,
1100.0,
0,
127987,
"9a3bb809b5ceccb30eeaee6bdfe4dd1b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "196c8ec615f72f6aca95c096f7835bb3",
"_score": 1100.0,
"_source": {
"id": "196c8ec615f72f6aca95c096f7835bb3",
"autoIncrement": 127985.0
},
"fields": {
"displayGroup": [
"4a3deea8fec9ca172f428124fe689e22"
]
},
"sort": [
0,
1100.0,
0,
127985,
"196c8ec615f72f6aca95c096f7835bb3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "448e4b6804ed853b26aa5bb0b4323799",
"_score": 1100.0,
"_source": {
"id": "448e4b6804ed853b26aa5bb0b4323799",
"autoIncrement": 127983.0
},
"fields": {
"displayGroup": [
"0fafd8c19aea0b9302ed181d182721c4"
]
},
"sort": [
0,
1100.0,
0,
127983,
"448e4b6804ed853b26aa5bb0b4323799"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "32fd04cd137eeeb21a00549aad22930a",
"_score": 1100.0,
"_source": {
"id": "32fd04cd137eeeb21a00549aad22930a",
"autoIncrement": 127981.0
},
"fields": {
"displayGroup": [
"4ab6225e56b93a20692608de46c73bc4"
]
},
"sort": [
0,
1100.0,
0,
127981,
"32fd04cd137eeeb21a00549aad22930a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0d7f5529a4e3ced3067e0403ad8f657e",
"_score": 1100.0,
"_source": {
"id": "0d7f5529a4e3ced3067e0403ad8f657e",
"autoIncrement": 127979.0
},
"fields": {
"displayGroup": [
"6959ada30be9659df831b188ee0d4a81"
]
},
"sort": [
0,
1100.0,
0,
127979,
"0d7f5529a4e3ced3067e0403ad8f657e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6c20ca4377a3d0b9af17f182acfbb154",
"_score": 1100.0,
"_source": {
"id": "6c20ca4377a3d0b9af17f182acfbb154",
"autoIncrement": 127977.0
},
"fields": {
"displayGroup": [
"9ffa8bcde181c6e9db0570c2996483e1"
]
},
"sort": [
0,
1100.0,
0,
127977,
"6c20ca4377a3d0b9af17f182acfbb154"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "32445ce5f44452c055936e4b9f8957cb",
"_score": 1100.0,
"_source": {
"id": "32445ce5f44452c055936e4b9f8957cb",
"autoIncrement": 127975.0
},
"fields": {
"displayGroup": [
"fef634f122bdac7e8af0c6e4894a429c"
]
},
"sort": [
0,
1100.0,
0,
127975,
"32445ce5f44452c055936e4b9f8957cb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8ddb3f527197e2255e8f671c13fd0ce4",
"_score": 1100.0,
"_source": {
"id": "8ddb3f527197e2255e8f671c13fd0ce4",
"autoIncrement": 127973.0
},
"fields": {
"displayGroup": [
"98976bb9e443aae707d4a28cbcbc2513"
]
},
"sort": [
0,
1100.0,
0,
127973,
"8ddb3f527197e2255e8f671c13fd0ce4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5ef9651ff02999484a567e38474523b4",
"_score": 1100.0,
"_source": {
"id": "5ef9651ff02999484a567e38474523b4",
"autoIncrement": 127971.0
},
"fields": {
"displayGroup": [
"9d3d5819a22ba0ec3bd615ab9620a8f5"
]
},
"sort": [
0,
1100.0,
0,
127971,
"5ef9651ff02999484a567e38474523b4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b0018d0636dbd586a52c0a8d091d43d4",
"_score": 1100.0,
"_source": {
"id": "b0018d0636dbd586a52c0a8d091d43d4",
"autoIncrement": 127969.0
},
"fields": {
"displayGroup": [
"93599331f2cfa07ffd2d85550fffa6e1"
]
},
"sort": [
0,
1100.0,
0,
127969,
"b0018d0636dbd586a52c0a8d091d43d4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ead539da402de176b7661645ddf45f81",
"_score": 1100.0,
"_source": {
"id": "ead539da402de176b7661645ddf45f81",
"autoIncrement": 127967.0
},
"fields": {
"displayGroup": [
"85f1d32b673553dd128bd0799d4bbf90"
]
},
"sort": [
0,
1100.0,
0,
127967,
"ead539da402de176b7661645ddf45f81"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "11564f35a81bed5941a473aa2b97b03f",
"_score": 1100.0,
"_source": {
"id": "11564f35a81bed5941a473aa2b97b03f",
"autoIncrement": 127965.0
},
"fields": {
"displayGroup": [
"d700e9563c07e0a29a3168e18706d610"
]
},
"sort": [
0,
1100.0,
0,
127965,
"11564f35a81bed5941a473aa2b97b03f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cd433c4e0ea15de604fe4e490b634122",
"_score": 1100.0,
"_source": {
"id": "cd433c4e0ea15de604fe4e490b634122",
"autoIncrement": 127963.0
},
"fields": {
"displayGroup": [
"2da6d4adc08add98c59072ac15bf2fb1"
]
},
"sort": [
0,
1100.0,
0,
127963,
"cd433c4e0ea15de604fe4e490b634122"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2953c78bacbc2a40b4bb858702289c89",
"_score": 1100.0,
"_source": {
"id": "2953c78bacbc2a40b4bb858702289c89",
"autoIncrement": 127961.0
},
"fields": {
"displayGroup": [
"5651f71bcb7e453fe8cf8ba6d0d0d411"
]
},
"sort": [
0,
1100.0,
0,
127961,
"2953c78bacbc2a40b4bb858702289c89"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "af63250cb3778db540cb89bb3d0adcf0",
"_score": 1100.0,
"_source": {
"id": "af63250cb3778db540cb89bb3d0adcf0",
"autoIncrement": 127959.0
},
"fields": {
"displayGroup": [
"0be5deacb95d97d50cf85738e1c99c2e"
]
},
"sort": [
0,
1100.0,
0,
127959,
"af63250cb3778db540cb89bb3d0adcf0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "38bd6a1c420e07edb0ccf653e19d5d06",
"_score": 1100.0,
"_source": {
"id": "38bd6a1c420e07edb0ccf653e19d5d06",
"autoIncrement": 127957.0
},
"fields": {
"displayGroup": [
"0b342121ac43b7074e44623ed8444894"
]
},
"sort": [
0,
1100.0,
0,
127957,
"38bd6a1c420e07edb0ccf653e19d5d06"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "52d01868810213d1bdb4cc07cf57570f",
"_score": 1100.0,
"_source": {
"id": "52d01868810213d1bdb4cc07cf57570f",
"autoIncrement": 127955.0
},
"fields": {
"displayGroup": [
"591cfcbf17c6d26595de26dab89b39fc"
]
},
"sort": [
0,
1100.0,
0,
127955,
"52d01868810213d1bdb4cc07cf57570f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "46582f69df727f244de58e9b7b28acd1",
"_score": 1100.0,
"_source": {
"id": "46582f69df727f244de58e9b7b28acd1",
"autoIncrement": 127953.0
},
"fields": {
"displayGroup": [
"ac3346c9012981fa557db7b91a8ff30b"
]
},
"sort": [
0,
1100.0,
0,
127953,
"46582f69df727f244de58e9b7b28acd1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "04dad1c6b5b8a13f0269c26a12a68aea",
"_score": 1100.0,
"_source": {
"id": "04dad1c6b5b8a13f0269c26a12a68aea",
"autoIncrement": 127951.0
},
"fields": {
"displayGroup": [
"58f1e435ad6c55abb164348813f8f9dd"
]
},
"sort": [
0,
1100.0,
0,
127951,
"04dad1c6b5b8a13f0269c26a12a68aea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "616d67b7d130b06fddeb08367ea9a2f9",
"_score": 1100.0,
"_source": {
"id": "616d67b7d130b06fddeb08367ea9a2f9",
"autoIncrement": 127949.0
},
"fields": {
"displayGroup": [
"4ef0d542d8a244172a52373b5f857b80"
]
},
"sort": [
0,
1100.0,
0,
127949,
"616d67b7d130b06fddeb08367ea9a2f9"
]
}
]
},
"aggregations": {
"total-count": {
"value": 698
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.66 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
|