| 1 |
17.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":"969e9d8d4509e20ed09840a20f075ec8"}},{"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": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 245,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "fd4e534506aca0f098dab9f11cd92547",
"_score": 100.0,
"_source": {
"id": "fd4e534506aca0f098dab9f11cd92547",
"autoIncrement": 126525.0
},
"fields": {
"displayGroup": [
"ad2ee22a2a2878ce5a46075214f6ca3d"
]
},
"sort": [
0,
100.0,
0,
126525,
"fd4e534506aca0f098dab9f11cd92547"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5d28e833863483e16619915b73a48a07",
"_score": 100.0,
"_source": {
"id": "5d28e833863483e16619915b73a48a07",
"autoIncrement": 126518.0
},
"fields": {
"displayGroup": [
"8a3f6efb4ce811d0ff503831a8752995"
]
},
"sort": [
0,
100.0,
0,
126518,
"5d28e833863483e16619915b73a48a07"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8c3d119de91a64c5721df8ea96a845cd",
"_score": 100.0,
"_source": {
"id": "8c3d119de91a64c5721df8ea96a845cd",
"autoIncrement": 126517.0
},
"fields": {
"displayGroup": [
"0c2d48bb6c8a1b5354ef736978965e01"
]
},
"sort": [
0,
100.0,
0,
126517,
"8c3d119de91a64c5721df8ea96a845cd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "83ed3674d85beb330f323befd3a7de07",
"_score": 100.0,
"_source": {
"id": "83ed3674d85beb330f323befd3a7de07",
"autoIncrement": 123594.0
},
"fields": {
"displayGroup": [
"e0ba9f35021776ca27f8875fd00e0fc6"
]
},
"sort": [
0,
100.0,
0,
123594,
"83ed3674d85beb330f323befd3a7de07"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8aa3bc6c1addfbae572fda47c0955be7",
"_score": 100.0,
"_source": {
"id": "8aa3bc6c1addfbae572fda47c0955be7",
"autoIncrement": 121124.0
},
"fields": {
"displayGroup": [
"84ce8d0ea56493ce1dde4824504c89a6"
]
},
"sort": [
0,
100.0,
0,
121124,
"8aa3bc6c1addfbae572fda47c0955be7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "beae93b8aa21311e56c04d5f85f35924",
"_score": 100.0,
"_source": {
"id": "beae93b8aa21311e56c04d5f85f35924",
"autoIncrement": 121123.0
},
"fields": {
"displayGroup": [
"f22bb6b6d8a1e33c5445ae2958911302"
]
},
"sort": [
0,
100.0,
0,
121123,
"beae93b8aa21311e56c04d5f85f35924"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a3a4b91e587c3ed5060266dd77ed0abc",
"_score": 100.0,
"_source": {
"id": "a3a4b91e587c3ed5060266dd77ed0abc",
"autoIncrement": 121122.0
},
"fields": {
"displayGroup": [
"d16155b8eafcee0a81094baa004e722c"
]
},
"sort": [
0,
100.0,
0,
121122,
"a3a4b91e587c3ed5060266dd77ed0abc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0519bf73d27ffcf276181f24a3ef41c0",
"_score": 100.0,
"_source": {
"id": "0519bf73d27ffcf276181f24a3ef41c0",
"autoIncrement": 121121.0
},
"fields": {
"displayGroup": [
"acb5c658c282724edd4e5b53f28a2952"
]
},
"sort": [
0,
100.0,
0,
121121,
"0519bf73d27ffcf276181f24a3ef41c0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4dd3b980a5e0defecce62ab6e99fc457",
"_score": 100.0,
"_source": {
"id": "4dd3b980a5e0defecce62ab6e99fc457",
"autoIncrement": 121120.0
},
"fields": {
"displayGroup": [
"124df4eb9a47f40d42657a3ecf6e54e3"
]
},
"sort": [
0,
100.0,
0,
121120,
"4dd3b980a5e0defecce62ab6e99fc457"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3f82b66c9bf2777030926b58e10d294c",
"_score": 100.0,
"_source": {
"id": "3f82b66c9bf2777030926b58e10d294c",
"autoIncrement": 121119.0
},
"fields": {
"displayGroup": [
"eb7b4d47605c5525b828708f978b9a47"
]
},
"sort": [
0,
100.0,
0,
121119,
"3f82b66c9bf2777030926b58e10d294c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3c8cf956b0d642df13cdaa967b04a652",
"_score": 100.0,
"_source": {
"id": "3c8cf956b0d642df13cdaa967b04a652",
"autoIncrement": 68324.0
},
"fields": {
"displayGroup": [
"96bd1b18f36a8eaa39b52c4b7202231a"
]
},
"sort": [
0,
100.0,
0,
68324,
"3c8cf956b0d642df13cdaa967b04a652"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2c61dbe4ac04ecdeac145503799adfc3",
"_score": 100.0,
"_source": {
"id": "2c61dbe4ac04ecdeac145503799adfc3",
"autoIncrement": 68323.0
},
"fields": {
"displayGroup": [
"7816a0f1669ab2cf38d58cdf4a0349f3"
]
},
"sort": [
0,
100.0,
0,
68323,
"2c61dbe4ac04ecdeac145503799adfc3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "541777de6fd7c4d9af2c10773eae55ba",
"_score": 100.0,
"_source": {
"id": "541777de6fd7c4d9af2c10773eae55ba",
"autoIncrement": 68322.0
},
"fields": {
"displayGroup": [
"0e30e0bd0cff44dd5f722fc7dca1b14a"
]
},
"sort": [
0,
100.0,
0,
68322,
"541777de6fd7c4d9af2c10773eae55ba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "434d3b0b11931286a623eab19cd07bae",
"_score": 100.0,
"_source": {
"id": "434d3b0b11931286a623eab19cd07bae",
"autoIncrement": 68321.0
},
"fields": {
"displayGroup": [
"b9f5d7912d29cb3c3c64ed51bed8d2df"
]
},
"sort": [
0,
100.0,
0,
68321,
"434d3b0b11931286a623eab19cd07bae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9fc06329156642271c7ee38031a8b856",
"_score": 100.0,
"_source": {
"id": "9fc06329156642271c7ee38031a8b856",
"autoIncrement": 68320.0
},
"fields": {
"displayGroup": [
"fbac22a06d776b8a0fe87d7a293c32d3"
]
},
"sort": [
0,
100.0,
0,
68320,
"9fc06329156642271c7ee38031a8b856"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0bc895ab018f4f6e5ca53f5eaac19c2d",
"_score": 100.0,
"_source": {
"id": "0bc895ab018f4f6e5ca53f5eaac19c2d",
"autoIncrement": 68319.0
},
"fields": {
"displayGroup": [
"d7b95a85bd5db11b476ac6483f827df3"
]
},
"sort": [
0,
100.0,
0,
68319,
"0bc895ab018f4f6e5ca53f5eaac19c2d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7054e26924c7c3599fdc22bc534d28d0",
"_score": 100.0,
"_source": {
"id": "7054e26924c7c3599fdc22bc534d28d0",
"autoIncrement": 68318.0
},
"fields": {
"displayGroup": [
"6956340d3fd9130d500c0b61814c1ae3"
]
},
"sort": [
0,
100.0,
0,
68318,
"7054e26924c7c3599fdc22bc534d28d0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8064ccc9ea6bbd9e2b2be7e65252a80b",
"_score": 100.0,
"_source": {
"id": "8064ccc9ea6bbd9e2b2be7e65252a80b",
"autoIncrement": 68317.0
},
"fields": {
"displayGroup": [
"d573dff031da231a6011b2aef567abc3"
]
},
"sort": [
0,
100.0,
0,
68317,
"8064ccc9ea6bbd9e2b2be7e65252a80b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4a522b2c11b665feff612e82f0a1fb4d",
"_score": 100.0,
"_source": {
"id": "4a522b2c11b665feff612e82f0a1fb4d",
"autoIncrement": 68316.0
},
"fields": {
"displayGroup": [
"3f6a17b0fb92d7ec21012fbdb3eb0fc4"
]
},
"sort": [
0,
100.0,
0,
68316,
"4a522b2c11b665feff612e82f0a1fb4d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "15ad2920cb4d0154bd749dff445213b7",
"_score": 100.0,
"_source": {
"id": "15ad2920cb4d0154bd749dff445213b7",
"autoIncrement": 68315.0
},
"fields": {
"displayGroup": [
"4c4642f55687ad35c81497b63648a3bd"
]
},
"sort": [
0,
100.0,
0,
68315,
"15ad2920cb4d0154bd749dff445213b7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6a34da9c26b09623fa7a6582fbaf7445",
"_score": 100.0,
"_source": {
"id": "6a34da9c26b09623fa7a6582fbaf7445",
"autoIncrement": 68314.0
},
"fields": {
"displayGroup": [
"11ae44288a8b7c44f556b75459139455"
]
},
"sort": [
0,
100.0,
0,
68314,
"6a34da9c26b09623fa7a6582fbaf7445"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1806b0907a13eb117a3ec83e582ea18c",
"_score": 100.0,
"_source": {
"id": "1806b0907a13eb117a3ec83e582ea18c",
"autoIncrement": 68313.0
},
"fields": {
"displayGroup": [
"5dfff6b3624df61353e2dd37dfac3399"
]
},
"sort": [
0,
100.0,
0,
68313,
"1806b0907a13eb117a3ec83e582ea18c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9fc68271165fd1cc7fc8d73ffcb43d54",
"_score": 100.0,
"_source": {
"id": "9fc68271165fd1cc7fc8d73ffcb43d54",
"autoIncrement": 68312.0
},
"fields": {
"displayGroup": [
"b3433f85b9648b067b0d7f299eff2fed"
]
},
"sort": [
0,
100.0,
0,
68312,
"9fc68271165fd1cc7fc8d73ffcb43d54"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5e12af3f3b8354562b1b70d46528e9fb",
"_score": 100.0,
"_source": {
"id": "5e12af3f3b8354562b1b70d46528e9fb",
"autoIncrement": 68311.0
},
"fields": {
"displayGroup": [
"4455689011043344b384fecfd5f7763f"
]
},
"sort": [
0,
100.0,
0,
68311,
"5e12af3f3b8354562b1b70d46528e9fb"
]
}
]
},
"aggregations": {
"total-count": {
"value": 245
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.83 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":"969e9d8d4509e20ed09840a20f075ec8"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"price":{"stats":{"script":{"source":"double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n","lang":"painless","params":{"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1}],"decimals":100,"round":true,"multiplier":100.0}}}},"rating-exists":{"filter":{"range":{"ratingAverage":{"gte":0.0}}},"aggregations":{"rating":{"max":{"field":"ratingAverage"}}}},"shipping-free-filter":{"filter":{"term":{"shippingFree":true}},"aggregations":{"shipping-free":{"max":{"field":"shippingFree"}}}},"properties":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-width":{"composite":{"sources":[{"multi-width.sorting":{"terms":{"field":"width","order":"ASC"}}},{"multi-width.key":{"terms":{"field":"width"}}}],"size":"99999"}},"multi-height":{"composite":{"sources":[{"multi-height.sorting":{"terms":{"field":"height","order":"ASC"}}},{"multi-height.key":{"terms":{"field":"height"}}}],"size":"99999"}},"multi-tiefe":{"composite":{"sources":[{"multi-tiefe.sorting":{"terms":{"field":"attribute_tiefe","order":"ASC"}}},{"multi-tiefe.key":{"terms":{"field":"attribute_tiefe"}}}],"size":"99999"}},"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"multi-traglast":{"composite":{"sources":[{"multi-traglast.sorting":{"terms":{"field":"attribute_traglast","order":"ASC"}}},{"multi-traglast.key":{"terms":{"field":"attribute_traglast"}}}],"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": "969e9d8d4509e20ed09840a20f075ec8"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"price": {
"stats": {
"script": {
"source": "double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n",
"lang": "painless",
"params": {
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
}
],
"decimals": 100,
"round": true,
"multiplier": 100.0
}
}
}
},
"rating-exists": {
"filter": {
"range": {
"ratingAverage": {
"gte": 0.0
}
}
},
"aggregations": {
"rating": {
"max": {
"field": "ratingAverage"
}
}
}
},
"shipping-free-filter": {
"filter": {
"term": {
"shippingFree": true
}
},
"aggregations": {
"shipping-free": {
"max": {
"field": "shippingFree"
}
}
}
},
"properties": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-width": {
"composite": {
"sources": [
{
"multi-width.sorting": {
"terms": {
"field": "width",
"order": "ASC"
}
}
},
{
"multi-width.key": {
"terms": {
"field": "width"
}
}
}
],
"size": "99999"
}
},
"multi-height": {
"composite": {
"sources": [
{
"multi-height.sorting": {
"terms": {
"field": "height",
"order": "ASC"
}
}
},
{
"multi-height.key": {
"terms": {
"field": "height"
}
}
}
],
"size": "99999"
}
},
"multi-tiefe": {
"composite": {
"sources": [
{
"multi-tiefe.sorting": {
"terms": {
"field": "attribute_tiefe",
"order": "ASC"
}
}
},
{
"multi-tiefe.key": {
"terms": {
"field": "attribute_tiefe"
}
}
}
],
"size": "99999"
}
},
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"multi-traglast": {
"composite": {
"sources": [
{
"multi-traglast.sorting": {
"terms": {
"field": "attribute_traglast",
"order": "ASC"
}
}
},
{
"multi-traglast.key": {
"terms": {
"field": "attribute_traglast"
}
}
}
],
"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": 245,
"min": 4.8,
"max": 2349.0,
"avg": 221.4387755102041,
"sum": 54252.5
},
"rating-exists": {
"doc_count": 245,
"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": "1acbf8858846ac1ca47b6395e9eca5e2",
"manufacturer-count-filter.key": "1acbf8858846ac1ca47b6395e9eca5e2"
},
"doc_count": 6
},
{
"key": {
"manufacturer-count-filter.sorting": "5267ee69add37a0408db89f9cd30c57f",
"manufacturer-count-filter.key": "5267ee69add37a0408db89f9cd30c57f"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 81
},
{
"key": {
"manufacturer-count-filter.sorting": "6702a27cc2ed074813e1d59f22465957",
"manufacturer-count-filter.key": "6702a27cc2ed074813e1d59f22465957"
},
"doc_count": 27
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 17
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke",
"multi-typModel.key": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Palettenregal Trennarme",
"multi-typModel.key": "Palettenregal Trennarme"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Ausrollregale",
"multi-typModel.key": "Zubeh\u00f6r Ausrollregale"
},
"doc_count": 8
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Auszugregale",
"multi-typModel.key": "Zubeh\u00f6r Auszugregale"
},
"doc_count": 73
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 133
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Kabeltrommelregale",
"multi-typModel.key": "Zubeh\u00f6r Kabeltrommelregale"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Reifenregale",
"multi-typModel.key": "Zubeh\u00f6r Reifenregale"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Schlauchregale",
"multi-typModel.key": "Zubeh\u00f6r Schlauchregale"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Wabenregale",
"multi-typModel.key": "Zubeh\u00f6r Wabenregale"
},
"doc_count": 6
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke",
"multi-typModel.key": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke"
},
"doc_count": 14
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 1695.0,
"multi-width.key": 1695.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 300.0,
"multi-width.key": 300.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 600.0,
"multi-width.key": 600.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 701.0,
"multi-width.key": 701.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 750.0,
"multi-width.key": 750.0
},
"doc_count": 6
},
{
"key": {
"multi-width.sorting": 800.0,
"multi-width.key": 800.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 805.0,
"multi-width.key": 805.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 870.0,
"multi-width.key": 870.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 875.0,
"multi-width.key": 875.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 890.0,
"multi-width.key": 890.0
},
"doc_count": 21
},
{
"key": {
"multi-width.sorting": 900.0,
"multi-width.key": 900.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 918.0,
"multi-width.key": 918.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 960.0,
"multi-width.key": 960.0
},
"doc_count": 6
},
{
"key": {
"multi-width.sorting": 985.0,
"multi-width.key": 985.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 1005.0,
"multi-width.key": 1005.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 1010.0,
"multi-width.key": 1010.0
},
"doc_count": 9
},
{
"key": {
"multi-width.sorting": 1090.0,
"multi-width.key": 1090.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 1200.0,
"multi-width.key": 1200.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 1250.0,
"multi-width.key": 1250.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 1260.0,
"multi-width.key": 1260.0
},
"doc_count": 9
},
{
"key": {
"multi-width.sorting": 1285.0,
"multi-width.key": 1285.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 1290.0,
"multi-width.key": 1290.0
},
"doc_count": 21
},
{
"key": {
"multi-width.sorting": 1400.0,
"multi-width.key": 1400.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 13
},
{
"key": {
"multi-width.sorting": 1695.0,
"multi-width.key": 1695.0
},
"doc_count": 2
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 2600.0,
"multi-height.key": 2600.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 75.0,
"multi-height.key": 75.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 1000.0,
"multi-height.key": 1000.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 1500.0,
"multi-height.key": 1500.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 1830.0,
"multi-height.key": 1830.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 1900.0,
"multi-height.key": 1900.0
},
"doc_count": 8
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2200.0,
"multi-height.key": 2200.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2250.0,
"multi-height.key": 2250.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2600.0,
"multi-height.key": 2600.0
},
"doc_count": 3
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 6000.0,
"multi-tiefe.key": 6000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 300.0,
"multi-tiefe.key": 300.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 32
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 27
},
{
"key": {
"multi-tiefe.sorting": 540.0,
"multi-tiefe.key": 540.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 28
},
{
"key": {
"multi-tiefe.sorting": 612.0,
"multi-tiefe.key": 612.0
},
"doc_count": 4
},
{
"key": {
"multi-tiefe.sorting": 750.0,
"multi-tiefe.key": 750.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 8
},
{
"key": {
"multi-tiefe.sorting": 860.0,
"multi-tiefe.key": 860.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 9
},
{
"key": {
"multi-tiefe.sorting": 1060.0,
"multi-tiefe.key": 1060.0
},
"doc_count": 13
},
{
"key": {
"multi-tiefe.sorting": 1260.0,
"multi-tiefe.key": 1260.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 3000.0,
"multi-tiefe.key": 3000.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 6000.0,
"multi-tiefe.key": 6000.0
},
"doc_count": 2
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 81
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 27
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 17
},
{
"key": "1acbf8858846ac1ca47b6395e9eca5e2",
"doc_count": 6
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 4
}
]
},
"multi-traglast": {
"buckets": []
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 2
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 81
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 27
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 17
},
{
"key": "1acbf8858846ac1ca47b6395e9eca5e2",
"doc_count": 6
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|