| 1 |
15.23 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":216,"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": "40efee7c9871fb79f106a86a7695c662",
"_score": 100.0,
"_source": {
"id": "40efee7c9871fb79f106a86a7695c662",
"autoIncrement": 99875.0
},
"fields": {
"displayGroup": [
"c6d18732c82ccc11c58149a830cdca06"
]
},
"sort": [
0,
100.0,
0,
99875,
"40efee7c9871fb79f106a86a7695c662"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ed30687d4e0629f7caf6426bc8c4c4b2",
"_score": 100.0,
"_source": {
"id": "ed30687d4e0629f7caf6426bc8c4c4b2",
"autoIncrement": 99874.0
},
"fields": {
"displayGroup": [
"cf95a4a606378577c76d35c360013f8f"
]
},
"sort": [
0,
100.0,
0,
99874,
"ed30687d4e0629f7caf6426bc8c4c4b2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4cfaebb322040bf98e68b84ce39275a4",
"_score": 100.0,
"_source": {
"id": "4cfaebb322040bf98e68b84ce39275a4",
"autoIncrement": 99872.0
},
"fields": {
"displayGroup": [
"3528106c48325136402025854f12fddb"
]
},
"sort": [
0,
100.0,
0,
99872,
"4cfaebb322040bf98e68b84ce39275a4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c419f89e8405aaea845c43f5c563901c",
"_score": 100.0,
"_source": {
"id": "c419f89e8405aaea845c43f5c563901c",
"autoIncrement": 99870.0
},
"fields": {
"displayGroup": [
"05d41964a6ebceb2072571d93473e7b4"
]
},
"sort": [
0,
100.0,
0,
99870,
"c419f89e8405aaea845c43f5c563901c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e10034cdd22010b929d0f1b94f68de0a",
"_score": 100.0,
"_source": {
"id": "e10034cdd22010b929d0f1b94f68de0a",
"autoIncrement": 99869.0
},
"fields": {
"displayGroup": [
"75ee8f8ac629fcdc78f7e314f5702501"
]
},
"sort": [
0,
100.0,
0,
99869,
"e10034cdd22010b929d0f1b94f68de0a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2183d079f146f9f5093d31e373f303b7",
"_score": 100.0,
"_source": {
"id": "2183d079f146f9f5093d31e373f303b7",
"autoIncrement": 98471.0
},
"fields": {
"displayGroup": [
"d7d947150be19fc7fe73c570ca43cf14"
]
},
"sort": [
0,
100.0,
0,
98471,
"2183d079f146f9f5093d31e373f303b7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ead89490f2ecf8c26d7f7081e911939b",
"_score": 100.0,
"_source": {
"id": "ead89490f2ecf8c26d7f7081e911939b",
"autoIncrement": 98470.0
},
"fields": {
"displayGroup": [
"e304f279c8ffd15bf620c84972074385"
]
},
"sort": [
0,
100.0,
0,
98470,
"ead89490f2ecf8c26d7f7081e911939b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1ba9303984c639c6793911ade27e0509",
"_score": 100.0,
"_source": {
"id": "1ba9303984c639c6793911ade27e0509",
"autoIncrement": 98469.0
},
"fields": {
"displayGroup": [
"c6fdfeed2363c5429bd69f702cb84d2b"
]
},
"sort": [
0,
100.0,
0,
98469,
"1ba9303984c639c6793911ade27e0509"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a4a6dd9851633825cb87df57c92fc41e",
"_score": 100.0,
"_source": {
"id": "a4a6dd9851633825cb87df57c92fc41e",
"autoIncrement": 98468.0
},
"fields": {
"displayGroup": [
"fe9d28acd1b562471a0b4d17186059c3"
]
},
"sort": [
0,
100.0,
0,
98468,
"a4a6dd9851633825cb87df57c92fc41e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1b3949f2faf8612597576931211d49fb",
"_score": 100.0,
"_source": {
"id": "1b3949f2faf8612597576931211d49fb",
"autoIncrement": 98467.0
},
"fields": {
"displayGroup": [
"2a0777c28e472ae08f7bc015e9b38b9a"
]
},
"sort": [
0,
100.0,
0,
98467,
"1b3949f2faf8612597576931211d49fb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3552fa527c81c64c7b81e323bc70782b",
"_score": 100.0,
"_source": {
"id": "3552fa527c81c64c7b81e323bc70782b",
"autoIncrement": 98466.0
},
"fields": {
"displayGroup": [
"3283411f8d173ab3e9a1bedd1a5ae72e"
]
},
"sort": [
0,
100.0,
0,
98466,
"3552fa527c81c64c7b81e323bc70782b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "70872f5c8f4feaedd811c57dce5c82b3",
"_score": 100.0,
"_source": {
"id": "70872f5c8f4feaedd811c57dce5c82b3",
"autoIncrement": 98465.0
},
"fields": {
"displayGroup": [
"6df45bac914a6da7f316efbff0af73a9"
]
},
"sort": [
0,
100.0,
0,
98465,
"70872f5c8f4feaedd811c57dce5c82b3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "33009b5e04929cf09099d6a4e0fcee47",
"_score": 100.0,
"_source": {
"id": "33009b5e04929cf09099d6a4e0fcee47",
"autoIncrement": 98464.0
},
"fields": {
"displayGroup": [
"ff1b72b9fbf2e4aabfb64e243bcf27a6"
]
},
"sort": [
0,
100.0,
0,
98464,
"33009b5e04929cf09099d6a4e0fcee47"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "65a6c3b04e923141c4207065941003b2",
"_score": 100.0,
"_source": {
"id": "65a6c3b04e923141c4207065941003b2",
"autoIncrement": 98463.0
},
"fields": {
"displayGroup": [
"81d244148d104c45ca298fe029bf329e"
]
},
"sort": [
0,
100.0,
0,
98463,
"65a6c3b04e923141c4207065941003b2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "af473b0afc36ccbce72bbb1a3f63059f",
"_score": 100.0,
"_source": {
"id": "af473b0afc36ccbce72bbb1a3f63059f",
"autoIncrement": 98462.0
},
"fields": {
"displayGroup": [
"e59ec5987bcee22b9c7734f599d52f0f"
]
},
"sort": [
0,
100.0,
0,
98462,
"af473b0afc36ccbce72bbb1a3f63059f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d42e7cc7e8c6083fd32de2b0681ec022",
"_score": 100.0,
"_source": {
"id": "d42e7cc7e8c6083fd32de2b0681ec022",
"autoIncrement": 98461.0
},
"fields": {
"displayGroup": [
"08f76cdccfd7a0412850de13d3e7df81"
]
},
"sort": [
0,
100.0,
0,
98461,
"d42e7cc7e8c6083fd32de2b0681ec022"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "db3326222adae83db71c6323dc0f721e",
"_score": 100.0,
"_source": {
"id": "db3326222adae83db71c6323dc0f721e",
"autoIncrement": 98460.0
},
"fields": {
"displayGroup": [
"2995cb10ebeb3b5c9204d14852acac7d"
]
},
"sort": [
0,
100.0,
0,
98460,
"db3326222adae83db71c6323dc0f721e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "50ef42e2e86fc7659de7d99cdd979aef",
"_score": 100.0,
"_source": {
"id": "50ef42e2e86fc7659de7d99cdd979aef",
"autoIncrement": 98459.0
},
"fields": {
"displayGroup": [
"8a19bc3c3362ecf1b6ef443f72e40584"
]
},
"sort": [
0,
100.0,
0,
98459,
"50ef42e2e86fc7659de7d99cdd979aef"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b0a8fe7c2bb7f996af7dd5a2c3a81f53",
"_score": 100.0,
"_source": {
"id": "b0a8fe7c2bb7f996af7dd5a2c3a81f53",
"autoIncrement": 98458.0
},
"fields": {
"displayGroup": [
"7ef9081ac8bd3ffff5e0f0c7708c448e"
]
},
"sort": [
0,
100.0,
0,
98458,
"b0a8fe7c2bb7f996af7dd5a2c3a81f53"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4a47048287d2ec17fd27746ffb97a62e",
"_score": 100.0,
"_source": {
"id": "4a47048287d2ec17fd27746ffb97a62e",
"autoIncrement": 98457.0
},
"fields": {
"displayGroup": [
"24dd9f5b8a763ac0d0d71b95cb97f366"
]
},
"sort": [
0,
100.0,
0,
98457,
"4a47048287d2ec17fd27746ffb97a62e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7ef5fc3cf06563f09ee2de9e962a40dd",
"_score": 100.0,
"_source": {
"id": "7ef5fc3cf06563f09ee2de9e962a40dd",
"autoIncrement": 98456.0
},
"fields": {
"displayGroup": [
"815e5a7ec543b085cfa360faabe77142"
]
},
"sort": [
0,
100.0,
0,
98456,
"7ef5fc3cf06563f09ee2de9e962a40dd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f4bf3c094a3c56abab45aae733de09ea",
"_score": 100.0,
"_source": {
"id": "f4bf3c094a3c56abab45aae733de09ea",
"autoIncrement": 98455.0
},
"fields": {
"displayGroup": [
"ea3f488cffd05fe28f72519e3ab746d0"
]
},
"sort": [
0,
100.0,
0,
98455,
"f4bf3c094a3c56abab45aae733de09ea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "57d5e713c8e6323e8759b3d801a5175c",
"_score": 100.0,
"_source": {
"id": "57d5e713c8e6323e8759b3d801a5175c",
"autoIncrement": 98453.0
},
"fields": {
"displayGroup": [
"9353f45120769ade8219bb9837aa360a"
]
},
"sort": [
0,
100.0,
0,
98453,
"57d5e713c8e6323e8759b3d801a5175c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b351cbdfcd0a13185dda4e0a9ac095fb",
"_score": 100.0,
"_source": {
"id": "b351cbdfcd0a13185dda4e0a9ac095fb",
"autoIncrement": 98451.0
},
"fields": {
"displayGroup": [
"7152789ee0447ecac96d732404b85fd2"
]
},
"sort": [
0,
100.0,
0,
98451,
"b351cbdfcd0a13185dda4e0a9ac095fb"
]
}
]
},
"aggregations": {
"total-count": {
"value": 247
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.18 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
|