| 1 |
20.12 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":48,"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": "fb57e9be59ab4d687e49de968c119f98",
"_score": 1100.0,
"_source": {
"id": "fb57e9be59ab4d687e49de968c119f98",
"autoIncrement": 29888.0
},
"fields": {
"displayGroup": [
"1f6c40c98419c42f2cb39f9a5933783e"
]
},
"sort": [
0,
1100.0,
0,
29888,
"fb57e9be59ab4d687e49de968c119f98"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5abad626248485520cd4c7549088addb",
"_score": 1100.0,
"_source": {
"id": "5abad626248485520cd4c7549088addb",
"autoIncrement": 29887.0
},
"fields": {
"displayGroup": [
"08b144a7433b89ff4c244e23c54deda0"
]
},
"sort": [
0,
1100.0,
0,
29887,
"5abad626248485520cd4c7549088addb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "134c1f7bea404ccd12babd7f962dbc8d",
"_score": 1100.0,
"_source": {
"id": "134c1f7bea404ccd12babd7f962dbc8d",
"autoIncrement": 29886.0
},
"fields": {
"displayGroup": [
"5fbbd537347d265d081d0b2711a0aa84"
]
},
"sort": [
0,
1100.0,
0,
29886,
"134c1f7bea404ccd12babd7f962dbc8d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "09bbf3807690214420f01672bafac8f8",
"_score": 1100.0,
"_source": {
"id": "09bbf3807690214420f01672bafac8f8",
"autoIncrement": 29885.0
},
"fields": {
"displayGroup": [
"b8f6b447116137ea0b40c87b4edde9b8"
]
},
"sort": [
0,
1100.0,
0,
29885,
"09bbf3807690214420f01672bafac8f8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "44249e82089437c35c8fe0d73105eb99",
"_score": 1100.0,
"_source": {
"id": "44249e82089437c35c8fe0d73105eb99",
"autoIncrement": 29884.0
},
"fields": {
"displayGroup": [
"042c82e0341fceee8438c8337d8f0fc8"
]
},
"sort": [
0,
1100.0,
0,
29884,
"44249e82089437c35c8fe0d73105eb99"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f5ba83044d09a1a7ab570116cfe085c0",
"_score": 1100.0,
"_source": {
"id": "f5ba83044d09a1a7ab570116cfe085c0",
"autoIncrement": 29874.0
},
"fields": {
"displayGroup": [
"986dce7656e790567466a03d0b25224f"
]
},
"sort": [
0,
1100.0,
0,
29874,
"f5ba83044d09a1a7ab570116cfe085c0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "65e74556e1433788d9e6cfb165bd84db",
"_score": 1100.0,
"_source": {
"id": "65e74556e1433788d9e6cfb165bd84db",
"autoIncrement": 29873.0
},
"fields": {
"displayGroup": [
"43f343c2fda1a42199f7ef542c6726aa"
]
},
"sort": [
0,
1100.0,
0,
29873,
"65e74556e1433788d9e6cfb165bd84db"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ad71415bc1f08e9635472875e10f82c1",
"_score": 1100.0,
"_source": {
"id": "ad71415bc1f08e9635472875e10f82c1",
"autoIncrement": 29872.0
},
"fields": {
"displayGroup": [
"78c147af771151a7a1666818b77431ee"
]
},
"sort": [
0,
1100.0,
0,
29872,
"ad71415bc1f08e9635472875e10f82c1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5828f5a2ff99a55d14c8f33746c24602",
"_score": 1100.0,
"_source": {
"id": "5828f5a2ff99a55d14c8f33746c24602",
"autoIncrement": 29871.0
},
"fields": {
"displayGroup": [
"24ce5795aa72ea3324d78f2057dec6c0"
]
},
"sort": [
0,
1100.0,
0,
29871,
"5828f5a2ff99a55d14c8f33746c24602"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c8ef429c65b54926f3a72eace17f4155",
"_score": 1100.0,
"_source": {
"id": "c8ef429c65b54926f3a72eace17f4155",
"autoIncrement": 29870.0
},
"fields": {
"displayGroup": [
"87db795eef8454f5008e4cd197ab85b4"
]
},
"sort": [
0,
1100.0,
0,
29870,
"c8ef429c65b54926f3a72eace17f4155"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "17efc77265de17a47e2a77adc456f008",
"_score": 1100.0,
"_source": {
"id": "17efc77265de17a47e2a77adc456f008",
"autoIncrement": 29869.0
},
"fields": {
"displayGroup": [
"71e81659807c56f91838c909017fab6a"
]
},
"sort": [
0,
1100.0,
0,
29869,
"17efc77265de17a47e2a77adc456f008"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c1f396b731fab17069c050c6a7ff5d23",
"_score": 1100.0,
"_source": {
"id": "c1f396b731fab17069c050c6a7ff5d23",
"autoIncrement": 29868.0
},
"fields": {
"displayGroup": [
"c299c59dcdce7a167aba67f21df0273b"
]
},
"sort": [
0,
1100.0,
0,
29868,
"c1f396b731fab17069c050c6a7ff5d23"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0cd554e6c4dac0376bfe9af512af14a8",
"_score": 1100.0,
"_source": {
"id": "0cd554e6c4dac0376bfe9af512af14a8",
"autoIncrement": 29867.0
},
"fields": {
"displayGroup": [
"3964cadaa4b82727cb6be2742c83a22b"
]
},
"sort": [
0,
1100.0,
0,
29867,
"0cd554e6c4dac0376bfe9af512af14a8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2e3722d7126bc1b6e51f9b3e49209541",
"_score": 1100.0,
"_source": {
"id": "2e3722d7126bc1b6e51f9b3e49209541",
"autoIncrement": 29866.0
},
"fields": {
"displayGroup": [
"0a24c87f7823e69bcf2667018bc9f159"
]
},
"sort": [
0,
1100.0,
0,
29866,
"2e3722d7126bc1b6e51f9b3e49209541"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bf5a0da4aa93f42d1b1aa988ddb04564",
"_score": 1100.0,
"_source": {
"id": "bf5a0da4aa93f42d1b1aa988ddb04564",
"autoIncrement": 29865.0
},
"fields": {
"displayGroup": [
"006bac98f1391e5311922287e580e531"
]
},
"sort": [
0,
1100.0,
0,
29865,
"bf5a0da4aa93f42d1b1aa988ddb04564"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c826609223b5c25eed382a1734639ee2",
"_score": 1100.0,
"_source": {
"id": "c826609223b5c25eed382a1734639ee2",
"autoIncrement": 14045.0
},
"fields": {
"displayGroup": [
"b427815badab69b1442db81e7938337a"
]
},
"sort": [
0,
1100.0,
0,
14045,
"c826609223b5c25eed382a1734639ee2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7b2d9443b096bd18ea3e14beda44ed71",
"_score": 1100.0,
"_source": {
"id": "7b2d9443b096bd18ea3e14beda44ed71",
"autoIncrement": 14044.0
},
"fields": {
"displayGroup": [
"3ba84eed428f47cc06359276788a2068"
]
},
"sort": [
0,
1100.0,
0,
14044,
"7b2d9443b096bd18ea3e14beda44ed71"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1b91df97045bc48393613325c9b5795d",
"_score": 1100.0,
"_source": {
"id": "1b91df97045bc48393613325c9b5795d",
"autoIncrement": 14043.0
},
"fields": {
"displayGroup": [
"1c913593d1fd776489743692b6a48e3b"
]
},
"sort": [
0,
1100.0,
0,
14043,
"1b91df97045bc48393613325c9b5795d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5c049f3f205bc028814b580a0e7fd1a2",
"_score": 1100.0,
"_source": {
"id": "5c049f3f205bc028814b580a0e7fd1a2",
"autoIncrement": 14042.0
},
"fields": {
"displayGroup": [
"c3165215b38d56b32bd69eb80377116b"
]
},
"sort": [
0,
1100.0,
0,
14042,
"5c049f3f205bc028814b580a0e7fd1a2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b52a28372e74ab548733f54417eccdf2",
"_score": 1100.0,
"_source": {
"id": "b52a28372e74ab548733f54417eccdf2",
"autoIncrement": 14041.0
},
"fields": {
"displayGroup": [
"45de6ceb63aeb417e1c669bc02a48322"
]
},
"sort": [
0,
1100.0,
0,
14041,
"b52a28372e74ab548733f54417eccdf2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "77f72c7ae31ebb41b8c4df056eeb9cc2",
"_score": 1100.0,
"_source": {
"id": "77f72c7ae31ebb41b8c4df056eeb9cc2",
"autoIncrement": 14040.0
},
"fields": {
"displayGroup": [
"8710962dfede9fb7e1bf24599547cb2c"
]
},
"sort": [
0,
1100.0,
0,
14040,
"77f72c7ae31ebb41b8c4df056eeb9cc2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bb87f3297e22915b5bade465d5e5f4e8",
"_score": 1100.0,
"_source": {
"id": "bb87f3297e22915b5bade465d5e5f4e8",
"autoIncrement": 14038.0
},
"fields": {
"displayGroup": [
"49b2212ea46f6f91eae3538e234d5c20"
]
},
"sort": [
0,
1100.0,
0,
14038,
"bb87f3297e22915b5bade465d5e5f4e8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a15101033fef71a6bb40b1342ceffb72",
"_score": 1100.0,
"_source": {
"id": "a15101033fef71a6bb40b1342ceffb72",
"autoIncrement": 14037.0
},
"fields": {
"displayGroup": [
"7a15ca56477ca8e371ba0626c5008557"
]
},
"sort": [
0,
1100.0,
0,
14037,
"a15101033fef71a6bb40b1342ceffb72"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "99d57cd26ddff20cdc157cbf81924354",
"_score": 1100.0,
"_source": {
"id": "99d57cd26ddff20cdc157cbf81924354",
"autoIncrement": 12500.0
},
"fields": {
"displayGroup": [
"e865b67a4f63cfa43f2240ba0e247c0e"
]
},
"sort": [
0,
1100.0,
0,
12500,
"99d57cd26ddff20cdc157cbf81924354"
]
}
]
},
"aggregations": {
"total-count": {
"value": 132
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.90 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
|