| 1 |
17.97 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":"e5ef510b214a7c8cee8aa2d173c070b4"}},{"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": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 437,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "51192d46b4e2a838de048dcfdfd68f76",
"_score": 1250.0,
"_source": {
"id": "51192d46b4e2a838de048dcfdfd68f76",
"autoIncrement": 114983.0
},
"fields": {
"displayGroup": [
"e419e4d0ff7d51eea0750216f228e1b4"
]
},
"sort": [
0,
1250.0,
0,
114983,
"51192d46b4e2a838de048dcfdfd68f76"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3fdcab8112a3ce81bab4132a2af92561",
"_score": 1250.0,
"_source": {
"id": "3fdcab8112a3ce81bab4132a2af92561",
"autoIncrement": 114982.0
},
"fields": {
"displayGroup": [
"92e6d0f0b7d37c350313f9b4fb188951"
]
},
"sort": [
0,
1250.0,
0,
114982,
"3fdcab8112a3ce81bab4132a2af92561"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "222c1fd358a6b2cca149083a8ad6e7db",
"_score": 1250.0,
"_source": {
"id": "222c1fd358a6b2cca149083a8ad6e7db",
"autoIncrement": 114981.0
},
"fields": {
"displayGroup": [
"9ea70e84878105b71d388bc63dd2fc39"
]
},
"sort": [
0,
1250.0,
0,
114981,
"222c1fd358a6b2cca149083a8ad6e7db"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5d8e46ded270eb2362b2f9ad98e9802a",
"_score": 1250.0,
"_source": {
"id": "5d8e46ded270eb2362b2f9ad98e9802a",
"autoIncrement": 114980.0
},
"fields": {
"displayGroup": [
"b5fc626148f493e537f7ea26e529c7a1"
]
},
"sort": [
0,
1250.0,
0,
114980,
"5d8e46ded270eb2362b2f9ad98e9802a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "90b4c5488fe1b4333d39b1a4bc79a131",
"_score": 1100.0,
"_source": {
"id": "90b4c5488fe1b4333d39b1a4bc79a131",
"autoIncrement": 147575.0
},
"fields": {
"displayGroup": [
"23a5a075cfc83900672a0b0d6cd4c266"
]
},
"sort": [
0,
1100.0,
0,
147575,
"90b4c5488fe1b4333d39b1a4bc79a131"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e3b874db00d12b57dd709964455fc827",
"_score": 1100.0,
"_source": {
"id": "e3b874db00d12b57dd709964455fc827",
"autoIncrement": 147574.0
},
"fields": {
"displayGroup": [
"7b6f323f7de9fde9f1420b42dbcf49c8"
]
},
"sort": [
0,
1100.0,
0,
147574,
"e3b874db00d12b57dd709964455fc827"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2c58bbfbd2e09713d2e6a28e2d60420c",
"_score": 1100.0,
"_source": {
"id": "2c58bbfbd2e09713d2e6a28e2d60420c",
"autoIncrement": 147573.0
},
"fields": {
"displayGroup": [
"015cd0b1acac01c6f1a7fadedb5914a0"
]
},
"sort": [
0,
1100.0,
0,
147573,
"2c58bbfbd2e09713d2e6a28e2d60420c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c896c2203019bccd1c233853397b062b",
"_score": 1100.0,
"_source": {
"id": "c896c2203019bccd1c233853397b062b",
"autoIncrement": 147572.0
},
"fields": {
"displayGroup": [
"10c049b470dd530773870a521db04833"
]
},
"sort": [
0,
1100.0,
0,
147572,
"c896c2203019bccd1c233853397b062b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c8ab35a68c48eb3139366b637e8ddcb5",
"_score": 1100.0,
"_source": {
"id": "c8ab35a68c48eb3139366b637e8ddcb5",
"autoIncrement": 147571.0
},
"fields": {
"displayGroup": [
"0c13e227e27b8d80f490a9a10a274293"
]
},
"sort": [
0,
1100.0,
0,
147571,
"c8ab35a68c48eb3139366b637e8ddcb5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "267cc2975beb05552afdb04a16564707",
"_score": 1100.0,
"_source": {
"id": "267cc2975beb05552afdb04a16564707",
"autoIncrement": 147570.0
},
"fields": {
"displayGroup": [
"a4257975404e097324823910af6f2a51"
]
},
"sort": [
0,
1100.0,
0,
147570,
"267cc2975beb05552afdb04a16564707"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "16009a8a7283509f007749a6b1d6052a",
"_score": 1100.0,
"_source": {
"id": "16009a8a7283509f007749a6b1d6052a",
"autoIncrement": 147569.0
},
"fields": {
"displayGroup": [
"b585b212b8b776ecc8cae399ff96b378"
]
},
"sort": [
0,
1100.0,
0,
147569,
"16009a8a7283509f007749a6b1d6052a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "59fe60be01efa227d549ea8c205dc6d0",
"_score": 1100.0,
"_source": {
"id": "59fe60be01efa227d549ea8c205dc6d0",
"autoIncrement": 147568.0
},
"fields": {
"displayGroup": [
"b08f85e19f6107a9716f432656a6a801"
]
},
"sort": [
0,
1100.0,
0,
147568,
"59fe60be01efa227d549ea8c205dc6d0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5f8a576af69f27712b26cabee9e9d568",
"_score": 1100.0,
"_source": {
"id": "5f8a576af69f27712b26cabee9e9d568",
"autoIncrement": 147567.0
},
"fields": {
"displayGroup": [
"932634480ebc1774280e69d7c05a3542"
]
},
"sort": [
0,
1100.0,
0,
147567,
"5f8a576af69f27712b26cabee9e9d568"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "42cf12f73ecc41b70326619a3050f522",
"_score": 1100.0,
"_source": {
"id": "42cf12f73ecc41b70326619a3050f522",
"autoIncrement": 147566.0
},
"fields": {
"displayGroup": [
"f22178636238e0aff61ebef87719456e"
]
},
"sort": [
0,
1100.0,
0,
147566,
"42cf12f73ecc41b70326619a3050f522"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "07545904f5aa063ed79ba033f3b03b7d",
"_score": 1100.0,
"_source": {
"id": "07545904f5aa063ed79ba033f3b03b7d",
"autoIncrement": 147565.0
},
"fields": {
"displayGroup": [
"6f1e6d8ee34c56612861cbc61960179e"
]
},
"sort": [
0,
1100.0,
0,
147565,
"07545904f5aa063ed79ba033f3b03b7d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9b936e470277f9803fe6a846da9e1056",
"_score": 1100.0,
"_source": {
"id": "9b936e470277f9803fe6a846da9e1056",
"autoIncrement": 147564.0
},
"fields": {
"displayGroup": [
"42c707c27abed1e34ae5499040ae3e7f"
]
},
"sort": [
0,
1100.0,
0,
147564,
"9b936e470277f9803fe6a846da9e1056"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f18160d824bbeb7cfc47545c6652ea56",
"_score": 1100.0,
"_source": {
"id": "f18160d824bbeb7cfc47545c6652ea56",
"autoIncrement": 147563.0
},
"fields": {
"displayGroup": [
"0b09fd5a3ea18f4d463370af3a32525d"
]
},
"sort": [
0,
1100.0,
0,
147563,
"f18160d824bbeb7cfc47545c6652ea56"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "58e34dfa592aa163383b5c9f9ba43658",
"_score": 1100.0,
"_source": {
"id": "58e34dfa592aa163383b5c9f9ba43658",
"autoIncrement": 147562.0
},
"fields": {
"displayGroup": [
"d0ad4385668b3f8eb8ba8e52c7bbb730"
]
},
"sort": [
0,
1100.0,
0,
147562,
"58e34dfa592aa163383b5c9f9ba43658"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "42a82fd5fc2a5aa7a4a3a7b9c1b1d994",
"_score": 1100.0,
"_source": {
"id": "42a82fd5fc2a5aa7a4a3a7b9c1b1d994",
"autoIncrement": 147561.0
},
"fields": {
"displayGroup": [
"5fdf8becbf5f3cbe739d37cb651fe8f6"
]
},
"sort": [
0,
1100.0,
0,
147561,
"42a82fd5fc2a5aa7a4a3a7b9c1b1d994"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "422f46e71761f910ce67791c85562ff9",
"_score": 1100.0,
"_source": {
"id": "422f46e71761f910ce67791c85562ff9",
"autoIncrement": 147560.0
},
"fields": {
"displayGroup": [
"6d1c49418b588deb7ea3acf0023ffdb7"
]
},
"sort": [
0,
1100.0,
0,
147560,
"422f46e71761f910ce67791c85562ff9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7c1ae98c878b7ab8c1d625add344ca39",
"_score": 1100.0,
"_source": {
"id": "7c1ae98c878b7ab8c1d625add344ca39",
"autoIncrement": 147559.0
},
"fields": {
"displayGroup": [
"f3d6f8125f000b84014d0b3a4d760e0b"
]
},
"sort": [
0,
1100.0,
0,
147559,
"7c1ae98c878b7ab8c1d625add344ca39"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4e22188bccee4913bf894ebc58b824b9",
"_score": 1100.0,
"_source": {
"id": "4e22188bccee4913bf894ebc58b824b9",
"autoIncrement": 147558.0
},
"fields": {
"displayGroup": [
"f33287be054aaf9ebddce22bf9c85127"
]
},
"sort": [
0,
1100.0,
0,
147558,
"4e22188bccee4913bf894ebc58b824b9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e7cb0ef7d405cc03564dd5c129bb89ac",
"_score": 1100.0,
"_source": {
"id": "e7cb0ef7d405cc03564dd5c129bb89ac",
"autoIncrement": 147557.0
},
"fields": {
"displayGroup": [
"0e5d75d32d0b74bf9264090b15f6e961"
]
},
"sort": [
0,
1100.0,
0,
147557,
"e7cb0ef7d405cc03564dd5c129bb89ac"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "695e0a47edf1962c31693d09ee47983c",
"_score": 1100.0,
"_source": {
"id": "695e0a47edf1962c31693d09ee47983c",
"autoIncrement": 147556.0
},
"fields": {
"displayGroup": [
"5c42dbc6a1e316e69dffae38f4e75f9f"
]
},
"sort": [
0,
1100.0,
0,
147556,
"695e0a47edf1962c31693d09ee47983c"
]
}
]
},
"aggregations": {
"total-count": {
"value": 437
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.40 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":"e5ef510b214a7c8cee8aa2d173c070b4"}},{"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-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-ausfuehrungBoden":{"composite":{"sources":[{"multi-ausfuehrungBoden.sorting":{"terms":{"field":"attribute_ausfuehrungBoden","order":"ASC"}}},{"multi-ausfuehrungBoden.key":{"terms":{"field":"attribute_ausfuehrungBoden"}}}],"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": "e5ef510b214a7c8cee8aa2d173c070b4"
}
},
{
"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-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-ausfuehrungBoden": {
"composite": {
"sources": [
{
"multi-ausfuehrungBoden.sorting": {
"terms": {
"field": "attribute_ausfuehrungBoden",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungBoden.key": {
"terms": {
"field": "attribute_ausfuehrungBoden"
}
}
}
],
"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": 437,
"min": 38.6,
"max": 2379.0,
"avg": 847.8988558352403,
"sum": 370531.8
},
"rating-exists": {
"doc_count": 437,
"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": 329
}
]
},
"bool-reduced": {
"doc_count": 24,
"bool-reduced": {
"value": 24
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Weitspannregale Anbaufeld",
"multi-typModel.key": "Weitspannregale Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Grundfeld",
"multi-typModel.key": "Weitspannregale Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Set",
"multi-typModel.key": "Weitspannregale Set"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 61
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 11073.0,
"multi-width.key": 11073.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 1750.0,
"multi-width.key": 1750.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 1785.0,
"multi-width.key": 1785.0
},
"doc_count": 36
},
{
"key": {
"multi-width.sorting": 1850.0,
"multi-width.key": 1850.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 2010.0,
"multi-width.key": 2010.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 2140.0,
"multi-width.key": 2140.0
},
"doc_count": 36
},
{
"key": {
"multi-width.sorting": 2250.0,
"multi-width.key": 2250.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 2500.0,
"multi-width.key": 2500.0
},
"doc_count": 36
},
{
"key": {
"multi-width.sorting": 2570.0,
"multi-width.key": 2570.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 2700.0,
"multi-width.key": 2700.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 4398.0,
"multi-width.key": 4398.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 6623.0,
"multi-width.key": 6623.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 8848.0,
"multi-width.key": 8848.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 11073.0,
"multi-width.key": 11073.0
},
"doc_count": 1
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 140
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 134
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 87
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 42
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 42
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 123
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 123
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 79
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 4
}
]
},
"multi-ausfuehrungBoden": {
"after_key": {
"multi-ausfuehrungBoden.sorting": "Stahlpaneele",
"multi-ausfuehrungBoden.key": "Stahlpaneele"
},
"buckets": [
{
"key": {
"multi-ausfuehrungBoden.sorting": "Spanplatte",
"multi-ausfuehrungBoden.key": "Spanplatte"
},
"doc_count": 178
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahl",
"multi-ausfuehrungBoden.key": "Stahl"
},
"doc_count": 116
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahlpaneele",
"multi-ausfuehrungBoden.key": "Stahlpaneele"
},
"doc_count": 54
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 329
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|