| 1 |
16.94 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":192,"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": "e8fb221518eaf13794ef8912eea8c1a8",
"_score": 1100.0,
"_source": {
"id": "e8fb221518eaf13794ef8912eea8c1a8",
"autoIncrement": 114815.0
},
"fields": {
"displayGroup": [
"8eda16d30feb9009438c691da8e710be"
]
},
"sort": [
0,
1100.0,
0,
114815,
"e8fb221518eaf13794ef8912eea8c1a8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5e3b15655c2b581d42edcdcfe4ad656a",
"_score": 1100.0,
"_source": {
"id": "5e3b15655c2b581d42edcdcfe4ad656a",
"autoIncrement": 114814.0
},
"fields": {
"displayGroup": [
"6c26be72749bac76c28d476f06b16529"
]
},
"sort": [
0,
1100.0,
0,
114814,
"5e3b15655c2b581d42edcdcfe4ad656a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2730e3745665cb6b5925734bc2891a74",
"_score": 1100.0,
"_source": {
"id": "2730e3745665cb6b5925734bc2891a74",
"autoIncrement": 114813.0
},
"fields": {
"displayGroup": [
"52e6a210ffede3efca7ed3f205d2f106"
]
},
"sort": [
0,
1100.0,
0,
114813,
"2730e3745665cb6b5925734bc2891a74"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "738f324539714a29ea79061734dafa01",
"_score": 1100.0,
"_source": {
"id": "738f324539714a29ea79061734dafa01",
"autoIncrement": 114812.0
},
"fields": {
"displayGroup": [
"6fa48c3fb617144d209dc4488c0782c5"
]
},
"sort": [
0,
1100.0,
0,
114812,
"738f324539714a29ea79061734dafa01"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2255e069858c8f7628e66b13dcfb0a92",
"_score": 1100.0,
"_source": {
"id": "2255e069858c8f7628e66b13dcfb0a92",
"autoIncrement": 114811.0
},
"fields": {
"displayGroup": [
"6281fd27d85cc7f699818307f5f1a5d0"
]
},
"sort": [
0,
1100.0,
0,
114811,
"2255e069858c8f7628e66b13dcfb0a92"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "707bb5c05cd036cd3bba0bf05ddc5f2e",
"_score": 1100.0,
"_source": {
"id": "707bb5c05cd036cd3bba0bf05ddc5f2e",
"autoIncrement": 114810.0
},
"fields": {
"displayGroup": [
"a986dd3e7a0c8cc8b9814caaf48cc362"
]
},
"sort": [
0,
1100.0,
0,
114810,
"707bb5c05cd036cd3bba0bf05ddc5f2e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "88dd7b9439e06743d813f11c08cd925e",
"_score": 1100.0,
"_source": {
"id": "88dd7b9439e06743d813f11c08cd925e",
"autoIncrement": 114809.0
},
"fields": {
"displayGroup": [
"c245cb54932783ffeee499a9750aaadc"
]
},
"sort": [
0,
1100.0,
0,
114809,
"88dd7b9439e06743d813f11c08cd925e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a0abd1ce427e68feb1c05b773f1d6f3d",
"_score": 1100.0,
"_source": {
"id": "a0abd1ce427e68feb1c05b773f1d6f3d",
"autoIncrement": 114808.0
},
"fields": {
"displayGroup": [
"26aeaeb229997f6c08a55fe9ef7b2a43"
]
},
"sort": [
0,
1100.0,
0,
114808,
"a0abd1ce427e68feb1c05b773f1d6f3d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d96bd67a5847b066a5390ccca954893d",
"_score": 1100.0,
"_source": {
"id": "d96bd67a5847b066a5390ccca954893d",
"autoIncrement": 114807.0
},
"fields": {
"displayGroup": [
"5f77fbed12cc48a6973230cac3dc0c5a"
]
},
"sort": [
0,
1100.0,
0,
114807,
"d96bd67a5847b066a5390ccca954893d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c1504277eaaab3473f57771dd1f9b367",
"_score": 1100.0,
"_source": {
"id": "c1504277eaaab3473f57771dd1f9b367",
"autoIncrement": 114806.0
},
"fields": {
"displayGroup": [
"e203b51baf2cd861bdcbfe88bfe25cc4"
]
},
"sort": [
0,
1100.0,
0,
114806,
"c1504277eaaab3473f57771dd1f9b367"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b549222c82f899d987a0ff4a446e4606",
"_score": 1100.0,
"_source": {
"id": "b549222c82f899d987a0ff4a446e4606",
"autoIncrement": 114805.0
},
"fields": {
"displayGroup": [
"bf926368ab25b21231e51ce6a950baea"
]
},
"sort": [
0,
1100.0,
0,
114805,
"b549222c82f899d987a0ff4a446e4606"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a322408e85b64ec82d4534003073fc16",
"_score": 1100.0,
"_source": {
"id": "a322408e85b64ec82d4534003073fc16",
"autoIncrement": 114804.0
},
"fields": {
"displayGroup": [
"3af9613429e7c6793db51e1792429962"
]
},
"sort": [
0,
1100.0,
0,
114804,
"a322408e85b64ec82d4534003073fc16"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "403a399cb253a2014e7ddeef22ed14d6",
"_score": 1100.0,
"_source": {
"id": "403a399cb253a2014e7ddeef22ed14d6",
"autoIncrement": 114803.0
},
"fields": {
"displayGroup": [
"c8337536ab41f35ed8a56576cefe9c68"
]
},
"sort": [
0,
1100.0,
0,
114803,
"403a399cb253a2014e7ddeef22ed14d6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "078924d61dc40bb020620da5ac9e305e",
"_score": 1100.0,
"_source": {
"id": "078924d61dc40bb020620da5ac9e305e",
"autoIncrement": 114802.0
},
"fields": {
"displayGroup": [
"c8707afb1d3913dc3275e3cfc54bbe6b"
]
},
"sort": [
0,
1100.0,
0,
114802,
"078924d61dc40bb020620da5ac9e305e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "051378a8cb89e397de1478b6ea3c28f8",
"_score": 1100.0,
"_source": {
"id": "051378a8cb89e397de1478b6ea3c28f8",
"autoIncrement": 114801.0
},
"fields": {
"displayGroup": [
"2b33466de4eb60d6f602cde24f1d91cb"
]
},
"sort": [
0,
1100.0,
0,
114801,
"051378a8cb89e397de1478b6ea3c28f8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4468d74e8d365e1de754cad140801cf2",
"_score": 1100.0,
"_source": {
"id": "4468d74e8d365e1de754cad140801cf2",
"autoIncrement": 114800.0
},
"fields": {
"displayGroup": [
"7cc89a44b342f2bb6c9aa6e2de9367c9"
]
},
"sort": [
0,
1100.0,
0,
114800,
"4468d74e8d365e1de754cad140801cf2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "40563ddbd4b4031f17dac18fb2a8e1ef",
"_score": 1100.0,
"_source": {
"id": "40563ddbd4b4031f17dac18fb2a8e1ef",
"autoIncrement": 114799.0
},
"fields": {
"displayGroup": [
"6334a4e23fcf36f2ea8b9c488c81a5f5"
]
},
"sort": [
0,
1100.0,
0,
114799,
"40563ddbd4b4031f17dac18fb2a8e1ef"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1481c4ced6fd7a0cabb0e93faca768f0",
"_score": 1100.0,
"_source": {
"id": "1481c4ced6fd7a0cabb0e93faca768f0",
"autoIncrement": 114798.0
},
"fields": {
"displayGroup": [
"45166955128bfe3f9a8cf00ded151034"
]
},
"sort": [
0,
1100.0,
0,
114798,
"1481c4ced6fd7a0cabb0e93faca768f0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c2b56a7eedb4ef63be1f5c5a0bba0872",
"_score": 1100.0,
"_source": {
"id": "c2b56a7eedb4ef63be1f5c5a0bba0872",
"autoIncrement": 114795.0
},
"fields": {
"displayGroup": [
"c5ce0c2560246be8cac67ac854929acf"
]
},
"sort": [
0,
1100.0,
0,
114795,
"c2b56a7eedb4ef63be1f5c5a0bba0872"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "11eca4a79324ac28b642638f850d6af4",
"_score": 1100.0,
"_source": {
"id": "11eca4a79324ac28b642638f850d6af4",
"autoIncrement": 114794.0
},
"fields": {
"displayGroup": [
"391cd05c4720b518e7dffd98331bb2cc"
]
},
"sort": [
0,
1100.0,
0,
114794,
"11eca4a79324ac28b642638f850d6af4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0e98f1ac6967df098d0918f6d7860b57",
"_score": 1100.0,
"_source": {
"id": "0e98f1ac6967df098d0918f6d7860b57",
"autoIncrement": 114793.0
},
"fields": {
"displayGroup": [
"badead4fe7928a9c2f64dee4b9c923a5"
]
},
"sort": [
0,
1100.0,
0,
114793,
"0e98f1ac6967df098d0918f6d7860b57"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6b3f6687af31a3d42dc16676fa9f901b",
"_score": 1100.0,
"_source": {
"id": "6b3f6687af31a3d42dc16676fa9f901b",
"autoIncrement": 114792.0
},
"fields": {
"displayGroup": [
"d6d40806169ab6a836197bc64dd552c9"
]
},
"sort": [
0,
1100.0,
0,
114792,
"6b3f6687af31a3d42dc16676fa9f901b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4d4a0057bfed0c1384cb0198b84eb7c2",
"_score": 1100.0,
"_source": {
"id": "4d4a0057bfed0c1384cb0198b84eb7c2",
"autoIncrement": 114791.0
},
"fields": {
"displayGroup": [
"98c6f2a36839949d2eea2607b95cb0ec"
]
},
"sort": [
0,
1100.0,
0,
114791,
"4d4a0057bfed0c1384cb0198b84eb7c2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "818468811de38c0460e6d5c60b97af47",
"_score": 1100.0,
"_source": {
"id": "818468811de38c0460e6d5c60b97af47",
"autoIncrement": 114790.0
},
"fields": {
"displayGroup": [
"08da26a25aed242e332ed026244adbd6"
]
},
"sort": [
0,
1100.0,
0,
114790,
"818468811de38c0460e6d5c60b97af47"
]
}
]
},
"aggregations": {
"total-count": {
"value": 376
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.42 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
|