| 1 |
18.02 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":"c7e554079c9470408efcf23bf8efb40e"}},{"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": 5,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 132,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "5df25feeb5da37ed1bc72768687ba5c1",
"_score": 1100.0,
"_source": {
"id": "5df25feeb5da37ed1bc72768687ba5c1",
"autoIncrement": 12428.0
},
"fields": {
"displayGroup": [
"eb818e3f5fd4b523c7a45115fa7fec2f"
]
},
"sort": [
0,
1100.0,
0,
12428,
"5df25feeb5da37ed1bc72768687ba5c1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3f38b3e4fb500427391527bd3505ea52",
"_score": 1100.0,
"_source": {
"id": "3f38b3e4fb500427391527bd3505ea52",
"autoIncrement": 12427.0
},
"fields": {
"displayGroup": [
"9c41025e63e67cb0b58fc523f1536579"
]
},
"sort": [
0,
1100.0,
0,
12427,
"3f38b3e4fb500427391527bd3505ea52"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "06642ef975dd6eaf6ee37a2f41fc5346",
"_score": 1100.0,
"_source": {
"id": "06642ef975dd6eaf6ee37a2f41fc5346",
"autoIncrement": 12426.0
},
"fields": {
"displayGroup": [
"0673af7ffac27dcf8cddad1ed34fb363"
]
},
"sort": [
0,
1100.0,
0,
12426,
"06642ef975dd6eaf6ee37a2f41fc5346"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "acc282be77b45aec82260514214ea8bf",
"_score": 1100.0,
"_source": {
"id": "acc282be77b45aec82260514214ea8bf",
"autoIncrement": 12425.0
},
"fields": {
"displayGroup": [
"5b4f5ead8868fd98d240d31c16c640f5"
]
},
"sort": [
0,
1100.0,
0,
12425,
"acc282be77b45aec82260514214ea8bf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "096812b8d5e9ea8d1d72860ec97a2e61",
"_score": 1100.0,
"_source": {
"id": "096812b8d5e9ea8d1d72860ec97a2e61",
"autoIncrement": 12424.0
},
"fields": {
"displayGroup": [
"60dc30d345910608c92c31e6c3f60c37"
]
},
"sort": [
0,
1100.0,
0,
12424,
"096812b8d5e9ea8d1d72860ec97a2e61"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6e80a878486cda3df2b72587d5e97767",
"_score": 1100.0,
"_source": {
"id": "6e80a878486cda3df2b72587d5e97767",
"autoIncrement": 12423.0
},
"fields": {
"displayGroup": [
"818abad6cbd8e32cdd95edcf8929ea05"
]
},
"sort": [
0,
1100.0,
0,
12423,
"6e80a878486cda3df2b72587d5e97767"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6e8e1bb5f721dec32eff7e3e6c688ed8",
"_score": 1100.0,
"_source": {
"id": "6e8e1bb5f721dec32eff7e3e6c688ed8",
"autoIncrement": 12422.0
},
"fields": {
"displayGroup": [
"d6c7d7a5bcac6159912159500cf079de"
]
},
"sort": [
0,
1100.0,
0,
12422,
"6e8e1bb5f721dec32eff7e3e6c688ed8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bbd10b4e7e6e47c04ff8efd9350ef8c1",
"_score": 1100.0,
"_source": {
"id": "bbd10b4e7e6e47c04ff8efd9350ef8c1",
"autoIncrement": 12421.0
},
"fields": {
"displayGroup": [
"dd93518421be7185a92be6601af10f5f"
]
},
"sort": [
0,
1100.0,
0,
12421,
"bbd10b4e7e6e47c04ff8efd9350ef8c1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ad2735b54efba7c97d494ea6878c178e",
"_score": 1100.0,
"_source": {
"id": "ad2735b54efba7c97d494ea6878c178e",
"autoIncrement": 11222.0
},
"fields": {
"displayGroup": [
"7b468e18d4ada016ca0868ecd777aebe"
]
},
"sort": [
0,
1100.0,
0,
11222,
"ad2735b54efba7c97d494ea6878c178e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dc3a2287785035ea49b0670282b681c6",
"_score": 1100.0,
"_source": {
"id": "dc3a2287785035ea49b0670282b681c6",
"autoIncrement": 11221.0
},
"fields": {
"displayGroup": [
"d67063f117d4ff61fa06b3a487bb9eae"
]
},
"sort": [
0,
1100.0,
0,
11221,
"dc3a2287785035ea49b0670282b681c6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "980e4fd9a4dea3601b72be528e2f055c",
"_score": 1100.0,
"_source": {
"id": "980e4fd9a4dea3601b72be528e2f055c",
"autoIncrement": 11220.0
},
"fields": {
"displayGroup": [
"c1a49e6bc5451951637ce0e6159b6449"
]
},
"sort": [
0,
1100.0,
0,
11220,
"980e4fd9a4dea3601b72be528e2f055c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c3ab4f61680ac635b324cced0bb8c496",
"_score": 1100.0,
"_source": {
"id": "c3ab4f61680ac635b324cced0bb8c496",
"autoIncrement": 8272.0
},
"fields": {
"displayGroup": [
"b7fad68cfdf6aa74b052c6c403731e43"
]
},
"sort": [
0,
1100.0,
0,
8272,
"c3ab4f61680ac635b324cced0bb8c496"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "68c20ef29117b55b39199771b43b45d4",
"_score": 1100.0,
"_source": {
"id": "68c20ef29117b55b39199771b43b45d4",
"autoIncrement": 8270.0
},
"fields": {
"displayGroup": [
"d58b7174bddeb86d433a385454b9b31b"
]
},
"sort": [
0,
1100.0,
0,
8270,
"68c20ef29117b55b39199771b43b45d4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d820a419bd3f70ab5924d376c006f398",
"_score": 1100.0,
"_source": {
"id": "d820a419bd3f70ab5924d376c006f398",
"autoIncrement": 8269.0
},
"fields": {
"displayGroup": [
"b12ba8928d4898edb43315802b081b90"
]
},
"sort": [
0,
1100.0,
0,
8269,
"d820a419bd3f70ab5924d376c006f398"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "84cf882dd9aa8f10536028877e476f40",
"_score": 1100.0,
"_source": {
"id": "84cf882dd9aa8f10536028877e476f40",
"autoIncrement": 8268.0
},
"fields": {
"displayGroup": [
"f7f432ea1d02192a51a22c1272283acf"
]
},
"sort": [
0,
1100.0,
0,
8268,
"84cf882dd9aa8f10536028877e476f40"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "505d08ce682330c4514e8a0a95548c4d",
"_score": 1100.0,
"_source": {
"id": "505d08ce682330c4514e8a0a95548c4d",
"autoIncrement": 8267.0
},
"fields": {
"displayGroup": [
"3fc1ab821546236d8a60f4c06b107eff"
]
},
"sort": [
0,
1100.0,
0,
8267,
"505d08ce682330c4514e8a0a95548c4d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "76d3e43e87aaa69ca587f3c4daf94298",
"_score": 1100.0,
"_source": {
"id": "76d3e43e87aaa69ca587f3c4daf94298",
"autoIncrement": 8144.0
},
"fields": {
"displayGroup": [
"a2f75492c4c084b5c0c4b2bcbcb85ec7"
]
},
"sort": [
0,
1100.0,
0,
8144,
"76d3e43e87aaa69ca587f3c4daf94298"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dcdfe0e6cedba49b81f4dd3ac9f28567",
"_score": 1100.0,
"_source": {
"id": "dcdfe0e6cedba49b81f4dd3ac9f28567",
"autoIncrement": 8143.0
},
"fields": {
"displayGroup": [
"601f2e10b0b20fd6b3070248ab5e7c11"
]
},
"sort": [
0,
1100.0,
0,
8143,
"dcdfe0e6cedba49b81f4dd3ac9f28567"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f7b0087fe19851e24b3536de4ace3c12",
"_score": 1100.0,
"_source": {
"id": "f7b0087fe19851e24b3536de4ace3c12",
"autoIncrement": 8142.0
},
"fields": {
"displayGroup": [
"092bea5ea5cb5333da204b33785bec08"
]
},
"sort": [
0,
1100.0,
0,
8142,
"f7b0087fe19851e24b3536de4ace3c12"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "931977db16aff3ad951dea6eb619b1bf",
"_score": 1100.0,
"_source": {
"id": "931977db16aff3ad951dea6eb619b1bf",
"autoIncrement": 8141.0
},
"fields": {
"displayGroup": [
"ea3727c662ba6616bd61c7858bf83118"
]
},
"sort": [
0,
1100.0,
0,
8141,
"931977db16aff3ad951dea6eb619b1bf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7f52106c90d3778b435b84d5cc1e1020",
"_score": 1100.0,
"_source": {
"id": "7f52106c90d3778b435b84d5cc1e1020",
"autoIncrement": 8140.0
},
"fields": {
"displayGroup": [
"d5e2e254042bf35775300f1e0e120b8b"
]
},
"sort": [
0,
1100.0,
0,
8140,
"7f52106c90d3778b435b84d5cc1e1020"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "68926964bfb98478ca406060eec7e39b",
"_score": 1100.0,
"_source": {
"id": "68926964bfb98478ca406060eec7e39b",
"autoIncrement": 8139.0
},
"fields": {
"displayGroup": [
"590d5114d0661e2dab7dd035fe33da25"
]
},
"sort": [
0,
1100.0,
0,
8139,
"68926964bfb98478ca406060eec7e39b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "01e88df7923f2519cece8f2fcf82126d",
"_score": 1100.0,
"_source": {
"id": "01e88df7923f2519cece8f2fcf82126d",
"autoIncrement": 8138.0
},
"fields": {
"displayGroup": [
"f5941bcf4a84ec7393b52fc09677f18a"
]
},
"sort": [
0,
1100.0,
0,
8138,
"01e88df7923f2519cece8f2fcf82126d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3e16ea82a88af560ace77bde91e7e703",
"_score": 1100.0,
"_source": {
"id": "3e16ea82a88af560ace77bde91e7e703",
"autoIncrement": 8137.0
},
"fields": {
"displayGroup": [
"c125dec8a22d9d8ffbe7dc8de660e46f"
]
},
"sort": [
0,
1100.0,
0,
8137,
"3e16ea82a88af560ace77bde91e7e703"
]
}
]
},
"aggregations": {
"total-count": {
"value": 132
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.46 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":"c7e554079c9470408efcf23bf8efb40e"}},{"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"}}}},"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"}},"range-anzahlSchubladen":{"stats":{"field":"attribute_anzahlSchubladen"}},"multi-ausfuehrungWerkbankplatte":{"composite":{"sources":[{"multi-ausfuehrungWerkbankplatte.sorting":{"terms":{"field":"attribute_ausfuehrungWerkbankplatte","order":"ASC"}}},{"multi-ausfuehrungWerkbankplatte.key":{"terms":{"field":"attribute_ausfuehrungWerkbankplatte"}}}],"size":"99999"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"range-traglast":{"stats":{"field":"attribute_traglast"}},"multi-anzahlTueren":{"composite":{"sources":[{"multi-anzahlTueren.sorting":{"terms":{"field":"attribute_anzahlTueren","order":"ASC"}}},{"multi-anzahlTueren.key":{"terms":{"field":"attribute_anzahlTueren"}}}],"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": "c7e554079c9470408efcf23bf8efb40e"
}
},
{
"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"
}
}
}
},
"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"
}
},
"range-anzahlSchubladen": {
"stats": {
"field": "attribute_anzahlSchubladen"
}
},
"multi-ausfuehrungWerkbankplatte": {
"composite": {
"sources": [
{
"multi-ausfuehrungWerkbankplatte.sorting": {
"terms": {
"field": "attribute_ausfuehrungWerkbankplatte",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungWerkbankplatte.key": {
"terms": {
"field": "attribute_ausfuehrungWerkbankplatte"
}
}
}
],
"size": "99999"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"range-traglast": {
"stats": {
"field": "attribute_traglast"
}
},
"multi-anzahlTueren": {
"composite": {
"sources": [
{
"multi-anzahlTueren.sorting": {
"terms": {
"field": "attribute_anzahlTueren",
"order": "ASC"
}
}
},
{
"multi-anzahlTueren.key": {
"terms": {
"field": "attribute_anzahlTueren"
}
}
}
],
"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": 132,
"min": 266.0,
"max": 4758.0,
"avg": 1650.778409090909,
"sum": 217902.75
},
"rating-exists": {
"doc_count": 132,
"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": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "46b2f43cba12702078b4e0d3bfdae2bc",
"manufacturer-count-filter.key": "46b2f43cba12702078b4e0d3bfdae2bc"
},
"doc_count": 92
},
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 14
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "d784d3a73624983fdf4a1370019f096b",
"manufacturer-count-filter.key": "d784d3a73624983fdf4a1370019f096b"
},
"doc_count": 8
},
{
"key": {
"manufacturer-count-filter.sorting": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"doc_count": 14
}
]
},
"bool-reduced": {
"doc_count": 92,
"bool-reduced": {
"value": 92
}
},
"width": {
"count": 128,
"min": 500.0,
"max": 3000.0,
"avg": 1427.734375,
"sum": 182750.0
},
"width-stats": {
"doc_count": 128,
"width-stats": {
"count": 128,
"min": 500.0,
"max": 3000.0,
"avg": 1427.734375,
"sum": 182750.0
}
},
"height": {
"count": 127,
"min": 1000.0,
"max": 1770.0,
"avg": 1175.9448818897638,
"sum": 149345.0
},
"height-stats": {
"doc_count": 127,
"height-stats": {
"count": 127,
"min": 1000.0,
"max": 1770.0,
"avg": 1175.9448818897638,
"sum": 149345.0
}
},
"tiefe": {
"count": 128,
"min": 500.0,
"max": 1000.0,
"avg": 761.171875,
"sum": 97430.0
},
"range-anzahlSchubladen": {
"count": 8,
"min": 1.0,
"max": 3.0,
"avg": 2.0,
"sum": 16.0
},
"multi-ausfuehrungWerkbankplatte": {
"after_key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Multiplex",
"multi-ausfuehrungWerkbankplatte.key": "Multiplex"
},
"buckets": [
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Buche",
"multi-ausfuehrungWerkbankplatte.key": "Buche"
},
"doc_count": 6
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Buche-Riegel",
"multi-ausfuehrungWerkbankplatte.key": "Buche-Riegel"
},
"doc_count": 34
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "EGB-Melaminharzbeschichtet (ESD)",
"multi-ausfuehrungWerkbankplatte.key": "EGB-Melaminharzbeschichtet (ESD)"
},
"doc_count": 12
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Hartlaminat",
"multi-ausfuehrungWerkbankplatte.key": "Hartlaminat"
},
"doc_count": 14
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Melaminharzbeschichtet",
"multi-ausfuehrungWerkbankplatte.key": "Melaminharzbeschichtet"
},
"doc_count": 24
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Multiplex",
"multi-ausfuehrungWerkbankplatte.key": "Multiplex"
},
"doc_count": 20
}
]
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Werkstatteinrichtungen",
"multi-typModel.key": "Werkstatteinrichtungen"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Arbeitsplatzsysteme",
"multi-typModel.key": "Arbeitsplatzsysteme"
},
"doc_count": 40
},
{
"key": {
"multi-typModel.sorting": "Packtische",
"multi-typModel.key": "Packtische"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Werkb\u00e4nke ohne Unterbau",
"multi-typModel.key": "Werkb\u00e4nke ohne Unterbau"
},
"doc_count": 68
},
{
"key": {
"multi-typModel.sorting": "Werkb\u00e4nke ohne Unterbau, nur F\u00fc\u00dfe",
"multi-typModel.key": "Werkb\u00e4nke ohne Unterbau, nur F\u00fc\u00dfe"
},
"doc_count": 14
},
{
"key": {
"multi-typModel.sorting": "Werkstatteinrichtungen",
"multi-typModel.key": "Werkstatteinrichtungen"
},
"doc_count": 6
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau",
"multi-farbe.key": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7035 lichtgrau",
"multi-farbe.key": "RAL 7035 lichtgrau"
},
"doc_count": 96
},
{
"key": {
"multi-farbe.sorting": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau",
"multi-farbe.key": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau"
},
"doc_count": 8
}
]
},
"range-traglast": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-anzahlTueren": {
"buckets": []
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "46b2f43cba12702078b4e0d3bfdae2bc",
"doc_count": 92
},
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 14
},
{
"key": "e92077b923fe7f60b3b5ea31cceb8c2a",
"doc_count": 14
},
{
"key": "d784d3a73624983fdf4a1370019f096b",
"doc_count": 8
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|