| 1 |
19.49 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":"ab292a19eab14c106d2c9e81e71f86d5"}},{"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":96,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 7,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 137,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "8985fb7f28bf8f8161dc6d15455b1a34",
"_score": 1100.0,
"_source": {
"id": "8985fb7f28bf8f8161dc6d15455b1a34",
"autoIncrement": 33199.0
},
"fields": {
"displayGroup": [
"c01b67bc8ee3a002566a5c379d85bc04"
]
},
"sort": [
0,
1100.0,
0,
33199,
"8985fb7f28bf8f8161dc6d15455b1a34"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "db10645071a4a9372fb006165ba70ca8",
"_score": 1100.0,
"_source": {
"id": "db10645071a4a9372fb006165ba70ca8",
"autoIncrement": 33198.0
},
"fields": {
"displayGroup": [
"26240b76e5da2dda4e6a27a799853d19"
]
},
"sort": [
0,
1100.0,
0,
33198,
"db10645071a4a9372fb006165ba70ca8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "12ba04883c0e8dcde9514ad927448940",
"_score": 1100.0,
"_source": {
"id": "12ba04883c0e8dcde9514ad927448940",
"autoIncrement": 33197.0
},
"fields": {
"displayGroup": [
"f984ba65795500a4ecfee6044d53fa30"
]
},
"sort": [
0,
1100.0,
0,
33197,
"12ba04883c0e8dcde9514ad927448940"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e67ce85d7a4757d5cbbe94fcab9e6723",
"_score": 1100.0,
"_source": {
"id": "e67ce85d7a4757d5cbbe94fcab9e6723",
"autoIncrement": 33196.0
},
"fields": {
"displayGroup": [
"a196fc3dca854240ef17c684530aee10"
]
},
"sort": [
0,
1100.0,
0,
33196,
"e67ce85d7a4757d5cbbe94fcab9e6723"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "62a7a865380530205fa843207812a16a",
"_score": 1100.0,
"_source": {
"id": "62a7a865380530205fa843207812a16a",
"autoIncrement": 33195.0
},
"fields": {
"displayGroup": [
"65a45a5b37ed8a951abf349a5caa4815"
]
},
"sort": [
0,
1100.0,
0,
33195,
"62a7a865380530205fa843207812a16a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a67356f0aed5b0e93ffe7595fce9f31e",
"_score": 1100.0,
"_source": {
"id": "a67356f0aed5b0e93ffe7595fce9f31e",
"autoIncrement": 33194.0
},
"fields": {
"displayGroup": [
"6dee378beafa85f6286892be37b8fbcf"
]
},
"sort": [
0,
1100.0,
0,
33194,
"a67356f0aed5b0e93ffe7595fce9f31e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8067ad91927d75ac5c1dd7575fc4458e",
"_score": 1100.0,
"_source": {
"id": "8067ad91927d75ac5c1dd7575fc4458e",
"autoIncrement": 33193.0
},
"fields": {
"displayGroup": [
"d666b57ab5e0dc8d23c51f6d76ea7def"
]
},
"sort": [
0,
1100.0,
0,
33193,
"8067ad91927d75ac5c1dd7575fc4458e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "650542f44a9ab99eca0f29efa7377eb0",
"_score": 1100.0,
"_source": {
"id": "650542f44a9ab99eca0f29efa7377eb0",
"autoIncrement": 33192.0
},
"fields": {
"displayGroup": [
"6bf959c2c5c6047b88f50161cafa22ff"
]
},
"sort": [
0,
1100.0,
0,
33192,
"650542f44a9ab99eca0f29efa7377eb0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "991b591a0d86410d10a248512094878c",
"_score": 1100.0,
"_source": {
"id": "991b591a0d86410d10a248512094878c",
"autoIncrement": 33191.0
},
"fields": {
"displayGroup": [
"aa90514dd44c727dd32eaea3ffeb1f67"
]
},
"sort": [
0,
1100.0,
0,
33191,
"991b591a0d86410d10a248512094878c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5276ea400d646f679815f633636a35cd",
"_score": 1100.0,
"_source": {
"id": "5276ea400d646f679815f633636a35cd",
"autoIncrement": 33190.0
},
"fields": {
"displayGroup": [
"b91a17a62c8f12600a18e18dcc5612cb"
]
},
"sort": [
0,
1100.0,
0,
33190,
"5276ea400d646f679815f633636a35cd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e08bf5d576913a412c2c85cdc938b503",
"_score": 1100.0,
"_source": {
"id": "e08bf5d576913a412c2c85cdc938b503",
"autoIncrement": 33189.0
},
"fields": {
"displayGroup": [
"209ae755cd7c679b02ef2e1f698174fd"
]
},
"sort": [
0,
1100.0,
0,
33189,
"e08bf5d576913a412c2c85cdc938b503"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "23e671b4c5722d92169e2a464652bcf6",
"_score": 1100.0,
"_source": {
"id": "23e671b4c5722d92169e2a464652bcf6",
"autoIncrement": 11261.0
},
"fields": {
"displayGroup": [
"5319b241426486d21a120e9b8d941388"
]
},
"sort": [
0,
1100.0,
0,
11261,
"23e671b4c5722d92169e2a464652bcf6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "22bd9937361a7d49f4f2fd33b0916659",
"_score": 1100.0,
"_source": {
"id": "22bd9937361a7d49f4f2fd33b0916659",
"autoIncrement": 11260.0
},
"fields": {
"displayGroup": [
"032855fa59da2dfb9102d4154c101db6"
]
},
"sort": [
0,
1100.0,
0,
11260,
"22bd9937361a7d49f4f2fd33b0916659"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1ea9b97077a01765088f87cc5a51b4b9",
"_score": 1100.0,
"_source": {
"id": "1ea9b97077a01765088f87cc5a51b4b9",
"autoIncrement": 11259.0
},
"fields": {
"displayGroup": [
"90936ac2d5dfea5ef9bb6032fc9c7e19"
]
},
"sort": [
0,
1100.0,
0,
11259,
"1ea9b97077a01765088f87cc5a51b4b9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "279c0a8a6256b802dca6960c70272b3f",
"_score": 1100.0,
"_source": {
"id": "279c0a8a6256b802dca6960c70272b3f",
"autoIncrement": 11258.0
},
"fields": {
"displayGroup": [
"fb566b319dc22c41d075f8fd5d7859bd"
]
},
"sort": [
0,
1100.0,
0,
11258,
"279c0a8a6256b802dca6960c70272b3f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d3a8d85a2ad3750f627b1af96cc8d966",
"_score": 1100.0,
"_source": {
"id": "d3a8d85a2ad3750f627b1af96cc8d966",
"autoIncrement": 11257.0
},
"fields": {
"displayGroup": [
"c872d5f41f9e0b44a9caa61ef522bd64"
]
},
"sort": [
0,
1100.0,
0,
11257,
"d3a8d85a2ad3750f627b1af96cc8d966"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ba4e3c73b1a07fa80b338e6f4ec9a0a3",
"_score": 1100.0,
"_source": {
"id": "ba4e3c73b1a07fa80b338e6f4ec9a0a3",
"autoIncrement": 11256.0
},
"fields": {
"displayGroup": [
"f0493f9e94f6900fdcb09b155f378a1c"
]
},
"sort": [
0,
1100.0,
0,
11256,
"ba4e3c73b1a07fa80b338e6f4ec9a0a3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c3b52d621b8a72c908f79b930cba69fb",
"_score": 1100.0,
"_source": {
"id": "c3b52d621b8a72c908f79b930cba69fb",
"autoIncrement": 11255.0
},
"fields": {
"displayGroup": [
"37447f85fe6f20acc977938613dd904f"
]
},
"sort": [
0,
1100.0,
0,
11255,
"c3b52d621b8a72c908f79b930cba69fb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ebbcd4efce20a1b2f0ad614194e4dc94",
"_score": 1100.0,
"_source": {
"id": "ebbcd4efce20a1b2f0ad614194e4dc94",
"autoIncrement": 11254.0
},
"fields": {
"displayGroup": [
"3c4a24785e9aa1e719af530efd1cd3f7"
]
},
"sort": [
0,
1100.0,
0,
11254,
"ebbcd4efce20a1b2f0ad614194e4dc94"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cf1579e2f3d1355230a7c15ee3edbec1",
"_score": 1100.0,
"_source": {
"id": "cf1579e2f3d1355230a7c15ee3edbec1",
"autoIncrement": 11253.0
},
"fields": {
"displayGroup": [
"fc21d0dc44fa9b5ee58af59c88eda812"
]
},
"sort": [
0,
1100.0,
0,
11253,
"cf1579e2f3d1355230a7c15ee3edbec1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4ca42bfc948ced9f712976e729c53a79",
"_score": 1100.0,
"_source": {
"id": "4ca42bfc948ced9f712976e729c53a79",
"autoIncrement": 11252.0
},
"fields": {
"displayGroup": [
"4de4a27ab1ea48c154cdee1fccee8dd7"
]
},
"sort": [
0,
1100.0,
0,
11252,
"4ca42bfc948ced9f712976e729c53a79"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4f575701b9b54cb04d158a2042d33021",
"_score": 1100.0,
"_source": {
"id": "4f575701b9b54cb04d158a2042d33021",
"autoIncrement": 11251.0
},
"fields": {
"displayGroup": [
"aef5dce654b53b16ac544e9e74048e5b"
]
},
"sort": [
0,
1100.0,
0,
11251,
"4f575701b9b54cb04d158a2042d33021"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "275437cbe04102a0ba47a831008f51b6",
"_score": 1100.0,
"_source": {
"id": "275437cbe04102a0ba47a831008f51b6",
"autoIncrement": 11250.0
},
"fields": {
"displayGroup": [
"76015d2ed17811c142580fed0f7c21b3"
]
},
"sort": [
0,
1100.0,
0,
11250,
"275437cbe04102a0ba47a831008f51b6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "50bef2d91a9d3d9e2f020400d394732d",
"_score": 1100.0,
"_source": {
"id": "50bef2d91a9d3d9e2f020400d394732d",
"autoIncrement": 11249.0
},
"fields": {
"displayGroup": [
"c7220e113894b6cd9b66f1b1e47c9621"
]
},
"sort": [
0,
1100.0,
0,
11249,
"50bef2d91a9d3d9e2f020400d394732d"
]
}
]
},
"aggregations": {
"total-count": {
"value": 137
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.44 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":"ab292a19eab14c106d2c9e81e71f86d5"}},{"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-farbeKorpus":{"composite":{"sources":[{"multi-farbeKorpus.sorting":{"terms":{"field":"attribute_farbeKorpus","order":"ASC"}}},{"multi-farbeKorpus.key":{"terms":{"field":"attribute_farbeKorpus"}}}],"size":"99999"}},"range-anzahlSchubladen":{"stats":{"field":"attribute_anzahlSchubladen"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbeFront":{"composite":{"sources":[{"multi-farbeFront.sorting":{"terms":{"field":"attribute_farbeFront","order":"ASC"}}},{"multi-farbeFront.key":{"terms":{"field":"attribute_farbeFront"}}}],"size":"99999"}},"multi-schlossausfuehrung":{"composite":{"sources":[{"multi-schlossausfuehrung.sorting":{"terms":{"field":"attribute_schlossausfuehrung","order":"ASC"}}},{"multi-schlossausfuehrung.key":{"terms":{"field":"attribute_schlossausfuehrung"}}}],"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": "ab292a19eab14c106d2c9e81e71f86d5"
}
},
{
"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-farbeKorpus": {
"composite": {
"sources": [
{
"multi-farbeKorpus.sorting": {
"terms": {
"field": "attribute_farbeKorpus",
"order": "ASC"
}
}
},
{
"multi-farbeKorpus.key": {
"terms": {
"field": "attribute_farbeKorpus"
}
}
}
],
"size": "99999"
}
},
"range-anzahlSchubladen": {
"stats": {
"field": "attribute_anzahlSchubladen"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbeFront": {
"composite": {
"sources": [
{
"multi-farbeFront.sorting": {
"terms": {
"field": "attribute_farbeFront",
"order": "ASC"
}
}
},
{
"multi-farbeFront.key": {
"terms": {
"field": "attribute_farbeFront"
}
}
}
],
"size": "99999"
}
},
"multi-schlossausfuehrung": {
"composite": {
"sources": [
{
"multi-schlossausfuehrung.sorting": {
"terms": {
"field": "attribute_schlossausfuehrung",
"order": "ASC"
}
}
},
{
"multi-schlossausfuehrung.key": {
"terms": {
"field": "attribute_schlossausfuehrung"
}
}
}
],
"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": 137,
"min": 207.0,
"max": 2372.0,
"avg": 946.4671532846716,
"sum": 129666.0
},
"rating-exists": {
"doc_count": 137,
"rating": {
"value": 0.0
}
},
"shipping-free-filter": {
"doc_count": 0,
"shipping-free": {
"value": null
}
},
"properties": {
"doc_count": 0,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"options": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"manufacturer-count-filter": {
"after_key": {
"manufacturer-count-filter.sorting": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "5267ee69add37a0408db89f9cd30c57f",
"manufacturer-count-filter.key": "5267ee69add37a0408db89f9cd30c57f"
},
"doc_count": 87
},
{
"key": {
"manufacturer-count-filter.sorting": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"doc_count": 50
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"width": {
"count": 137,
"min": 680.0,
"max": 1130.0,
"avg": 860.7299270072992,
"sum": 117920.0
},
"width-stats": {
"doc_count": 137,
"width-stats": {
"count": 137,
"min": 680.0,
"max": 1130.0,
"avg": 860.7299270072992,
"sum": 117920.0
}
},
"height": {
"count": 137,
"min": 820.0,
"max": 2150.0,
"avg": 1853.7956204379561,
"sum": 253970.0
},
"height-stats": {
"doc_count": 137,
"height-stats": {
"count": 137,
"min": 820.0,
"max": 2150.0,
"avg": 1853.7956204379561,
"sum": 253970.0
}
},
"tiefe": {
"count": 137,
"min": 280.0,
"max": 590.0,
"avg": 385.54744525547443,
"sum": 52820.0
},
"multi-farbeKorpus": {
"after_key": {
"multi-farbeKorpus.sorting": "RAL 7035 Lichtgrau",
"multi-farbeKorpus.key": "RAL 7035 Lichtgrau"
},
"buckets": [
{
"key": {
"multi-farbeKorpus.sorting": "RAL 5007 Brillantblau",
"multi-farbeKorpus.key": "RAL 5007 Brillantblau"
},
"doc_count": 25
},
{
"key": {
"multi-farbeKorpus.sorting": "RAL 6011 Resedagr\u00fcn",
"multi-farbeKorpus.key": "RAL 6011 Resedagr\u00fcn"
},
"doc_count": 31
},
{
"key": {
"multi-farbeKorpus.sorting": "RAL 7035 Lichtgrau",
"multi-farbeKorpus.key": "RAL 7035 Lichtgrau"
},
"doc_count": 81
}
]
},
"range-anzahlSchubladen": {
"count": 14,
"min": 1.0,
"max": 4.0,
"avg": 2.5714285714285716,
"sum": 36.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Schr\u00e4nke mit K\u00e4sten",
"multi-typModel.key": "Schr\u00e4nke mit K\u00e4sten"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Materialschr\u00e4nke",
"multi-typModel.key": "Materialschr\u00e4nke"
},
"doc_count": 30
},
{
"key": {
"multi-typModel.sorting": "Schr\u00e4nke mit K\u00e4sten",
"multi-typModel.key": "Schr\u00e4nke mit K\u00e4sten"
},
"doc_count": 107
}
]
},
"multi-farbeFront": {
"after_key": {
"multi-farbeFront.sorting": "RAL\u00a07035 Lichtgrau",
"multi-farbeFront.key": "RAL\u00a07035 Lichtgrau"
},
"buckets": [
{
"key": {
"multi-farbeFront.sorting": "RAL 5007 Brillantblau",
"multi-farbeFront.key": "RAL 5007 Brillantblau"
},
"doc_count": 25
},
{
"key": {
"multi-farbeFront.sorting": "RAL 6011 Resedagr\u00fcn",
"multi-farbeFront.key": "RAL 6011 Resedagr\u00fcn"
},
"doc_count": 31
},
{
"key": {
"multi-farbeFront.sorting": "RAL\u00a07035 Lichtgrau",
"multi-farbeFront.key": "RAL\u00a07035 Lichtgrau"
},
"doc_count": 81
}
]
},
"multi-schlossausfuehrung": {
"after_key": {
"multi-schlossausfuehrung.sorting": "Zylinderschloss",
"multi-schlossausfuehrung.key": "Zylinderschloss"
},
"buckets": [
{
"key": {
"multi-schlossausfuehrung.sorting": "Zylinderschloss",
"multi-schlossausfuehrung.key": "Zylinderschloss"
},
"doc_count": 95
}
]
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "9 St\u00fcck",
"multi-anzahlFachboeden.key": "9 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "1 St\u00fcck",
"multi-anzahlFachboeden.key": "1 St\u00fcck"
},
"doc_count": 2
},
{
"key": {
"multi-anzahlFachboeden.sorting": "11 St\u00fcck",
"multi-anzahlFachboeden.key": "11 St\u00fcck"
},
"doc_count": 11
},
{
"key": {
"multi-anzahlFachboeden.sorting": "12 St\u00fcck",
"multi-anzahlFachboeden.key": "12 St\u00fcck"
},
"doc_count": 6
},
{
"key": {
"multi-anzahlFachboeden.sorting": "14 St\u00fcck",
"multi-anzahlFachboeden.key": "14 St\u00fcck"
},
"doc_count": 7
},
{
"key": {
"multi-anzahlFachboeden.sorting": "15 St\u00fcck",
"multi-anzahlFachboeden.key": "15 St\u00fcck"
},
"doc_count": 8
},
{
"key": {
"multi-anzahlFachboeden.sorting": "18 St\u00fcck",
"multi-anzahlFachboeden.key": "18 St\u00fcck"
},
"doc_count": 8
},
{
"key": {
"multi-anzahlFachboeden.sorting": "4 St\u00fcck",
"multi-anzahlFachboeden.key": "4 St\u00fcck"
},
"doc_count": 5
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 6
},
{
"key": {
"multi-anzahlFachboeden.sorting": "6 St\u00fcck",
"multi-anzahlFachboeden.key": "6 St\u00fcck"
},
"doc_count": 24
},
{
"key": {
"multi-anzahlFachboeden.sorting": "7 St\u00fcck",
"multi-anzahlFachboeden.key": "7 St\u00fcck"
},
"doc_count": 10
},
{
"key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"doc_count": 10
},
{
"key": {
"multi-anzahlFachboeden.sorting": "9 St\u00fcck",
"multi-anzahlFachboeden.key": "9 St\u00fcck"
},
"doc_count": 17
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 87
},
{
"key": "e92077b923fe7f60b3b5ea31cceb8c2a",
"doc_count": 50
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|