| 1 |
14.90 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":"2ac98d72869832855f4daf16a05b972b"}},{"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": 66,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "d1d5eed4a3aef87e23e8012e59bee00b",
"_score": 1100.0,
"_source": {
"id": "d1d5eed4a3aef87e23e8012e59bee00b",
"autoIncrement": 126787.0
},
"fields": {
"displayGroup": [
"fa22533f3482da5d5d43ba25759ee73f"
]
},
"sort": [
0,
1100.0,
0,
126787,
"d1d5eed4a3aef87e23e8012e59bee00b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1dded91d65320c015b5b5a22d356d29e",
"_score": 1100.0,
"_source": {
"id": "1dded91d65320c015b5b5a22d356d29e",
"autoIncrement": 123875.0
},
"fields": {
"displayGroup": [
"f83e1a695ae0d3528c293008e8a3e3e7"
]
},
"sort": [
0,
1100.0,
0,
123875,
"1dded91d65320c015b5b5a22d356d29e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6e44f87f89d01fde1ffa3ae2340bfc52",
"_score": 1100.0,
"_source": {
"id": "6e44f87f89d01fde1ffa3ae2340bfc52",
"autoIncrement": 119071.0
},
"fields": {
"displayGroup": [
"b46ed29b59f6b03ed663b05e4bc6bc4d"
]
},
"sort": [
0,
1100.0,
0,
119071,
"6e44f87f89d01fde1ffa3ae2340bfc52"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "969a4c47764f0a5429410e0cbb360ce6",
"_score": 1100.0,
"_source": {
"id": "969a4c47764f0a5429410e0cbb360ce6",
"autoIncrement": 119070.0
},
"fields": {
"displayGroup": [
"1bf970c84513aa1cbe4c103856133548"
]
},
"sort": [
0,
1100.0,
0,
119070,
"969a4c47764f0a5429410e0cbb360ce6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "123695ce24b95a054ca18a5b6b9c36be",
"_score": 1100.0,
"_source": {
"id": "123695ce24b95a054ca18a5b6b9c36be",
"autoIncrement": 93458.0
},
"fields": {
"displayGroup": [
"be7c1abe3242e9837e71fbe06ee04d1d"
]
},
"sort": [
0,
1100.0,
0,
93458,
"123695ce24b95a054ca18a5b6b9c36be"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d903b801daa46039d3228fad2ecc25c0",
"_score": 1100.0,
"_source": {
"id": "d903b801daa46039d3228fad2ecc25c0",
"autoIncrement": 93453.0
},
"fields": {
"displayGroup": [
"1c1651275c1cef00e270fdf843648dbb"
]
},
"sort": [
0,
1100.0,
0,
93453,
"d903b801daa46039d3228fad2ecc25c0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1667003c35228242f92164266fba4d8f",
"_score": 1100.0,
"_source": {
"id": "1667003c35228242f92164266fba4d8f",
"autoIncrement": 93452.0
},
"fields": {
"displayGroup": [
"63a1d4de9f3dc951195b6a7462ef1a97"
]
},
"sort": [
0,
1100.0,
0,
93452,
"1667003c35228242f92164266fba4d8f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c18409d41a6581059b7b2eab779c31f8",
"_score": 1100.0,
"_source": {
"id": "c18409d41a6581059b7b2eab779c31f8",
"autoIncrement": 93446.0
},
"fields": {
"displayGroup": [
"537c1bdaff8e008df5df6866593f2174"
]
},
"sort": [
0,
1100.0,
0,
93446,
"c18409d41a6581059b7b2eab779c31f8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "aa1347f30990dcf348f83b0762913a3e",
"_score": 1100.0,
"_source": {
"id": "aa1347f30990dcf348f83b0762913a3e",
"autoIncrement": 93442.0
},
"fields": {
"displayGroup": [
"d537b23c06d07b71767921cef7b1279c"
]
},
"sort": [
0,
1100.0,
0,
93442,
"aa1347f30990dcf348f83b0762913a3e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b5ee4320525533e642acc60053606337",
"_score": 1100.0,
"_source": {
"id": "b5ee4320525533e642acc60053606337",
"autoIncrement": 93440.0
},
"fields": {
"displayGroup": [
"41805a8367d831251f1b50c18c10bf3f"
]
},
"sort": [
0,
1100.0,
0,
93440,
"b5ee4320525533e642acc60053606337"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5e16f88cb3b82bfc86033b6d019a2a3f",
"_score": 1100.0,
"_source": {
"id": "5e16f88cb3b82bfc86033b6d019a2a3f",
"autoIncrement": 93436.0
},
"fields": {
"displayGroup": [
"5d9e7255ff80aebbb7c01c2875c9bbba"
]
},
"sort": [
0,
1100.0,
0,
93436,
"5e16f88cb3b82bfc86033b6d019a2a3f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f47a9e27162d23e6cf76b43789051d4d",
"_score": 1100.0,
"_source": {
"id": "f47a9e27162d23e6cf76b43789051d4d",
"autoIncrement": 93434.0
},
"fields": {
"displayGroup": [
"c556e267819cd80b22946022ed71c074"
]
},
"sort": [
0,
1100.0,
0,
93434,
"f47a9e27162d23e6cf76b43789051d4d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f2ec2bd985bfaf0a42f894cc328932d1",
"_score": 1100.0,
"_source": {
"id": "f2ec2bd985bfaf0a42f894cc328932d1",
"autoIncrement": 93433.0
},
"fields": {
"displayGroup": [
"085cd2bb2f7fca27f64efc02730a6eb3"
]
},
"sort": [
0,
1100.0,
0,
93433,
"f2ec2bd985bfaf0a42f894cc328932d1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fba7a0c9c59a0badf34a5992f81c3f78",
"_score": 1100.0,
"_source": {
"id": "fba7a0c9c59a0badf34a5992f81c3f78",
"autoIncrement": 93427.0
},
"fields": {
"displayGroup": [
"f10d30426dc3a7f534ca62b59a52ea31"
]
},
"sort": [
0,
1100.0,
0,
93427,
"fba7a0c9c59a0badf34a5992f81c3f78"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a54e6237aa2b2799559f3dc0e14e821d",
"_score": 1100.0,
"_source": {
"id": "a54e6237aa2b2799559f3dc0e14e821d",
"autoIncrement": 93426.0
},
"fields": {
"displayGroup": [
"cae66117d56ea0e09a66a10c680e0c82"
]
},
"sort": [
0,
1100.0,
0,
93426,
"a54e6237aa2b2799559f3dc0e14e821d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "267b67ba341c150142f42c74141cc80c",
"_score": 1100.0,
"_source": {
"id": "267b67ba341c150142f42c74141cc80c",
"autoIncrement": 11321.0
},
"fields": {
"displayGroup": [
"f418a38cd2985e9a344b31dd1764d8ec"
]
},
"sort": [
0,
1100.0,
0,
11321,
"267b67ba341c150142f42c74141cc80c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "161be366a64f840d3092ea1afbedb0f3",
"_score": 1100.0,
"_source": {
"id": "161be366a64f840d3092ea1afbedb0f3",
"autoIncrement": 11320.0
},
"fields": {
"displayGroup": [
"cf6b2c64f53f19ca9b65bd4e218e2a31"
]
},
"sort": [
0,
1100.0,
0,
11320,
"161be366a64f840d3092ea1afbedb0f3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a3ffe1da5c98794580f954a83a6a63e0",
"_score": 1100.0,
"_source": {
"id": "a3ffe1da5c98794580f954a83a6a63e0",
"autoIncrement": 11319.0
},
"fields": {
"displayGroup": [
"ce73fe14d687b1f1e7bb64380631c2ce"
]
},
"sort": [
0,
1100.0,
0,
11319,
"a3ffe1da5c98794580f954a83a6a63e0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fec5178412c7eba79ba45df6ec5892b0",
"_score": 1100.0,
"_source": {
"id": "fec5178412c7eba79ba45df6ec5892b0",
"autoIncrement": 11318.0
},
"fields": {
"displayGroup": [
"557e93af99212584e9f9bc62ee9b2194"
]
},
"sort": [
0,
1100.0,
0,
11318,
"fec5178412c7eba79ba45df6ec5892b0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c841bd76b7732c8f9d2a750766e0813d",
"_score": 1100.0,
"_source": {
"id": "c841bd76b7732c8f9d2a750766e0813d",
"autoIncrement": 11317.0
},
"fields": {
"displayGroup": [
"e049cc68b9292f3eb4b2e4be91b4df65"
]
},
"sort": [
0,
1100.0,
0,
11317,
"c841bd76b7732c8f9d2a750766e0813d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3bcf8f272d28f146f9389d431b776757",
"_score": 1100.0,
"_source": {
"id": "3bcf8f272d28f146f9389d431b776757",
"autoIncrement": 11316.0
},
"fields": {
"displayGroup": [
"d207b6a60b8ebe2dd57a5feb2429278c"
]
},
"sort": [
0,
1100.0,
0,
11316,
"3bcf8f272d28f146f9389d431b776757"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "653921911192b8a37842f5bd338be67e",
"_score": 1100.0,
"_source": {
"id": "653921911192b8a37842f5bd338be67e",
"autoIncrement": 11315.0
},
"fields": {
"displayGroup": [
"a8ef653e3337ec461d81c7e0713850e3"
]
},
"sort": [
0,
1100.0,
0,
11315,
"653921911192b8a37842f5bd338be67e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "18a6461601d908153ae1f6be609117e4",
"_score": 1100.0,
"_source": {
"id": "18a6461601d908153ae1f6be609117e4",
"autoIncrement": 11314.0
},
"fields": {
"displayGroup": [
"2a8b3bd6b5f9d9f592a0e908436b85c5"
]
},
"sort": [
0,
1100.0,
0,
11314,
"18a6461601d908153ae1f6be609117e4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f52dd23708be8c103d6cb68e930b2274",
"_score": 1100.0,
"_source": {
"id": "f52dd23708be8c103d6cb68e930b2274",
"autoIncrement": 3663.0
},
"fields": {
"displayGroup": [
"6da8b1f90523f931ea4a7c8e481130d0"
]
},
"sort": [
0,
1100.0,
0,
3663,
"f52dd23708be8c103d6cb68e930b2274"
]
}
]
},
"aggregations": {
"total-count": {
"value": 66
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.97 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":"2ac98d72869832855f4daf16a05b972b"}},{"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_rule5b270e597f114fbba683590b4a9cb579_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_rule5b270e597f114fbba683590b4a9cb579_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": "2ac98d72869832855f4daf16a05b972b"
}
},
{
"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_rule5b270e597f114fbba683590b4a9cb579_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_rule5b270e597f114fbba683590b4a9cb579_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": 66,
"min": 335.0,
"max": 1810.0,
"avg": 766.469696969697,
"sum": 50587.0
},
"rating-exists": {
"doc_count": 66,
"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": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "0e9efab1edec8acb8db5b0b6309d412c",
"manufacturer-count-filter.key": "0e9efab1edec8acb8db5b0b6309d412c"
},
"doc_count": 36
},
{
"key": {
"manufacturer-count-filter.sorting": "2fc223ce6476978f04619d762abe9f3e",
"manufacturer-count-filter.key": "2fc223ce6476978f04619d762abe9f3e"
},
"doc_count": 3
},
{
"key": {
"manufacturer-count-filter.sorting": "5267ee69add37a0408db89f9cd30c57f",
"manufacturer-count-filter.key": "5267ee69add37a0408db89f9cd30c57f"
},
"doc_count": 12
},
{
"key": {
"manufacturer-count-filter.sorting": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"doc_count": 15
}
]
},
"bool-reduced": {
"doc_count": 2,
"bool-reduced": {
"value": 2
}
},
"width": {
"count": 66,
"min": 432.0,
"max": 1200.0,
"avg": 708.5454545454545,
"sum": 46764.0
},
"width-stats": {
"doc_count": 66,
"width-stats": {
"count": 66,
"min": 432.0,
"max": 1200.0,
"avg": 708.5454545454545,
"sum": 46764.0
}
},
"height": {
"count": 66,
"min": 748.0,
"max": 2304.0,
"avg": 1536.060606060606,
"sum": 101380.0
},
"height-stats": {
"doc_count": 66,
"height-stats": {
"count": 66,
"min": 748.0,
"max": 2304.0,
"avg": 1536.060606060606,
"sum": 101380.0
}
},
"tiefe": {
"count": 66,
"min": 420.0,
"max": 800.0,
"avg": 514.8484848484849,
"sum": 33980.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Sonstige B\u00fcroschr\u00e4nke",
"multi-typModel.key": "Sonstige B\u00fcroschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Kombinationssch\u00e4nke",
"multi-typModel.key": "Kombinationssch\u00e4nke"
},
"doc_count": 7
},
{
"key": {
"multi-typModel.sorting": "Materialschr\u00e4nke",
"multi-typModel.key": "Materialschr\u00e4nke"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Regal-\/Schrank-Kombi",
"multi-typModel.key": "Regal-\/Schrank-Kombi"
},
"doc_count": 36
},
{
"key": {
"multi-typModel.sorting": "Sonstige B\u00fcroschr\u00e4nke",
"multi-typModel.key": "Sonstige B\u00fcroschr\u00e4nke"
},
"doc_count": 20
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "ahorn",
"multi-farbe.key": "ahorn"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "buche",
"multi-farbe.key": "buche"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "graphitwei\u00df",
"multi-farbe.key": "graphitwei\u00df"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "lichtgrau",
"multi-farbe.key": "lichtgrau"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "nussbaum",
"multi-farbe.key": "nussbaum"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"doc_count": 6
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Spanplatte",
"multi-material.key": "Spanplatte"
},
"doc_count": 15
},
{
"key": {
"multi-material.sorting": "Spanplatte\/beschichtet",
"multi-material.key": "Spanplatte\/beschichtet"
},
"doc_count": 36
},
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 15
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "0e9efab1edec8acb8db5b0b6309d412c",
"doc_count": 36
},
{
"key": "7bd063d302bdd813d4944cec5509cfa3",
"doc_count": 15
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 12
},
{
"key": "2fc223ce6476978f04619d762abe9f3e",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|