| 1 |
16.93 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":96,"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": "94a0ed6e9a0be411441d21730b19ddca",
"_score": 100.0,
"_source": {
"id": "94a0ed6e9a0be411441d21730b19ddca",
"autoIncrement": 67374.0
},
"fields": {
"displayGroup": [
"984443eebcece1080fd4857807b93f34"
]
},
"sort": [
0,
100.0,
0,
67374,
"94a0ed6e9a0be411441d21730b19ddca"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eb2c1f878bea082bcde7381682cabf5a",
"_score": 100.0,
"_source": {
"id": "eb2c1f878bea082bcde7381682cabf5a",
"autoIncrement": 67373.0
},
"fields": {
"displayGroup": [
"648e83fc9dc3e4e80a5a3aaf15fbb0cc"
]
},
"sort": [
0,
100.0,
0,
67373,
"eb2c1f878bea082bcde7381682cabf5a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4aecd3c9edeb466e1f84dc9d083aadc5",
"_score": 100.0,
"_source": {
"id": "4aecd3c9edeb466e1f84dc9d083aadc5",
"autoIncrement": 67372.0
},
"fields": {
"displayGroup": [
"b4b9c9d7e31a69a39eab2ad0963522e0"
]
},
"sort": [
0,
100.0,
0,
67372,
"4aecd3c9edeb466e1f84dc9d083aadc5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f420a333e13984a72ac66dd305664b03",
"_score": 100.0,
"_source": {
"id": "f420a333e13984a72ac66dd305664b03",
"autoIncrement": 67371.0
},
"fields": {
"displayGroup": [
"fa2c22ac4784cd906f7cd87a2cf77e32"
]
},
"sort": [
0,
100.0,
0,
67371,
"f420a333e13984a72ac66dd305664b03"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cef87f0ecb22dd33e4708b2c7e423da1",
"_score": 100.0,
"_source": {
"id": "cef87f0ecb22dd33e4708b2c7e423da1",
"autoIncrement": 67370.0
},
"fields": {
"displayGroup": [
"3660e296004a584779a03b18f2d3975b"
]
},
"sort": [
0,
100.0,
0,
67370,
"cef87f0ecb22dd33e4708b2c7e423da1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8dcdac50b0447e4f4292fe196b87396c",
"_score": 100.0,
"_source": {
"id": "8dcdac50b0447e4f4292fe196b87396c",
"autoIncrement": 67369.0
},
"fields": {
"displayGroup": [
"1ba7e6be865c222a7429783dd8182044"
]
},
"sort": [
0,
100.0,
0,
67369,
"8dcdac50b0447e4f4292fe196b87396c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e8a281454245260b9ee25abead849ae5",
"_score": 100.0,
"_source": {
"id": "e8a281454245260b9ee25abead849ae5",
"autoIncrement": 67368.0
},
"fields": {
"displayGroup": [
"85338019c73895083b9ac1377e48ee34"
]
},
"sort": [
0,
100.0,
0,
67368,
"e8a281454245260b9ee25abead849ae5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fecf379b6d713aa89a595c2fe2448771",
"_score": 100.0,
"_source": {
"id": "fecf379b6d713aa89a595c2fe2448771",
"autoIncrement": 67367.0
},
"fields": {
"displayGroup": [
"9f95980fcc7193bf68271c29ae5d1399"
]
},
"sort": [
0,
100.0,
0,
67367,
"fecf379b6d713aa89a595c2fe2448771"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2b701ea65621018e2b64fc689d85f89e",
"_score": 100.0,
"_source": {
"id": "2b701ea65621018e2b64fc689d85f89e",
"autoIncrement": 67205.0
},
"fields": {
"displayGroup": [
"31a6ff020e96974d032826f3aa261239"
]
},
"sort": [
0,
100.0,
0,
67205,
"2b701ea65621018e2b64fc689d85f89e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "47b8955d0bbb6071ec881a56e03b5e93",
"_score": 100.0,
"_source": {
"id": "47b8955d0bbb6071ec881a56e03b5e93",
"autoIncrement": 67204.0
},
"fields": {
"displayGroup": [
"15c4de47e7d4947bbb432583cd628468"
]
},
"sort": [
0,
100.0,
0,
67204,
"47b8955d0bbb6071ec881a56e03b5e93"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7411183491764773f41fcf1b60ddc0eb",
"_score": 100.0,
"_source": {
"id": "7411183491764773f41fcf1b60ddc0eb",
"autoIncrement": 67203.0
},
"fields": {
"displayGroup": [
"369461ab89269f58fd9c6fb21a371119"
]
},
"sort": [
0,
100.0,
0,
67203,
"7411183491764773f41fcf1b60ddc0eb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c1c27f21f1c37bcbbc2df78a30b9ee8e",
"_score": 100.0,
"_source": {
"id": "c1c27f21f1c37bcbbc2df78a30b9ee8e",
"autoIncrement": 67202.0
},
"fields": {
"displayGroup": [
"2cb756a4ed57bc9ad20fd4d4bd84bb8c"
]
},
"sort": [
0,
100.0,
0,
67202,
"c1c27f21f1c37bcbbc2df78a30b9ee8e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "13e80641381716e2cb6c34e79fb69c7e",
"_score": 100.0,
"_source": {
"id": "13e80641381716e2cb6c34e79fb69c7e",
"autoIncrement": 67201.0
},
"fields": {
"displayGroup": [
"d22f9158e3be99de16bb6199dae67ab6"
]
},
"sort": [
0,
100.0,
0,
67201,
"13e80641381716e2cb6c34e79fb69c7e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "aa4245f02faf8e572c8d1126dda6713c",
"_score": 100.0,
"_source": {
"id": "aa4245f02faf8e572c8d1126dda6713c",
"autoIncrement": 67200.0
},
"fields": {
"displayGroup": [
"47e8a21d05eaba3ca85b4f4ac8214707"
]
},
"sort": [
0,
100.0,
0,
67200,
"aa4245f02faf8e572c8d1126dda6713c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2877bc812bea0ddcb9cd8d446561f277",
"_score": 100.0,
"_source": {
"id": "2877bc812bea0ddcb9cd8d446561f277",
"autoIncrement": 67199.0
},
"fields": {
"displayGroup": [
"3d222aa062e9eb64df7b7216a598dbf9"
]
},
"sort": [
0,
100.0,
0,
67199,
"2877bc812bea0ddcb9cd8d446561f277"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6b5f9370f331bf4ce889beb2ab4bcca7",
"_score": 100.0,
"_source": {
"id": "6b5f9370f331bf4ce889beb2ab4bcca7",
"autoIncrement": 67198.0
},
"fields": {
"displayGroup": [
"27bcc7988c86d932cf5fbaddb96896e7"
]
},
"sort": [
0,
100.0,
0,
67198,
"6b5f9370f331bf4ce889beb2ab4bcca7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c7920f8a023eea45f1ff19ade27ffc53",
"_score": 100.0,
"_source": {
"id": "c7920f8a023eea45f1ff19ade27ffc53",
"autoIncrement": 67197.0
},
"fields": {
"displayGroup": [
"d4b1abaa4f719836f79ac40ba923d088"
]
},
"sort": [
0,
100.0,
0,
67197,
"c7920f8a023eea45f1ff19ade27ffc53"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7d14fae2b812a8d5649ff9cbb0a79a90",
"_score": 100.0,
"_source": {
"id": "7d14fae2b812a8d5649ff9cbb0a79a90",
"autoIncrement": 67196.0
},
"fields": {
"displayGroup": [
"532343b2571a4396c2a3c963235093c3"
]
},
"sort": [
0,
100.0,
0,
67196,
"7d14fae2b812a8d5649ff9cbb0a79a90"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5a9a6c1ddee744480432e17ef15d5b68",
"_score": 100.0,
"_source": {
"id": "5a9a6c1ddee744480432e17ef15d5b68",
"autoIncrement": 67195.0
},
"fields": {
"displayGroup": [
"c49784e569b4b0b8a7bcc997f01959c0"
]
},
"sort": [
0,
100.0,
0,
67195,
"5a9a6c1ddee744480432e17ef15d5b68"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ae19218d87c957eabf1477fdfc136507",
"_score": 100.0,
"_source": {
"id": "ae19218d87c957eabf1477fdfc136507",
"autoIncrement": 67194.0
},
"fields": {
"displayGroup": [
"12f3aa43dbb41121aae59d811ebde915"
]
},
"sort": [
0,
100.0,
0,
67194,
"ae19218d87c957eabf1477fdfc136507"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "84ab47f9291fbc728943fa5de88d6a25",
"_score": 100.0,
"_source": {
"id": "84ab47f9291fbc728943fa5de88d6a25",
"autoIncrement": 67193.0
},
"fields": {
"displayGroup": [
"d9c15f430c26eaa4d5980cd76ecebbc2"
]
},
"sort": [
0,
100.0,
0,
67193,
"84ab47f9291fbc728943fa5de88d6a25"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1aae392049498594a8be666878aba72f",
"_score": 100.0,
"_source": {
"id": "1aae392049498594a8be666878aba72f",
"autoIncrement": 67192.0
},
"fields": {
"displayGroup": [
"204a73a50291b700fd5faabe486bf818"
]
},
"sort": [
0,
100.0,
0,
67192,
"1aae392049498594a8be666878aba72f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0160f5797faf6a7f3d1f4efb2b1309c5",
"_score": 100.0,
"_source": {
"id": "0160f5797faf6a7f3d1f4efb2b1309c5",
"autoIncrement": 67191.0
},
"fields": {
"displayGroup": [
"5c75265a43a0aa6e70b818d1e88ecea3"
]
},
"sort": [
0,
100.0,
0,
67191,
"0160f5797faf6a7f3d1f4efb2b1309c5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7a6f39619048568f04066e5b5c8e3b2c",
"_score": 100.0,
"_source": {
"id": "7a6f39619048568f04066e5b5c8e3b2c",
"autoIncrement": 67190.0
},
"fields": {
"displayGroup": [
"cd3f4f19e5e0795bd3e0a80b3cbc3d76"
]
},
"sort": [
0,
100.0,
0,
67190,
"7a6f39619048568f04066e5b5c8e3b2c"
]
}
]
},
"aggregations": {
"total-count": {
"value": 245
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.21 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
|