| 1 |
15.57 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":"07b459106e817025ff7c0577bed18344"}},{"exists":{"field":"displayGroup"}}]}}],"should":[{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea07ad57e59841906b9dac1ae23"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea3242c77a3ad7aaa686586f79c"]}}}}]}},"boost":150.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018fe3229d5677949c032d1a4983f006"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["f4e67c126b4e4b4f8b4f4b8295613b5b"]}}}}]}},"boost":1000.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["15706c7290284128acdcdc0aa07bda52"]}}}}]}},"boost":400.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["a33aa3f47e2147c9be62a08216f92c1c"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["e3d0223b8cfd4edb8b5581ae7e9ab5cf"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["62000891305f4ae4837e16e336cf2868"]}}}}]}},"boost":200.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["9222eeebbd984a1fbba6521d6c03bc43"]}}}}]}},"boost":250.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["cb292e1aaf854891a0d4e2fca32dd02f"]}}}}]}},"boost":100.0}}]}},"sort":[{"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.acris_search_sorting_relevance":{"unmapped_type":"integer","missing":0,"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":0,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 106,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "1cac1241e90906d21c37694e0a2e5eeb",
"_score": 1100.0,
"_source": {
"id": "1cac1241e90906d21c37694e0a2e5eeb",
"autoIncrement": 207.0
},
"fields": {
"displayGroup": [
"98f3bc463d207403fe785ea267b4c688"
]
},
"sort": [
92,
1100.0,
0,
207,
"1cac1241e90906d21c37694e0a2e5eeb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "29f07ff58abd548e689b5a768594f7f1",
"_score": 1100.0,
"_source": {
"id": "29f07ff58abd548e689b5a768594f7f1",
"autoIncrement": 208.0
},
"fields": {
"displayGroup": [
"706e04e495f61505b321242816f9e630"
]
},
"sort": [
91,
1100.0,
0,
208,
"29f07ff58abd548e689b5a768594f7f1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8b31ea212fa5491d4ac9b94a294f9b91",
"_score": 1100.0,
"_source": {
"id": "8b31ea212fa5491d4ac9b94a294f9b91",
"autoIncrement": 206.0
},
"fields": {
"displayGroup": [
"bd9a7efb1fadaa8e56a3cc71a46e2554"
]
},
"sort": [
90,
1100.0,
0,
206,
"8b31ea212fa5491d4ac9b94a294f9b91"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d6fd899b36d89ecbbff89f2e52a87cab",
"_score": 1100.0,
"_source": {
"id": "d6fd899b36d89ecbbff89f2e52a87cab",
"autoIncrement": 137646.0
},
"fields": {
"displayGroup": [
"7ecd91d365347d6febeb68f84d64a4b7"
]
},
"sort": [
0,
1100.0,
0,
137646,
"d6fd899b36d89ecbbff89f2e52a87cab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "afd597ac85176dd30136d6b6289ef2cb",
"_score": 1100.0,
"_source": {
"id": "afd597ac85176dd30136d6b6289ef2cb",
"autoIncrement": 128843.0
},
"fields": {
"displayGroup": [
"a3be532cd1031d31dff779ab682a1b87"
]
},
"sort": [
0,
1100.0,
0,
128843,
"afd597ac85176dd30136d6b6289ef2cb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6af6f0fb7ba8bff6def1aad11b907489",
"_score": 1100.0,
"_source": {
"id": "6af6f0fb7ba8bff6def1aad11b907489",
"autoIncrement": 121874.0
},
"fields": {
"displayGroup": [
"f3476547c8638bb574d840dae03faa0d"
]
},
"sort": [
0,
1100.0,
0,
121874,
"6af6f0fb7ba8bff6def1aad11b907489"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "81d83aec865c2bd6ec65e33a68473f9e",
"_score": 1100.0,
"_source": {
"id": "81d83aec865c2bd6ec65e33a68473f9e",
"autoIncrement": 119097.0
},
"fields": {
"displayGroup": [
"6a5a3e3235132d5355f4bf0afa8e0898"
]
},
"sort": [
0,
1100.0,
0,
119097,
"81d83aec865c2bd6ec65e33a68473f9e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "93e2320f35bd0eddc739ed97a3d80973",
"_score": 1100.0,
"_source": {
"id": "93e2320f35bd0eddc739ed97a3d80973",
"autoIncrement": 78381.0
},
"fields": {
"displayGroup": [
"bc0a3f4f3328c525fd727e7c13e35b3d"
]
},
"sort": [
0,
1100.0,
0,
78381,
"93e2320f35bd0eddc739ed97a3d80973"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "597970819c97b46428427f2102ac0838",
"_score": 1100.0,
"_source": {
"id": "597970819c97b46428427f2102ac0838",
"autoIncrement": 78380.0
},
"fields": {
"displayGroup": [
"43b1f4a7e757fd8a4c4b669932c7e4a2"
]
},
"sort": [
0,
1100.0,
0,
78380,
"597970819c97b46428427f2102ac0838"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "38807c197a6293d31f5922f8f0ea736f",
"_score": 1100.0,
"_source": {
"id": "38807c197a6293d31f5922f8f0ea736f",
"autoIncrement": 78379.0
},
"fields": {
"displayGroup": [
"0bdd0abf3364f1f956323a08d2af1ac4"
]
},
"sort": [
0,
1100.0,
0,
78379,
"38807c197a6293d31f5922f8f0ea736f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a9c96cb37bc137378595c1ff0770c5c7",
"_score": 1100.0,
"_source": {
"id": "a9c96cb37bc137378595c1ff0770c5c7",
"autoIncrement": 78378.0
},
"fields": {
"displayGroup": [
"ba91f0822bf2d264c58e0a6a05759c51"
]
},
"sort": [
0,
1100.0,
0,
78378,
"a9c96cb37bc137378595c1ff0770c5c7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3575b8a3a38ebd6fd27c024dd2cf9534",
"_score": 1100.0,
"_source": {
"id": "3575b8a3a38ebd6fd27c024dd2cf9534",
"autoIncrement": 78377.0
},
"fields": {
"displayGroup": [
"7162613cdeea2edde4c3a2aaf9ac369e"
]
},
"sort": [
0,
1100.0,
0,
78377,
"3575b8a3a38ebd6fd27c024dd2cf9534"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b0905d84307275b8e8a19297dffe531a",
"_score": 1100.0,
"_source": {
"id": "b0905d84307275b8e8a19297dffe531a",
"autoIncrement": 78376.0
},
"fields": {
"displayGroup": [
"9bfc988a071bf6dbdf3c1af21794d828"
]
},
"sort": [
0,
1100.0,
0,
78376,
"b0905d84307275b8e8a19297dffe531a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8647f738ace4b685b858e9097c501463",
"_score": 1100.0,
"_source": {
"id": "8647f738ace4b685b858e9097c501463",
"autoIncrement": 78375.0
},
"fields": {
"displayGroup": [
"909866281eaec57eec2eae45773f5029"
]
},
"sort": [
0,
1100.0,
0,
78375,
"8647f738ace4b685b858e9097c501463"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cfd36301c59a438bdfada0910d333579",
"_score": 1100.0,
"_source": {
"id": "cfd36301c59a438bdfada0910d333579",
"autoIncrement": 78374.0
},
"fields": {
"displayGroup": [
"64b59043db89c71dd1e6dc75c675cc06"
]
},
"sort": [
0,
1100.0,
0,
78374,
"cfd36301c59a438bdfada0910d333579"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "07611af99c7924097c13fbc3662a1c1f",
"_score": 1100.0,
"_source": {
"id": "07611af99c7924097c13fbc3662a1c1f",
"autoIncrement": 78373.0
},
"fields": {
"displayGroup": [
"63dd68c7496021fb467af2749f125069"
]
},
"sort": [
0,
1100.0,
0,
78373,
"07611af99c7924097c13fbc3662a1c1f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f52882b29de3f321adadfd0475614876",
"_score": 1100.0,
"_source": {
"id": "f52882b29de3f321adadfd0475614876",
"autoIncrement": 78372.0
},
"fields": {
"displayGroup": [
"2341a3583134c79ff9ed7e9d4dbed689"
]
},
"sort": [
0,
1100.0,
0,
78372,
"f52882b29de3f321adadfd0475614876"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "990882d737ac77e948975111d9eb3554",
"_score": 1100.0,
"_source": {
"id": "990882d737ac77e948975111d9eb3554",
"autoIncrement": 78371.0
},
"fields": {
"displayGroup": [
"21482928a0daf2ed935cbefb326d371e"
]
},
"sort": [
0,
1100.0,
0,
78371,
"990882d737ac77e948975111d9eb3554"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eda413fff72117dd7a8a65022ede4972",
"_score": 1100.0,
"_source": {
"id": "eda413fff72117dd7a8a65022ede4972",
"autoIncrement": 78370.0
},
"fields": {
"displayGroup": [
"8770c232653f94adc272563768e9fff0"
]
},
"sort": [
0,
1100.0,
0,
78370,
"eda413fff72117dd7a8a65022ede4972"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7830548ccdb24d60e299325c97a571c1",
"_score": 1100.0,
"_source": {
"id": "7830548ccdb24d60e299325c97a571c1",
"autoIncrement": 78369.0
},
"fields": {
"displayGroup": [
"4c45247e28dc15051d5c9a19d6981b64"
]
},
"sort": [
0,
1100.0,
0,
78369,
"7830548ccdb24d60e299325c97a571c1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c6799a7d6cd479735c1b69fdf5e5df0c",
"_score": 1100.0,
"_source": {
"id": "c6799a7d6cd479735c1b69fdf5e5df0c",
"autoIncrement": 78368.0
},
"fields": {
"displayGroup": [
"719fb6ebcb47cf9c28f088b70cb7a679"
]
},
"sort": [
0,
1100.0,
0,
78368,
"c6799a7d6cd479735c1b69fdf5e5df0c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4f85e52b51d2c9de759a06639efb7e2b",
"_score": 1100.0,
"_source": {
"id": "4f85e52b51d2c9de759a06639efb7e2b",
"autoIncrement": 78367.0
},
"fields": {
"displayGroup": [
"66b41271459b0e6f0000d2349e3e2537"
]
},
"sort": [
0,
1100.0,
0,
78367,
"4f85e52b51d2c9de759a06639efb7e2b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "61aa1b3821e7146522e3555313a024d8",
"_score": 1100.0,
"_source": {
"id": "61aa1b3821e7146522e3555313a024d8",
"autoIncrement": 78366.0
},
"fields": {
"displayGroup": [
"6775d31664125770c4d67c35d6eabfdb"
]
},
"sort": [
0,
1100.0,
0,
78366,
"61aa1b3821e7146522e3555313a024d8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ebd5dc0b5f86a7a9cc3956b660516329",
"_score": 1100.0,
"_source": {
"id": "ebd5dc0b5f86a7a9cc3956b660516329",
"autoIncrement": 44916.0
},
"fields": {
"displayGroup": [
"da49ee4330f3a1b92514f1ff0a57913a"
]
},
"sort": [
0,
1100.0,
0,
44916,
"ebd5dc0b5f86a7a9cc3956b660516329"
]
}
]
},
"aggregations": {
"total-count": {
"value": 106
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
10.85 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":"07b459106e817025ff7c0577bed18344"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"price":{"stats":{"script":{"source":"double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n","lang":"painless","params":{"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1}],"decimals":100,"round":true,"multiplier":100.0}}}},"rating-exists":{"filter":{"range":{"ratingAverage":{"gte":0.0}}},"aggregations":{"rating":{"max":{"field":"ratingAverage"}}}},"shipping-free-filter":{"filter":{"term":{"shippingFree":true}},"aggregations":{"shipping-free":{"max":{"field":"shippingFree"}}}},"properties":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"width":{"stats":{"field":"width"}},"width-stats":{"filter":{"range":{"width":{"gt":0.0}}},"aggregations":{"width-stats":{"stats":{"field":"width"}}}},"height":{"stats":{"field":"height"}},"height-stats":{"filter":{"range":{"height":{"gt":0.0}}},"aggregations":{"height-stats":{"stats":{"field":"height"}}}},"tiefe":{"stats":{"field":"attribute_tiefe"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-materialBehaelter":{"composite":{"sources":[{"multi-materialBehaelter.sorting":{"terms":{"field":"attribute_materialBehaelter","order":"ASC"}}},{"multi-materialBehaelter.key":{"terms":{"field":"attribute_materialBehaelter"}}}],"size":"99999"}},"multi-behaelterfarbe":{"composite":{"sources":[{"multi-behaelterfarbe.sorting":{"terms":{"field":"attribute_behaelterfarbe","order":"ASC"}}},{"multi-behaelterfarbe.key":{"terms":{"field":"attribute_behaelterfarbe"}}}],"size":"99999"}},"range-behaeltervolumen":{"stats":{"field":"attribute_behaeltervolumen"}},"range-gewichtCa":{"stats":{"field":"attribute_gewichtCa"}},"bool-deckel":{"filter":{"term":{"attribute_deckel":"true"}},"aggregations":{"bool-deckel-count":{"value_count":{"field":"id"}}}},"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": "07b459106e817025ff7c0577bed18344"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"price": {
"stats": {
"script": {
"source": "double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n",
"lang": "painless",
"params": {
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
}
],
"decimals": 100,
"round": true,
"multiplier": 100.0
}
}
}
},
"rating-exists": {
"filter": {
"range": {
"ratingAverage": {
"gte": 0.0
}
}
},
"aggregations": {
"rating": {
"max": {
"field": "ratingAverage"
}
}
}
},
"shipping-free-filter": {
"filter": {
"term": {
"shippingFree": true
}
},
"aggregations": {
"shipping-free": {
"max": {
"field": "shippingFree"
}
}
}
},
"properties": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"width": {
"stats": {
"field": "width"
}
},
"width-stats": {
"filter": {
"range": {
"width": {
"gt": 0.0
}
}
},
"aggregations": {
"width-stats": {
"stats": {
"field": "width"
}
}
}
},
"height": {
"stats": {
"field": "height"
}
},
"height-stats": {
"filter": {
"range": {
"height": {
"gt": 0.0
}
}
},
"aggregations": {
"height-stats": {
"stats": {
"field": "height"
}
}
}
},
"tiefe": {
"stats": {
"field": "attribute_tiefe"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-materialBehaelter": {
"composite": {
"sources": [
{
"multi-materialBehaelter.sorting": {
"terms": {
"field": "attribute_materialBehaelter",
"order": "ASC"
}
}
},
{
"multi-materialBehaelter.key": {
"terms": {
"field": "attribute_materialBehaelter"
}
}
}
],
"size": "99999"
}
},
"multi-behaelterfarbe": {
"composite": {
"sources": [
{
"multi-behaelterfarbe.sorting": {
"terms": {
"field": "attribute_behaelterfarbe",
"order": "ASC"
}
}
},
{
"multi-behaelterfarbe.key": {
"terms": {
"field": "attribute_behaelterfarbe"
}
}
}
],
"size": "99999"
}
},
"range-behaeltervolumen": {
"stats": {
"field": "attribute_behaeltervolumen"
}
},
"range-gewichtCa": {
"stats": {
"field": "attribute_gewichtCa"
}
},
"bool-deckel": {
"filter": {
"term": {
"attribute_deckel": "true"
}
},
"aggregations": {
"bool-deckel-count": {
"value_count": {
"field": "id"
}
}
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 106,
"min": 0.0,
"max": 849.0,
"avg": 323.97169811320754,
"sum": 34341.0
},
"rating-exists": {
"doc_count": 106,
"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": "e1330782b3097373dd5b64609bbdc363",
"manufacturer-count-filter.key": "e1330782b3097373dd5b64609bbdc363"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "002101f8725e5c78d9f30d87f3fa4c87",
"manufacturer-count-filter.key": "002101f8725e5c78d9f30d87f3fa4c87"
},
"doc_count": 27
},
{
"key": {
"manufacturer-count-filter.sorting": "3bb7d1a75e4b1caaecfd4c5223b756f7",
"manufacturer-count-filter.key": "3bb7d1a75e4b1caaecfd4c5223b756f7"
},
"doc_count": 3
},
{
"key": {
"manufacturer-count-filter.sorting": "e1330782b3097373dd5b64609bbdc363",
"manufacturer-count-filter.key": "e1330782b3097373dd5b64609bbdc363"
},
"doc_count": 16
}
]
},
"bool-reduced": {
"doc_count": 4,
"bool-reduced": {
"value": 4
}
},
"width": {
"count": 92,
"min": 124.0,
"max": 2160.0,
"avg": 1086.1304347826087,
"sum": 99924.0
},
"width-stats": {
"doc_count": 92,
"width-stats": {
"count": 92,
"min": 124.0,
"max": 2160.0,
"avg": 1086.1304347826087,
"sum": 99924.0
}
},
"height": {
"count": 92,
"min": 97.0,
"max": 1180.0,
"avg": 629.1847826086956,
"sum": 57885.0
},
"height-stats": {
"doc_count": 92,
"height-stats": {
"count": 92,
"min": 97.0,
"max": 1180.0,
"avg": 629.1847826086956,
"sum": 57885.0
}
},
"tiefe": {
"count": 79,
"min": 84.0,
"max": 1000.0,
"avg": 738.0886075949367,
"sum": 58309.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Stapelbeh\u00e4lter",
"multi-typModel.key": "Stapelbeh\u00e4lter"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Gitterboxen",
"multi-typModel.key": "Gitterboxen"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Palettenboxen",
"multi-typModel.key": "Palettenboxen"
},
"doc_count": 66
},
{
"key": {
"multi-typModel.sorting": "Stapelbeh\u00e4lter",
"multi-typModel.key": "Stapelbeh\u00e4lter"
},
"doc_count": 37
}
]
},
"multi-materialBehaelter": {
"buckets": []
},
"multi-behaelterfarbe": {
"buckets": []
},
"range-behaeltervolumen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"range-gewichtCa": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"bool-deckel": {
"doc_count": 4,
"bool-deckel-count": {
"value": 4
}
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "002101f8725e5c78d9f30d87f3fa4c87",
"doc_count": 27
},
{
"key": "e1330782b3097373dd5b64609bbdc363",
"doc_count": 16
},
{
"key": "3bb7d1a75e4b1caaecfd4c5223b756f7",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|