| 1 |
15.54 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":"8b2447b7b4460a5aa5c3550d50b9c96d"}},{"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":192,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 247,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "9dc503d42716e515508b6412d52d30a7",
"_score": 100.0,
"_source": {
"id": "9dc503d42716e515508b6412d52d30a7",
"autoIncrement": 99929.0
},
"fields": {
"displayGroup": [
"a033fc62998959827f3ebe3fb19d0c65"
]
},
"sort": [
0,
100.0,
0,
99929,
"9dc503d42716e515508b6412d52d30a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c5d6a49c89351b91708319d81fef9c5d",
"_score": 100.0,
"_source": {
"id": "c5d6a49c89351b91708319d81fef9c5d",
"autoIncrement": 99928.0
},
"fields": {
"displayGroup": [
"4951339cd278566d4cf8de84ea1bc4b9"
]
},
"sort": [
0,
100.0,
0,
99928,
"c5d6a49c89351b91708319d81fef9c5d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b4a2c01ca2740e3538e1ea916468e5be",
"_score": 100.0,
"_source": {
"id": "b4a2c01ca2740e3538e1ea916468e5be",
"autoIncrement": 99926.0
},
"fields": {
"displayGroup": [
"59b83fcf6a740ff974aa005ce773402c"
]
},
"sort": [
0,
100.0,
0,
99926,
"b4a2c01ca2740e3538e1ea916468e5be"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "01151c7d320e97a1a96ff4555e9ebe1a",
"_score": 100.0,
"_source": {
"id": "01151c7d320e97a1a96ff4555e9ebe1a",
"autoIncrement": 99925.0
},
"fields": {
"displayGroup": [
"eb668936d73138ee106f5e9611fe52aa"
]
},
"sort": [
0,
100.0,
0,
99925,
"01151c7d320e97a1a96ff4555e9ebe1a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6fc7019083b24cd0b00fb88d81cbae05",
"_score": 100.0,
"_source": {
"id": "6fc7019083b24cd0b00fb88d81cbae05",
"autoIncrement": 99924.0
},
"fields": {
"displayGroup": [
"4abb2d014f023957b103bc75d0e4260b"
]
},
"sort": [
0,
100.0,
0,
99924,
"6fc7019083b24cd0b00fb88d81cbae05"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6d7af35ef18025b62531288ff69cfea7",
"_score": 100.0,
"_source": {
"id": "6d7af35ef18025b62531288ff69cfea7",
"autoIncrement": 99923.0
},
"fields": {
"displayGroup": [
"20fdc987256c5eb4954ae6fff2de2a3e"
]
},
"sort": [
0,
100.0,
0,
99923,
"6d7af35ef18025b62531288ff69cfea7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d5f514aea1f9c718f09068c47823a2ac",
"_score": 100.0,
"_source": {
"id": "d5f514aea1f9c718f09068c47823a2ac",
"autoIncrement": 99922.0
},
"fields": {
"displayGroup": [
"a40c702483b581eaf658cb08df04afb2"
]
},
"sort": [
0,
100.0,
0,
99922,
"d5f514aea1f9c718f09068c47823a2ac"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5641a50aeab3fd5061097d485332bceb",
"_score": 100.0,
"_source": {
"id": "5641a50aeab3fd5061097d485332bceb",
"autoIncrement": 99921.0
},
"fields": {
"displayGroup": [
"b6f23f518d0f19a51de0fc59d49aa313"
]
},
"sort": [
0,
100.0,
0,
99921,
"5641a50aeab3fd5061097d485332bceb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5365f8c831abe93934e9dcc0d0b23018",
"_score": 100.0,
"_source": {
"id": "5365f8c831abe93934e9dcc0d0b23018",
"autoIncrement": 99920.0
},
"fields": {
"displayGroup": [
"0c710327f4d0bc229309c67637f31abd"
]
},
"sort": [
0,
100.0,
0,
99920,
"5365f8c831abe93934e9dcc0d0b23018"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "634fd1118154aed54369c9e5ffa3dd27",
"_score": 100.0,
"_source": {
"id": "634fd1118154aed54369c9e5ffa3dd27",
"autoIncrement": 99919.0
},
"fields": {
"displayGroup": [
"ad9943c949701a18b2609f887d3ecc2d"
]
},
"sort": [
0,
100.0,
0,
99919,
"634fd1118154aed54369c9e5ffa3dd27"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "495f445c72f21fa87b019ad0ba9b0fc5",
"_score": 100.0,
"_source": {
"id": "495f445c72f21fa87b019ad0ba9b0fc5",
"autoIncrement": 99918.0
},
"fields": {
"displayGroup": [
"fe8c2534188631db5c8677bc53acc8ed"
]
},
"sort": [
0,
100.0,
0,
99918,
"495f445c72f21fa87b019ad0ba9b0fc5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ac748ad3b83ee110ad5e5937bfbd37d3",
"_score": 100.0,
"_source": {
"id": "ac748ad3b83ee110ad5e5937bfbd37d3",
"autoIncrement": 99917.0
},
"fields": {
"displayGroup": [
"ba2964d2d1d3f222242e3497f8998b62"
]
},
"sort": [
0,
100.0,
0,
99917,
"ac748ad3b83ee110ad5e5937bfbd37d3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8f2da4307b8b84211b4fd50716b3f80c",
"_score": 100.0,
"_source": {
"id": "8f2da4307b8b84211b4fd50716b3f80c",
"autoIncrement": 99916.0
},
"fields": {
"displayGroup": [
"99b77f5338e49360172cdedc985ba688"
]
},
"sort": [
0,
100.0,
0,
99916,
"8f2da4307b8b84211b4fd50716b3f80c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a0a33eb61f35491b8480db604f6863a7",
"_score": 100.0,
"_source": {
"id": "a0a33eb61f35491b8480db604f6863a7",
"autoIncrement": 99915.0
},
"fields": {
"displayGroup": [
"af23e6f07c34bfdc2446a139005a7aba"
]
},
"sort": [
0,
100.0,
0,
99915,
"a0a33eb61f35491b8480db604f6863a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2bb5f0bb2b2d85e7923de8092a8d95a6",
"_score": 100.0,
"_source": {
"id": "2bb5f0bb2b2d85e7923de8092a8d95a6",
"autoIncrement": 99914.0
},
"fields": {
"displayGroup": [
"489f3d83b0a47a0cb6c1b652231c5a80"
]
},
"sort": [
0,
100.0,
0,
99914,
"2bb5f0bb2b2d85e7923de8092a8d95a6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7efa589bcdff0aa9da4719e3bca2407b",
"_score": 100.0,
"_source": {
"id": "7efa589bcdff0aa9da4719e3bca2407b",
"autoIncrement": 99913.0
},
"fields": {
"displayGroup": [
"22aba742e02e030dae5818d82636652c"
]
},
"sort": [
0,
100.0,
0,
99913,
"7efa589bcdff0aa9da4719e3bca2407b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2c7c293fa490a4f300f28f1c3820327c",
"_score": 100.0,
"_source": {
"id": "2c7c293fa490a4f300f28f1c3820327c",
"autoIncrement": 99912.0
},
"fields": {
"displayGroup": [
"a144b3b99cdd6db000be20848e56e7e3"
]
},
"sort": [
0,
100.0,
0,
99912,
"2c7c293fa490a4f300f28f1c3820327c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8a0627c7b5525e6f6bff92ffaeb16267",
"_score": 100.0,
"_source": {
"id": "8a0627c7b5525e6f6bff92ffaeb16267",
"autoIncrement": 99911.0
},
"fields": {
"displayGroup": [
"57344237ef24ea7df7c8bbd07656cb78"
]
},
"sort": [
0,
100.0,
0,
99911,
"8a0627c7b5525e6f6bff92ffaeb16267"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "25b70a6fea47f2d2c7e839418d60e83b",
"_score": 100.0,
"_source": {
"id": "25b70a6fea47f2d2c7e839418d60e83b",
"autoIncrement": 99910.0
},
"fields": {
"displayGroup": [
"d7774dae5c3c0200c9546fe19ac7fc87"
]
},
"sort": [
0,
100.0,
0,
99910,
"25b70a6fea47f2d2c7e839418d60e83b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "69474212ec41d194cb7ff2d3d1e8a4bd",
"_score": 100.0,
"_source": {
"id": "69474212ec41d194cb7ff2d3d1e8a4bd",
"autoIncrement": 99909.0
},
"fields": {
"displayGroup": [
"5de9dae804f1fe3517427e02fa64964b"
]
},
"sort": [
0,
100.0,
0,
99909,
"69474212ec41d194cb7ff2d3d1e8a4bd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dfdfb2b12e79d11ee4013f890fbad889",
"_score": 100.0,
"_source": {
"id": "dfdfb2b12e79d11ee4013f890fbad889",
"autoIncrement": 99908.0
},
"fields": {
"displayGroup": [
"8b0a08bf4c05b3424e336dc305ec757a"
]
},
"sort": [
0,
100.0,
0,
99908,
"dfdfb2b12e79d11ee4013f890fbad889"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0ee72ba9dceeefa39074f22b87a42cbf",
"_score": 100.0,
"_source": {
"id": "0ee72ba9dceeefa39074f22b87a42cbf",
"autoIncrement": 99907.0
},
"fields": {
"displayGroup": [
"32064b690d52731de8abc7980115cbb5"
]
},
"sort": [
0,
100.0,
0,
99907,
"0ee72ba9dceeefa39074f22b87a42cbf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "75d31c6a31d77e9543de267993fa7c62",
"_score": 100.0,
"_source": {
"id": "75d31c6a31d77e9543de267993fa7c62",
"autoIncrement": 99877.0
},
"fields": {
"displayGroup": [
"5505030410d69b6934621a2b9b16311a"
]
},
"sort": [
0,
100.0,
0,
99877,
"75d31c6a31d77e9543de267993fa7c62"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "82c3e711bc2935b6a0b81ddc553ab974",
"_score": 100.0,
"_source": {
"id": "82c3e711bc2935b6a0b81ddc553ab974",
"autoIncrement": 99876.0
},
"fields": {
"displayGroup": [
"614f358594a02624ef7845b50da65cdc"
]
},
"sort": [
0,
100.0,
0,
99876,
"82c3e711bc2935b6a0b81ddc553ab974"
]
}
]
},
"aggregations": {
"total-count": {
"value": 247
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.35 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":"8b2447b7b4460a5aa5c3550d50b9c96d"}},{"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"}}}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-width":{"composite":{"sources":[{"multi-width.sorting":{"terms":{"field":"width","order":"ASC"}}},{"multi-width.key":{"terms":{"field":"width"}}}],"size":"99999"}},"multi-height":{"composite":{"sources":[{"multi-height.sorting":{"terms":{"field":"height","order":"ASC"}}},{"multi-height.key":{"terms":{"field":"height"}}}],"size":"99999"}},"multi-tiefe":{"composite":{"sources":[{"multi-tiefe.sorting":{"terms":{"field":"attribute_tiefe","order":"ASC"}}},{"multi-tiefe.key":{"terms":{"field":"attribute_tiefe"}}}],"size":"99999"}},"multi-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"size":"99999"}},"multi-ausfuehrungBoden":{"composite":{"sources":[{"multi-ausfuehrungBoden.sorting":{"terms":{"field":"attribute_ausfuehrungBoden","order":"ASC"}}},{"multi-ausfuehrungBoden.key":{"terms":{"field":"attribute_ausfuehrungBoden"}}}],"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": "8b2447b7b4460a5aa5c3550d50b9c96d"
}
},
{
"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"
}
}
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-width": {
"composite": {
"sources": [
{
"multi-width.sorting": {
"terms": {
"field": "width",
"order": "ASC"
}
}
},
{
"multi-width.key": {
"terms": {
"field": "width"
}
}
}
],
"size": "99999"
}
},
"multi-height": {
"composite": {
"sources": [
{
"multi-height.sorting": {
"terms": {
"field": "height",
"order": "ASC"
}
}
},
{
"multi-height.key": {
"terms": {
"field": "height"
}
}
}
],
"size": "99999"
}
},
"multi-tiefe": {
"composite": {
"sources": [
{
"multi-tiefe.sorting": {
"terms": {
"field": "attribute_tiefe",
"order": "ASC"
}
}
},
{
"multi-tiefe.key": {
"terms": {
"field": "attribute_tiefe"
}
}
}
],
"size": "99999"
}
},
"multi-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"size": "99999"
}
},
"multi-ausfuehrungBoden": {
"composite": {
"sources": [
{
"multi-ausfuehrungBoden.sorting": {
"terms": {
"field": "attribute_ausfuehrungBoden",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungBoden.key": {
"terms": {
"field": "attribute_ausfuehrungBoden"
}
}
}
],
"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": 247,
"min": 38.6,
"max": 2005.0,
"avg": 720.5781376518219,
"sum": 177982.8
},
"rating-exists": {
"doc_count": 247,
"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": 193
}
]
},
"bool-reduced": {
"doc_count": 12,
"bool-reduced": {
"value": 12
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Weitspannregale Anbaufeld",
"multi-typModel.key": "Weitspannregale Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 61
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 2700.0,
"multi-width.key": 2700.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 19
},
{
"key": {
"multi-width.sorting": 1750.0,
"multi-width.key": 1750.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 1785.0,
"multi-width.key": 1785.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 1850.0,
"multi-width.key": 1850.0
},
"doc_count": 19
},
{
"key": {
"multi-width.sorting": 2010.0,
"multi-width.key": 2010.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 2140.0,
"multi-width.key": 2140.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 2250.0,
"multi-width.key": 2250.0
},
"doc_count": 19
},
{
"key": {
"multi-width.sorting": 2500.0,
"multi-width.key": 2500.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 2570.0,
"multi-width.key": 2570.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 2700.0,
"multi-width.key": 2700.0
},
"doc_count": 19
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 69
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 69
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 45
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 24
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 24
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 70
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 68
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 45
}
]
},
"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": 42
},
{
"key": {
"multi-anzahlFachboeden.sorting": "4 St\u00fcck",
"multi-anzahlFachboeden.key": "4 St\u00fcck"
},
"doc_count": 114
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 18
}
]
},
"multi-ausfuehrungBoden": {
"after_key": {
"multi-ausfuehrungBoden.sorting": "Stahlpaneele",
"multi-ausfuehrungBoden.key": "Stahlpaneele"
},
"buckets": [
{
"key": {
"multi-ausfuehrungBoden.sorting": "Spanplatte",
"multi-ausfuehrungBoden.key": "Spanplatte"
},
"doc_count": 87
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahl",
"multi-ausfuehrungBoden.key": "Stahl"
},
"doc_count": 58
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahlpaneele",
"multi-ausfuehrungBoden.key": "Stahlpaneele"
},
"doc_count": 27
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 193
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|