| 1 |
14.68 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":"7f803b51456984d041e9e13b12c299e4"}},{"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": 48,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "0faacbefd45fca09fc97be88ff611e66",
"_score": 1100.0,
"_source": {
"id": "0faacbefd45fca09fc97be88ff611e66",
"autoIncrement": 146118.0
},
"fields": {
"displayGroup": [
"e7f407af4967f74657cab8b20fde6e84"
]
},
"sort": [
0,
1100.0,
0,
146118,
"0faacbefd45fca09fc97be88ff611e66"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "37f4f332f0984582bbfd3f75f686f57f",
"_score": 1100.0,
"_source": {
"id": "37f4f332f0984582bbfd3f75f686f57f",
"autoIncrement": 146117.0
},
"fields": {
"displayGroup": [
"42fef0487a9a6e0cf499563bd43cc32f"
]
},
"sort": [
0,
1100.0,
0,
146117,
"37f4f332f0984582bbfd3f75f686f57f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0d027897b2d4c0d192aeb1a44c4c6e0a",
"_score": 1100.0,
"_source": {
"id": "0d027897b2d4c0d192aeb1a44c4c6e0a",
"autoIncrement": 146116.0
},
"fields": {
"displayGroup": [
"cb879b30cdedc6683a2be392ca893b1b"
]
},
"sort": [
0,
1100.0,
0,
146116,
"0d027897b2d4c0d192aeb1a44c4c6e0a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "38fc4f5bb36cde19c80b307fab3b4e18",
"_score": 1100.0,
"_source": {
"id": "38fc4f5bb36cde19c80b307fab3b4e18",
"autoIncrement": 146115.0
},
"fields": {
"displayGroup": [
"6e498ee86d136da7d576c611fd5bbfe9"
]
},
"sort": [
0,
1100.0,
0,
146115,
"38fc4f5bb36cde19c80b307fab3b4e18"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "23e44ebf454867417de12824ffd0daf7",
"_score": 1100.0,
"_source": {
"id": "23e44ebf454867417de12824ffd0daf7",
"autoIncrement": 146114.0
},
"fields": {
"displayGroup": [
"ff1cecd131e61b4465c670aa64258538"
]
},
"sort": [
0,
1100.0,
0,
146114,
"23e44ebf454867417de12824ffd0daf7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6b1aef5cc3414594f7279c540073d201",
"_score": 1100.0,
"_source": {
"id": "6b1aef5cc3414594f7279c540073d201",
"autoIncrement": 146113.0
},
"fields": {
"displayGroup": [
"69b437ed7f8ae8d1b81438af26ddae18"
]
},
"sort": [
0,
1100.0,
0,
146113,
"6b1aef5cc3414594f7279c540073d201"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d09e2dae11007690bf7913442d0a77a0",
"_score": 1100.0,
"_source": {
"id": "d09e2dae11007690bf7913442d0a77a0",
"autoIncrement": 146112.0
},
"fields": {
"displayGroup": [
"0b04c06c0c2541a5c0733953025ac2b5"
]
},
"sort": [
0,
1100.0,
0,
146112,
"d09e2dae11007690bf7913442d0a77a0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a69fbd176ece363fbbfe72c228530d59",
"_score": 1100.0,
"_source": {
"id": "a69fbd176ece363fbbfe72c228530d59",
"autoIncrement": 146111.0
},
"fields": {
"displayGroup": [
"f6549d44125d0161b1895efdec942183"
]
},
"sort": [
0,
1100.0,
0,
146111,
"a69fbd176ece363fbbfe72c228530d59"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0409eb167edd106d042000a1988fbaf7",
"_score": 1100.0,
"_source": {
"id": "0409eb167edd106d042000a1988fbaf7",
"autoIncrement": 146110.0
},
"fields": {
"displayGroup": [
"58dad93db8068fbeae587774c1b7ba7c"
]
},
"sort": [
0,
1100.0,
0,
146110,
"0409eb167edd106d042000a1988fbaf7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f9039bfec50a35d362b217bf7cd135f7",
"_score": 1100.0,
"_source": {
"id": "f9039bfec50a35d362b217bf7cd135f7",
"autoIncrement": 146109.0
},
"fields": {
"displayGroup": [
"fcbd1a6c674075bf20a58708400dc4d5"
]
},
"sort": [
0,
1100.0,
0,
146109,
"f9039bfec50a35d362b217bf7cd135f7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1235c7b9e983e6c64db96a7b501b54ff",
"_score": 1100.0,
"_source": {
"id": "1235c7b9e983e6c64db96a7b501b54ff",
"autoIncrement": 146108.0
},
"fields": {
"displayGroup": [
"f83372611b5835c7a94c0c5f897cd60b"
]
},
"sort": [
0,
1100.0,
0,
146108,
"1235c7b9e983e6c64db96a7b501b54ff"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6a7c8a60bcd64fd41b23f55147ec135b",
"_score": 1100.0,
"_source": {
"id": "6a7c8a60bcd64fd41b23f55147ec135b",
"autoIncrement": 146107.0
},
"fields": {
"displayGroup": [
"bafe2e90744727922cd1135e7686a8c2"
]
},
"sort": [
0,
1100.0,
0,
146107,
"6a7c8a60bcd64fd41b23f55147ec135b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "10a6b3c6068e01e8893db82469ae0190",
"_score": 1100.0,
"_source": {
"id": "10a6b3c6068e01e8893db82469ae0190",
"autoIncrement": 111935.0
},
"fields": {
"displayGroup": [
"3431a5d0226a56d2b3549546cab0abfd"
]
},
"sort": [
0,
1100.0,
0,
111935,
"10a6b3c6068e01e8893db82469ae0190"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4c73250eb1fb6b7f1309eb7d88c6be34",
"_score": 1100.0,
"_source": {
"id": "4c73250eb1fb6b7f1309eb7d88c6be34",
"autoIncrement": 111934.0
},
"fields": {
"displayGroup": [
"cabd9261f79ee9b4554cfe3f4d76bb50"
]
},
"sort": [
0,
1100.0,
0,
111934,
"4c73250eb1fb6b7f1309eb7d88c6be34"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e504b448fe50dac8f2285fd13865c86c",
"_score": 1100.0,
"_source": {
"id": "e504b448fe50dac8f2285fd13865c86c",
"autoIncrement": 111933.0
},
"fields": {
"displayGroup": [
"376a0f1c778d861c9b3cd655d04a6031"
]
},
"sort": [
0,
1100.0,
0,
111933,
"e504b448fe50dac8f2285fd13865c86c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7eb8f845209b4e2ed22a3eecd5e3cd09",
"_score": 1100.0,
"_source": {
"id": "7eb8f845209b4e2ed22a3eecd5e3cd09",
"autoIncrement": 111932.0
},
"fields": {
"displayGroup": [
"0a68e5c52275d77f2fbd56819ba9bd98"
]
},
"sort": [
0,
1100.0,
0,
111932,
"7eb8f845209b4e2ed22a3eecd5e3cd09"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e842f405ebb5002c18a760af23d9f0ca",
"_score": 1100.0,
"_source": {
"id": "e842f405ebb5002c18a760af23d9f0ca",
"autoIncrement": 111931.0
},
"fields": {
"displayGroup": [
"6c5fd899330a3b6fabd18c46f66aa1ca"
]
},
"sort": [
0,
1100.0,
0,
111931,
"e842f405ebb5002c18a760af23d9f0ca"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c423eb9fa1f37099270901d05a0833d2",
"_score": 1100.0,
"_source": {
"id": "c423eb9fa1f37099270901d05a0833d2",
"autoIncrement": 111930.0
},
"fields": {
"displayGroup": [
"493c9ba31c052ed67c4b284429bdd488"
]
},
"sort": [
0,
1100.0,
0,
111930,
"c423eb9fa1f37099270901d05a0833d2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5531fa8fa70569ea3e26f624420e147c",
"_score": 1100.0,
"_source": {
"id": "5531fa8fa70569ea3e26f624420e147c",
"autoIncrement": 111929.0
},
"fields": {
"displayGroup": [
"7b4b793498402c295b18d78112972e0b"
]
},
"sort": [
0,
1100.0,
0,
111929,
"5531fa8fa70569ea3e26f624420e147c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9cf0806303d3bb90e148892e6ad3b709",
"_score": 1100.0,
"_source": {
"id": "9cf0806303d3bb90e148892e6ad3b709",
"autoIncrement": 111928.0
},
"fields": {
"displayGroup": [
"7a948ad88fc227daf267f9333d3dfd7d"
]
},
"sort": [
0,
1100.0,
0,
111928,
"9cf0806303d3bb90e148892e6ad3b709"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c86814259add1aee5a86d442035da99e",
"_score": 1100.0,
"_source": {
"id": "c86814259add1aee5a86d442035da99e",
"autoIncrement": 111927.0
},
"fields": {
"displayGroup": [
"3a5446d6d4f6b10691086d6f15daceaf"
]
},
"sort": [
0,
1100.0,
0,
111927,
"c86814259add1aee5a86d442035da99e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f9fa12db83911cebea0ba7b08f4fa22b",
"_score": 1100.0,
"_source": {
"id": "f9fa12db83911cebea0ba7b08f4fa22b",
"autoIncrement": 111926.0
},
"fields": {
"displayGroup": [
"30a74fab945f925a5b64d55fa15bf6da"
]
},
"sort": [
0,
1100.0,
0,
111926,
"f9fa12db83911cebea0ba7b08f4fa22b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b0f79b7ff0e1aa7adf44707b32a7457d",
"_score": 1100.0,
"_source": {
"id": "b0f79b7ff0e1aa7adf44707b32a7457d",
"autoIncrement": 111925.0
},
"fields": {
"displayGroup": [
"db1f1c3e7a031e96051ea650b1a6455c"
]
},
"sort": [
0,
1100.0,
0,
111925,
"b0f79b7ff0e1aa7adf44707b32a7457d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f6477c72d527234410b5832528882d6e",
"_score": 1100.0,
"_source": {
"id": "f6477c72d527234410b5832528882d6e",
"autoIncrement": 111924.0
},
"fields": {
"displayGroup": [
"3ad6ab8648fae8ccbaa3bc43404ce461"
]
},
"sort": [
0,
1100.0,
0,
111924,
"f6477c72d527234410b5832528882d6e"
]
}
]
},
"aggregations": {
"total-count": {
"value": 48
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
12.16 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":"7f803b51456984d041e9e13b12c299e4"}},{"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-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-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-fachlast":{"composite":{"sources":[{"multi-fachlast.sorting":{"terms":{"field":"attribute_fachlast","order":"ASC"}}},{"multi-fachlast.key":{"terms":{"field":"attribute_fachlast"}}}],"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": "7f803b51456984d041e9e13b12c299e4"
}
},
{
"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-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-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-fachlast": {
"composite": {
"sources": [
{
"multi-fachlast.sorting": {
"terms": {
"field": "attribute_fachlast",
"order": "ASC"
}
}
},
{
"multi-fachlast.key": {
"terms": {
"field": "attribute_fachlast"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 7,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 48,
"min": 693.0,
"max": 43999.0,
"avg": 7051.5625,
"sum": 338475.0
},
"rating-exists": {
"doc_count": 48,
"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": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 36
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"multi-width": {
"after_key": {
"multi-width.sorting": 1290.0,
"multi-width.key": 1290.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 890.0,
"multi-width.key": 890.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 1090.0,
"multi-width.key": 1090.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 1290.0,
"multi-width.key": 1290.0
},
"doc_count": 12
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 18
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 18
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1260.0,
"multi-tiefe.key": 1260.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 860.0,
"multi-tiefe.key": 860.0
},
"doc_count": 12
},
{
"key": {
"multi-tiefe.sorting": 1060.0,
"multi-tiefe.key": 1060.0
},
"doc_count": 12
},
{
"key": {
"multi-tiefe.sorting": 1260.0,
"multi-tiefe.key": 1260.0
},
"doc_count": 12
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 36
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 18
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 30
}
]
},
"multi-fachlast": {
"after_key": {
"multi-fachlast.sorting": "2500 kg",
"multi-fachlast.key": "2500 kg"
},
"buckets": [
{
"key": {
"multi-fachlast.sorting": "1000 kg",
"multi-fachlast.key": "1000 kg"
},
"doc_count": 36
},
{
"key": {
"multi-fachlast.sorting": "1500 kg",
"multi-fachlast.key": "1500 kg"
},
"doc_count": 4
},
{
"key": {
"multi-fachlast.sorting": "2500 kg",
"multi-fachlast.key": "2500 kg"
},
"doc_count": 8
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 36
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|