| 1 |
15.67 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":"4de77179c6c61ec69662e2f6ab2bf227"}},{"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":24,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 49,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "f087d5ef8815fc0d68117d86dec2798a",
"_score": 1100.0,
"_source": {
"id": "f087d5ef8815fc0d68117d86dec2798a",
"autoIncrement": 70616.0
},
"fields": {
"displayGroup": [
"4445b7fb81ad98065f202d706ede61dd"
]
},
"sort": [
0,
1100.0,
0,
70616,
"f087d5ef8815fc0d68117d86dec2798a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "14a4a4e3879c2299165c50a4d7665d53",
"_score": 1100.0,
"_source": {
"id": "14a4a4e3879c2299165c50a4d7665d53",
"autoIncrement": 70615.0
},
"fields": {
"displayGroup": [
"463df35bc423e7ad7dde13b07c8f0d1d"
]
},
"sort": [
0,
1100.0,
0,
70615,
"14a4a4e3879c2299165c50a4d7665d53"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c48bd9f80826001724719a88c91577c0",
"_score": 1100.0,
"_source": {
"id": "c48bd9f80826001724719a88c91577c0",
"autoIncrement": 70613.0
},
"fields": {
"displayGroup": [
"88f19f4efc6d483a0a6f57e9209588d2"
]
},
"sort": [
0,
1100.0,
0,
70613,
"c48bd9f80826001724719a88c91577c0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "826bc92618a80be34afa8d1483069dd0",
"_score": 1100.0,
"_source": {
"id": "826bc92618a80be34afa8d1483069dd0",
"autoIncrement": 69860.0
},
"fields": {
"displayGroup": [
"759b1a346d7a8846dfb463debe1153c0"
]
},
"sort": [
0,
1100.0,
0,
69860,
"826bc92618a80be34afa8d1483069dd0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4813dc84bb1b0a6832e0da927305dad2",
"_score": 1100.0,
"_source": {
"id": "4813dc84bb1b0a6832e0da927305dad2",
"autoIncrement": 60305.0
},
"fields": {
"displayGroup": [
"03011e7db67345e28cb76b14539ebe13"
]
},
"sort": [
0,
1100.0,
0,
60305,
"4813dc84bb1b0a6832e0da927305dad2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d92205fb959784f37fd7341314c1232c",
"_score": 1100.0,
"_source": {
"id": "d92205fb959784f37fd7341314c1232c",
"autoIncrement": 60303.0
},
"fields": {
"displayGroup": [
"e3be452f52da93fefa9b15a333d72daa"
]
},
"sort": [
0,
1100.0,
0,
60303,
"d92205fb959784f37fd7341314c1232c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ff642b49b89ee0105ab23c3af05a9ed8",
"_score": 1100.0,
"_source": {
"id": "ff642b49b89ee0105ab23c3af05a9ed8",
"autoIncrement": 59759.0
},
"fields": {
"displayGroup": [
"687da5dd381c26d9062f852f5f31bdfd"
]
},
"sort": [
0,
1100.0,
0,
59759,
"ff642b49b89ee0105ab23c3af05a9ed8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "852fbb623a03d288285448765fc4b95a",
"_score": 1100.0,
"_source": {
"id": "852fbb623a03d288285448765fc4b95a",
"autoIncrement": 59758.0
},
"fields": {
"displayGroup": [
"b5cdbf42926bb0f79e28a723e429d703"
]
},
"sort": [
0,
1100.0,
0,
59758,
"852fbb623a03d288285448765fc4b95a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9918d01535ec7b526f9b0343af7867ff",
"_score": 1100.0,
"_source": {
"id": "9918d01535ec7b526f9b0343af7867ff",
"autoIncrement": 59757.0
},
"fields": {
"displayGroup": [
"dcebb8b17238d2b6f483292b90f6157a"
]
},
"sort": [
0,
1100.0,
0,
59757,
"9918d01535ec7b526f9b0343af7867ff"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "25f5e6fcdee34e59df30b0e7a98e3502",
"_score": 1100.0,
"_source": {
"id": "25f5e6fcdee34e59df30b0e7a98e3502",
"autoIncrement": 59756.0
},
"fields": {
"displayGroup": [
"4b6b2bec941ac0f124ad2c4c66120240"
]
},
"sort": [
0,
1100.0,
0,
59756,
"25f5e6fcdee34e59df30b0e7a98e3502"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "786e247ec7ffec68839157ec846bbb5d",
"_score": 1100.0,
"_source": {
"id": "786e247ec7ffec68839157ec846bbb5d",
"autoIncrement": 59755.0
},
"fields": {
"displayGroup": [
"079c318fbb86de23c6f5ec779df29abe"
]
},
"sort": [
0,
1100.0,
0,
59755,
"786e247ec7ffec68839157ec846bbb5d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cb9d185e89e4ba7c63232a06a19b8108",
"_score": 1100.0,
"_source": {
"id": "cb9d185e89e4ba7c63232a06a19b8108",
"autoIncrement": 59754.0
},
"fields": {
"displayGroup": [
"0cf800324eddbcac3494cdba393efa25"
]
},
"sort": [
0,
1100.0,
0,
59754,
"cb9d185e89e4ba7c63232a06a19b8108"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "caa55182522e829bd5cf07796e4fdec5",
"_score": 1100.0,
"_source": {
"id": "caa55182522e829bd5cf07796e4fdec5",
"autoIncrement": 44809.0
},
"fields": {
"displayGroup": [
"ad82a6da6e655bf692afeeac6a2e6ca8"
]
},
"sort": [
0,
1100.0,
0,
44809,
"caa55182522e829bd5cf07796e4fdec5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ffddbc5c1f74cb723e9bdc94122dfeb3",
"_score": 1100.0,
"_source": {
"id": "ffddbc5c1f74cb723e9bdc94122dfeb3",
"autoIncrement": 22409.0
},
"fields": {
"displayGroup": [
"2063bf4fca6fc25665d8a585224e9dc0"
]
},
"sort": [
0,
1100.0,
0,
22409,
"ffddbc5c1f74cb723e9bdc94122dfeb3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0c7c7399499f3545a74775e850e6d056",
"_score": 1100.0,
"_source": {
"id": "0c7c7399499f3545a74775e850e6d056",
"autoIncrement": 22408.0
},
"fields": {
"displayGroup": [
"a2c8e5c108038541fa29ca7f35390cb1"
]
},
"sort": [
0,
1100.0,
0,
22408,
"0c7c7399499f3545a74775e850e6d056"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f872bf96e72d791581b1e96c2620d47f",
"_score": 1100.0,
"_source": {
"id": "f872bf96e72d791581b1e96c2620d47f",
"autoIncrement": 22406.0
},
"fields": {
"displayGroup": [
"77b6b9cf7709ac9e5f63c81e2f04feba"
]
},
"sort": [
0,
1100.0,
0,
22406,
"f872bf96e72d791581b1e96c2620d47f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "75f4c4fd54bc6f20d2ddeacd60d7e2bf",
"_score": 1100.0,
"_source": {
"id": "75f4c4fd54bc6f20d2ddeacd60d7e2bf",
"autoIncrement": 22405.0
},
"fields": {
"displayGroup": [
"3b81c37dc69eefa52ebd9c043e9202f8"
]
},
"sort": [
0,
1100.0,
0,
22405,
"75f4c4fd54bc6f20d2ddeacd60d7e2bf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "55221acfbc66d5bf93cbc8c1d694b0dd",
"_score": 1100.0,
"_source": {
"id": "55221acfbc66d5bf93cbc8c1d694b0dd",
"autoIncrement": 22404.0
},
"fields": {
"displayGroup": [
"12c432680ee11bbb6022a784aaa74859"
]
},
"sort": [
0,
1100.0,
0,
22404,
"55221acfbc66d5bf93cbc8c1d694b0dd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "45491bbe8968bf9a11ee04a2cb531d22",
"_score": 1100.0,
"_source": {
"id": "45491bbe8968bf9a11ee04a2cb531d22",
"autoIncrement": 22401.0
},
"fields": {
"displayGroup": [
"ce7036b89959e12d972ed0d88262ad28"
]
},
"sort": [
0,
1100.0,
0,
22401,
"45491bbe8968bf9a11ee04a2cb531d22"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "88ccb1eeaded1ec000c3605666221478",
"_score": 1100.0,
"_source": {
"id": "88ccb1eeaded1ec000c3605666221478",
"autoIncrement": 22400.0
},
"fields": {
"displayGroup": [
"85a3516a1e09df622f5507a92f9b2d76"
]
},
"sort": [
0,
1100.0,
0,
22400,
"88ccb1eeaded1ec000c3605666221478"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c973468124fae5205fc08b87bd8513d2",
"_score": 1100.0,
"_source": {
"id": "c973468124fae5205fc08b87bd8513d2",
"autoIncrement": 22398.0
},
"fields": {
"displayGroup": [
"298df9c9992386280c497fd8ebb85872"
]
},
"sort": [
0,
1100.0,
0,
22398,
"c973468124fae5205fc08b87bd8513d2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5ba5ceed5edbf7d93cf90b9a3a120ff4",
"_score": 1100.0,
"_source": {
"id": "5ba5ceed5edbf7d93cf90b9a3a120ff4",
"autoIncrement": 22397.0
},
"fields": {
"displayGroup": [
"f8d32761105a5ec99be5b6b60b86eaba"
]
},
"sort": [
0,
1100.0,
0,
22397,
"5ba5ceed5edbf7d93cf90b9a3a120ff4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "99f3145f15436a2c517a1bab1c4edfdb",
"_score": 1100.0,
"_source": {
"id": "99f3145f15436a2c517a1bab1c4edfdb",
"autoIncrement": 22395.0
},
"fields": {
"displayGroup": [
"2dd64a4d0dca259b64a163851fb6700e"
]
},
"sort": [
0,
1100.0,
0,
22395,
"99f3145f15436a2c517a1bab1c4edfdb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9438d4b8a647028f0ddf09da71dc0974",
"_score": 1100.0,
"_source": {
"id": "9438d4b8a647028f0ddf09da71dc0974",
"autoIncrement": 22394.0
},
"fields": {
"displayGroup": [
"e130a54b14aa1eab0d15fcc1f3726b47"
]
},
"sort": [
0,
1100.0,
0,
22394,
"9438d4b8a647028f0ddf09da71dc0974"
]
}
]
},
"aggregations": {
"total-count": {
"value": 49
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.68 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":"4de77179c6c61ec69662e2f6ab2bf227"}},{"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"}},"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"}},"multi-material":{"composite":{"sources":[{"multi-material.sorting":{"terms":{"field":"attribute_material","order":"ASC"}}},{"multi-material.key":{"terms":{"field":"attribute_material"}}}],"size":"99999"}},"manufacturer-count":{"terms":{"field":"manufacturerId","size":10000}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
POST http://localhost:9200/staging-67_product/_search?track_total_hits=0&search_type=query_then_fetch
Accept: application/json
Content-Type: application/json
{
"query": {
"bool": {
"filter": [
{
"bool": {
"must": [
{
"bool": {
"must": [
{
"term": {
"active": true
}
},
{
"range": {
"visibility_132e445c03814d67ac47c04afb6d5d99": {
"gte": 30
}
}
}
]
}
},
{
"term": {
"categoryTree": "4de77179c6c61ec69662e2f6ab2bf227"
}
},
{
"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"
}
},
"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"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 49,
"min": 33.0,
"max": 242.0,
"avg": 124.34693877551021,
"sum": 6093.0
},
"rating-exists": {
"doc_count": 49,
"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": "d6f4440b8633f973d33c78928bdac2e1",
"manufacturer-count-filter.key": "d6f4440b8633f973d33c78928bdac2e1"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "2e30356d97a7f9b781e52c96f19f58e3",
"manufacturer-count-filter.key": "2e30356d97a7f9b781e52c96f19f58e3"
},
"doc_count": 20
},
{
"key": {
"manufacturer-count-filter.sorting": "5f3a897d0545c96e4d639d12b4e1dedb",
"manufacturer-count-filter.key": "5f3a897d0545c96e4d639d12b4e1dedb"
},
"doc_count": 17
},
{
"key": {
"manufacturer-count-filter.sorting": "d6f4440b8633f973d33c78928bdac2e1",
"manufacturer-count-filter.key": "d6f4440b8633f973d33c78928bdac2e1"
},
"doc_count": 11
}
]
},
"bool-reduced": {
"doc_count": 3,
"bool-reduced": {
"value": 3
}
},
"width": {
"count": 9,
"min": 15.0,
"max": 180.0,
"avg": 151.66666666666666,
"sum": 1365.0
},
"width-stats": {
"doc_count": 9,
"width-stats": {
"count": 9,
"min": 15.0,
"max": 180.0,
"avg": 151.66666666666666,
"sum": 1365.0
}
},
"height": {
"count": 39,
"min": 16.0,
"max": 825.0,
"avg": 258.7435897435897,
"sum": 10091.0
},
"height-stats": {
"doc_count": 39,
"height-stats": {
"count": 39,
"min": 16.0,
"max": 825.0,
"avg": 258.7435897435897,
"sum": 10091.0
}
},
"tiefe": {
"count": 6,
"min": 12.0,
"max": 150.0,
"avg": 127.0,
"sum": 762.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Wandascher",
"multi-typModel.key": "Wandascher"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Standascher",
"multi-typModel.key": "Standascher"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Wandascher",
"multi-typModel.key": "Wandascher"
},
"doc_count": 47
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "Edelstahl",
"multi-farbe.key": "Edelstahl"
},
"doc_count": 11
},
{
"key": {
"multi-farbe.sorting": "Edelstahl\/matt",
"multi-farbe.key": "Edelstahl\/matt"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "Edelstahl\/poliert",
"multi-farbe.key": "Edelstahl\/poliert"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "anthrazit",
"multi-farbe.key": "anthrazit"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "anthrazit-eisenglimmer",
"multi-farbe.key": "anthrazit-eisenglimmer"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "anthrazitgrau",
"multi-farbe.key": "anthrazitgrau"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "antiksilber",
"multi-farbe.key": "antiksilber"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "enzianblau",
"multi-farbe.key": "enzianblau"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "feuerrot",
"multi-farbe.key": "feuerrot"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "graphit",
"multi-farbe.key": "graphit"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "kobaltblau",
"multi-farbe.key": "kobaltblau"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "moosgr\u00fcn",
"multi-farbe.key": "moosgr\u00fcn"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "neusilber",
"multi-farbe.key": "neusilber"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "rot",
"multi-farbe.key": "rot"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "silber",
"multi-farbe.key": "silber"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"doc_count": 1
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Edelstahl",
"multi-material.key": "Edelstahl"
},
"doc_count": 13
},
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 36
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "2e30356d97a7f9b781e52c96f19f58e3",
"doc_count": 20
},
{
"key": "5f3a897d0545c96e4d639d12b4e1dedb",
"doc_count": 17
},
{
"key": "d6f4440b8633f973d33c78928bdac2e1",
"doc_count": 11
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|