| 1 |
16.70 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":"eaaf9741202be6b0122e0b700dc5ad17"}},{"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":264,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 376,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "1bc859bfd12e6eb5b8ff853766bdb153",
"_score": 1100.0,
"_source": {
"id": "1bc859bfd12e6eb5b8ff853766bdb153",
"autoIncrement": 114739.0
},
"fields": {
"displayGroup": [
"d73afc7c8bb9a546354ec523d63ec9ef"
]
},
"sort": [
0,
1100.0,
0,
114739,
"1bc859bfd12e6eb5b8ff853766bdb153"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ca5d84d072f0315c71efda2188cc67a9",
"_score": 1100.0,
"_source": {
"id": "ca5d84d072f0315c71efda2188cc67a9",
"autoIncrement": 114738.0
},
"fields": {
"displayGroup": [
"16327a6c51f1021901451a8bafe5b540"
]
},
"sort": [
0,
1100.0,
0,
114738,
"ca5d84d072f0315c71efda2188cc67a9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6ba84f106e42e0787858b033b6482164",
"_score": 1100.0,
"_source": {
"id": "6ba84f106e42e0787858b033b6482164",
"autoIncrement": 114737.0
},
"fields": {
"displayGroup": [
"b7e4f1e02d1c54fc9210071d9dabf4b8"
]
},
"sort": [
0,
1100.0,
0,
114737,
"6ba84f106e42e0787858b033b6482164"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9d64aa00e2a1c048c3b9e88ff89152de",
"_score": 1100.0,
"_source": {
"id": "9d64aa00e2a1c048c3b9e88ff89152de",
"autoIncrement": 114736.0
},
"fields": {
"displayGroup": [
"79832ac003b20853fd12816b596d2c22"
]
},
"sort": [
0,
1100.0,
0,
114736,
"9d64aa00e2a1c048c3b9e88ff89152de"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e536c9cf273008b52ab1d5a564b42676",
"_score": 1100.0,
"_source": {
"id": "e536c9cf273008b52ab1d5a564b42676",
"autoIncrement": 114681.0
},
"fields": {
"displayGroup": [
"d7ad4a8418eddbd7e506e59b55eb21bb"
]
},
"sort": [
0,
1100.0,
0,
114681,
"e536c9cf273008b52ab1d5a564b42676"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ede47ac5edf8aae94f9ea44aac14bbdd",
"_score": 1100.0,
"_source": {
"id": "ede47ac5edf8aae94f9ea44aac14bbdd",
"autoIncrement": 114680.0
},
"fields": {
"displayGroup": [
"56e8ad1f11a18f720c997b5d9ec2e748"
]
},
"sort": [
0,
1100.0,
0,
114680,
"ede47ac5edf8aae94f9ea44aac14bbdd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ff4b54662f6ed6221e634f36d4d9ca80",
"_score": 1100.0,
"_source": {
"id": "ff4b54662f6ed6221e634f36d4d9ca80",
"autoIncrement": 114679.0
},
"fields": {
"displayGroup": [
"91ed90f40b50f01a126d33f57b55be21"
]
},
"sort": [
0,
1100.0,
0,
114679,
"ff4b54662f6ed6221e634f36d4d9ca80"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7b174679915a35bf2cc47baea8eec1d3",
"_score": 1100.0,
"_source": {
"id": "7b174679915a35bf2cc47baea8eec1d3",
"autoIncrement": 114678.0
},
"fields": {
"displayGroup": [
"6abf6e6b0388f7493acfc686617e793d"
]
},
"sort": [
0,
1100.0,
0,
114678,
"7b174679915a35bf2cc47baea8eec1d3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "56f64ca0cd2854bc2648c382d10f1f69",
"_score": 1100.0,
"_source": {
"id": "56f64ca0cd2854bc2648c382d10f1f69",
"autoIncrement": 114677.0
},
"fields": {
"displayGroup": [
"f31231d5dffa6779861a5651e75625a3"
]
},
"sort": [
0,
1100.0,
0,
114677,
"56f64ca0cd2854bc2648c382d10f1f69"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d85c325110980ae3e293358e5196c253",
"_score": 1100.0,
"_source": {
"id": "d85c325110980ae3e293358e5196c253",
"autoIncrement": 114676.0
},
"fields": {
"displayGroup": [
"88cc507fc13a0401bc6cb9a3c8af056f"
]
},
"sort": [
0,
1100.0,
0,
114676,
"d85c325110980ae3e293358e5196c253"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "66fc693c5d0fb28550bea906538cdfbb",
"_score": 1100.0,
"_source": {
"id": "66fc693c5d0fb28550bea906538cdfbb",
"autoIncrement": 114675.0
},
"fields": {
"displayGroup": [
"4e998d7c40f964d61d8579b294bb810b"
]
},
"sort": [
0,
1100.0,
0,
114675,
"66fc693c5d0fb28550bea906538cdfbb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0173073645fb216c21cac70f95e056af",
"_score": 1100.0,
"_source": {
"id": "0173073645fb216c21cac70f95e056af",
"autoIncrement": 114674.0
},
"fields": {
"displayGroup": [
"aec1414735a54820104c2e3d3a789e3b"
]
},
"sort": [
0,
1100.0,
0,
114674,
"0173073645fb216c21cac70f95e056af"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4b1d49c263292fb335e27f13f7fcb029",
"_score": 1100.0,
"_source": {
"id": "4b1d49c263292fb335e27f13f7fcb029",
"autoIncrement": 114673.0
},
"fields": {
"displayGroup": [
"add2a0df5311f237db108691dc2a9e17"
]
},
"sort": [
0,
1100.0,
0,
114673,
"4b1d49c263292fb335e27f13f7fcb029"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9975628fe89007acb689b681b1daed98",
"_score": 1100.0,
"_source": {
"id": "9975628fe89007acb689b681b1daed98",
"autoIncrement": 114672.0
},
"fields": {
"displayGroup": [
"f0383207e7e6baf29d8919a5bc56e021"
]
},
"sort": [
0,
1100.0,
0,
114672,
"9975628fe89007acb689b681b1daed98"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b598f2053185d5d0dcc90f6ea5c752c3",
"_score": 1100.0,
"_source": {
"id": "b598f2053185d5d0dcc90f6ea5c752c3",
"autoIncrement": 114671.0
},
"fields": {
"displayGroup": [
"c5eb9832defbb9134e429e9693ecd4fb"
]
},
"sort": [
0,
1100.0,
0,
114671,
"b598f2053185d5d0dcc90f6ea5c752c3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9ee2ff9b8edc75823a19de08822abe3c",
"_score": 1100.0,
"_source": {
"id": "9ee2ff9b8edc75823a19de08822abe3c",
"autoIncrement": 114670.0
},
"fields": {
"displayGroup": [
"b94c3c5bfbbecdaafb0ff53b6e09de68"
]
},
"sort": [
0,
1100.0,
0,
114670,
"9ee2ff9b8edc75823a19de08822abe3c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fdb99a812f89851ed8cc868f4936a010",
"_score": 1100.0,
"_source": {
"id": "fdb99a812f89851ed8cc868f4936a010",
"autoIncrement": 114669.0
},
"fields": {
"displayGroup": [
"2cf7a7621e2d7767e5d6d75f36d8de71"
]
},
"sort": [
0,
1100.0,
0,
114669,
"fdb99a812f89851ed8cc868f4936a010"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5492829c01b6b990fc5a9af3c4d06cbc",
"_score": 1100.0,
"_source": {
"id": "5492829c01b6b990fc5a9af3c4d06cbc",
"autoIncrement": 114668.0
},
"fields": {
"displayGroup": [
"e74140bd14549337b61b990399add55f"
]
},
"sort": [
0,
1100.0,
0,
114668,
"5492829c01b6b990fc5a9af3c4d06cbc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7ed14df645cac9cc39bb7720cf8f2752",
"_score": 1100.0,
"_source": {
"id": "7ed14df645cac9cc39bb7720cf8f2752",
"autoIncrement": 114667.0
},
"fields": {
"displayGroup": [
"0ef0e23c1ea98794d7433186d5a66913"
]
},
"sort": [
0,
1100.0,
0,
114667,
"7ed14df645cac9cc39bb7720cf8f2752"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4f1280ee0346e0f61dfd2bf94a44226b",
"_score": 1100.0,
"_source": {
"id": "4f1280ee0346e0f61dfd2bf94a44226b",
"autoIncrement": 114666.0
},
"fields": {
"displayGroup": [
"d1d9165a644e7e2913588c382f60e91b"
]
},
"sort": [
0,
1100.0,
0,
114666,
"4f1280ee0346e0f61dfd2bf94a44226b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "046d6398de30d925238690b97a0bb4df",
"_score": 1100.0,
"_source": {
"id": "046d6398de30d925238690b97a0bb4df",
"autoIncrement": 114665.0
},
"fields": {
"displayGroup": [
"dead306a8e940244d20b760b80a1af71"
]
},
"sort": [
0,
1100.0,
0,
114665,
"046d6398de30d925238690b97a0bb4df"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f17643437366707d5f15a71aeef60542",
"_score": 1100.0,
"_source": {
"id": "f17643437366707d5f15a71aeef60542",
"autoIncrement": 114664.0
},
"fields": {
"displayGroup": [
"4e273c568b0bf22d07e4807a724dadce"
]
},
"sort": [
0,
1100.0,
0,
114664,
"f17643437366707d5f15a71aeef60542"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "05687170374e0d205b848808292792ac",
"_score": 1100.0,
"_source": {
"id": "05687170374e0d205b848808292792ac",
"autoIncrement": 114663.0
},
"fields": {
"displayGroup": [
"29aab3f6a5a1b17f64164708f044aea6"
]
},
"sort": [
0,
1100.0,
0,
114663,
"05687170374e0d205b848808292792ac"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e7d0c226b4f9b3cff7abe7264f74bd69",
"_score": 1100.0,
"_source": {
"id": "e7d0c226b4f9b3cff7abe7264f74bd69",
"autoIncrement": 114662.0
},
"fields": {
"displayGroup": [
"3420916fb5693063660f9b986678b09c"
]
},
"sort": [
0,
1100.0,
0,
114662,
"e7d0c226b4f9b3cff7abe7264f74bd69"
]
}
]
},
"aggregations": {
"total-count": {
"value": 376
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
4.92 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":"eaaf9741202be6b0122e0b700dc5ad17"}},{"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-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"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-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"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": "eaaf9741202be6b0122e0b700dc5ad17"
}
},
{
"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-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"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-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"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": 376,
"min": 399.0,
"max": 2379.0,
"avg": 956.7712765957447,
"sum": 359746.0
},
"rating-exists": {
"doc_count": 376,
"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": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 268
}
]
},
"bool-reduced": {
"doc_count": 24,
"bool-reduced": {
"value": 24
}
},
"width": {
"count": 352,
"min": 1500.0,
"max": 11073.0,
"avg": 2174.096590909091,
"sum": 765282.0
},
"width-stats": {
"doc_count": 352,
"width-stats": {
"count": 352,
"min": 1500.0,
"max": 11073.0,
"avg": 2174.096590909091,
"sum": 765282.0
}
},
"height": {
"count": 352,
"min": 2000.0,
"max": 3000.0,
"avg": 2424.715909090909,
"sum": 853500.0
},
"height-stats": {
"doc_count": 352,
"height-stats": {
"count": 352,
"min": 2000.0,
"max": 3000.0,
"avg": 2424.715909090909,
"sum": 853500.0
}
},
"tiefe": {
"count": 352,
"min": 400.0,
"max": 1000.0,
"avg": 706.8181818181819,
"sum": 248800.0
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 4
}
]
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Weitspannregale Set",
"multi-typModel.key": "Weitspannregale Set"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Weitspannregale Anbaufeld",
"multi-typModel.key": "Weitspannregale Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Grundfeld",
"multi-typModel.key": "Weitspannregale Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Set",
"multi-typModel.key": "Weitspannregale Set"
},
"doc_count": 4
}
]
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "3 St\u00fcck",
"multi-anzahlFachboeden.key": "3 St\u00fcck"
},
"doc_count": 84
},
{
"key": {
"multi-anzahlFachboeden.sorting": "4 St\u00fcck",
"multi-anzahlFachboeden.key": "4 St\u00fcck"
},
"doc_count": 228
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 36
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 268
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|