| 1 |
22.56 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":"967f4db57b7eb644abf129821c6a9671"}},{"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":288,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 9,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1223,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "fed907338f35709e28b68ccf28e8f57b",
"_score": 1350.0,
"_source": {
"id": "fed907338f35709e28b68ccf28e8f57b",
"autoIncrement": 148599.0
},
"fields": {
"displayGroup": [
"6de7952ba57857f89d0b3d084be5dde1"
]
},
"sort": [
0,
1350.0,
0,
148599,
"fed907338f35709e28b68ccf28e8f57b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "755e9b4aefb9143dfbd1f7ed8997249f",
"_score": 1350.0,
"_source": {
"id": "755e9b4aefb9143dfbd1f7ed8997249f",
"autoIncrement": 148598.0
},
"fields": {
"displayGroup": [
"cb0ef06528796a3d119e4054e1753789"
]
},
"sort": [
0,
1350.0,
0,
148598,
"755e9b4aefb9143dfbd1f7ed8997249f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "09fbd0e9a4dda2f0080c657f7c4f945f",
"_score": 1350.0,
"_source": {
"id": "09fbd0e9a4dda2f0080c657f7c4f945f",
"autoIncrement": 148597.0
},
"fields": {
"displayGroup": [
"95fcd56654674013fea73691d71625a5"
]
},
"sort": [
0,
1350.0,
0,
148597,
"09fbd0e9a4dda2f0080c657f7c4f945f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "58699e7d09d645f51cc6912d86089db1",
"_score": 1350.0,
"_source": {
"id": "58699e7d09d645f51cc6912d86089db1",
"autoIncrement": 148596.0
},
"fields": {
"displayGroup": [
"23ca5e5176669646017d5d58328ac976"
]
},
"sort": [
0,
1350.0,
0,
148596,
"58699e7d09d645f51cc6912d86089db1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ded929837ef64807492f3fafb230905b",
"_score": 1350.0,
"_source": {
"id": "ded929837ef64807492f3fafb230905b",
"autoIncrement": 148595.0
},
"fields": {
"displayGroup": [
"41e1ac2f5030b20a18dfb0afad7ca541"
]
},
"sort": [
0,
1350.0,
0,
148595,
"ded929837ef64807492f3fafb230905b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "250b64e7c0c5d85d1e0de098265a7ae1",
"_score": 1350.0,
"_source": {
"id": "250b64e7c0c5d85d1e0de098265a7ae1",
"autoIncrement": 148594.0
},
"fields": {
"displayGroup": [
"a70b11754ced824fae40bca45fe4e81f"
]
},
"sort": [
0,
1350.0,
0,
148594,
"250b64e7c0c5d85d1e0de098265a7ae1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "559f83eef26162f44f9cf0ff5b4f4187",
"_score": 1350.0,
"_source": {
"id": "559f83eef26162f44f9cf0ff5b4f4187",
"autoIncrement": 148593.0
},
"fields": {
"displayGroup": [
"494cf93739f41b649241409773424e9a"
]
},
"sort": [
0,
1350.0,
0,
148593,
"559f83eef26162f44f9cf0ff5b4f4187"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "147273f52760c74afd3b133b348cd228",
"_score": 1350.0,
"_source": {
"id": "147273f52760c74afd3b133b348cd228",
"autoIncrement": 148592.0
},
"fields": {
"displayGroup": [
"61bbab19db513636cb8b8fc60812e065"
]
},
"sort": [
0,
1350.0,
0,
148592,
"147273f52760c74afd3b133b348cd228"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2ad2c7d8d3e3c1231b63bb2851742c68",
"_score": 1350.0,
"_source": {
"id": "2ad2c7d8d3e3c1231b63bb2851742c68",
"autoIncrement": 148591.0
},
"fields": {
"displayGroup": [
"4b5ce54b1ae7e71710d1174b8e5f823e"
]
},
"sort": [
0,
1350.0,
0,
148591,
"2ad2c7d8d3e3c1231b63bb2851742c68"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fa84a8724dc85969b29b801f00aea5e3",
"_score": 1350.0,
"_source": {
"id": "fa84a8724dc85969b29b801f00aea5e3",
"autoIncrement": 148590.0
},
"fields": {
"displayGroup": [
"336a7aad5704aa8c061ad71541ce2b41"
]
},
"sort": [
0,
1350.0,
0,
148590,
"fa84a8724dc85969b29b801f00aea5e3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a70b5500a3f8dbc80b1f52a64e4e2401",
"_score": 1350.0,
"_source": {
"id": "a70b5500a3f8dbc80b1f52a64e4e2401",
"autoIncrement": 148589.0
},
"fields": {
"displayGroup": [
"01460a7c976f74e6a3210a9c4cb72cf9"
]
},
"sort": [
0,
1350.0,
0,
148589,
"a70b5500a3f8dbc80b1f52a64e4e2401"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "732547168b2ec87ae22b9ab353cdf987",
"_score": 1350.0,
"_source": {
"id": "732547168b2ec87ae22b9ab353cdf987",
"autoIncrement": 148588.0
},
"fields": {
"displayGroup": [
"ae7d1930d4b6e884f2c6465f438cc43c"
]
},
"sort": [
0,
1350.0,
0,
148588,
"732547168b2ec87ae22b9ab353cdf987"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4bfc3e98f9b84ee813ff4120e118bf44",
"_score": 1350.0,
"_source": {
"id": "4bfc3e98f9b84ee813ff4120e118bf44",
"autoIncrement": 148587.0
},
"fields": {
"displayGroup": [
"31c55c38e9af1c92c42b72d095d3b390"
]
},
"sort": [
0,
1350.0,
0,
148587,
"4bfc3e98f9b84ee813ff4120e118bf44"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cf050c5c88ddeef872714a803cd5f42f",
"_score": 1350.0,
"_source": {
"id": "cf050c5c88ddeef872714a803cd5f42f",
"autoIncrement": 148586.0
},
"fields": {
"displayGroup": [
"109d449359a75dc1439b476ddc9cb73e"
]
},
"sort": [
0,
1350.0,
0,
148586,
"cf050c5c88ddeef872714a803cd5f42f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "699b035360e45a4086cee548d9da4575",
"_score": 1350.0,
"_source": {
"id": "699b035360e45a4086cee548d9da4575",
"autoIncrement": 148585.0
},
"fields": {
"displayGroup": [
"2d787ba103bd6ed43082d4d87af76783"
]
},
"sort": [
0,
1350.0,
0,
148585,
"699b035360e45a4086cee548d9da4575"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6f410035b733151508b4c0c2c45a64ee",
"_score": 1350.0,
"_source": {
"id": "6f410035b733151508b4c0c2c45a64ee",
"autoIncrement": 148584.0
},
"fields": {
"displayGroup": [
"8aac4703e72048b809f2d46166679d8e"
]
},
"sort": [
0,
1350.0,
0,
148584,
"6f410035b733151508b4c0c2c45a64ee"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ad69b34de92ba48dd179f6ff57c117ab",
"_score": 1350.0,
"_source": {
"id": "ad69b34de92ba48dd179f6ff57c117ab",
"autoIncrement": 148583.0
},
"fields": {
"displayGroup": [
"48ecafcecf489b81f88310a8b89ce564"
]
},
"sort": [
0,
1350.0,
0,
148583,
"ad69b34de92ba48dd179f6ff57c117ab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7651106430cccc845f795a67da9e926b",
"_score": 1350.0,
"_source": {
"id": "7651106430cccc845f795a67da9e926b",
"autoIncrement": 148582.0
},
"fields": {
"displayGroup": [
"e7402d55d6a7185c6cb9532353b379bb"
]
},
"sort": [
0,
1350.0,
0,
148582,
"7651106430cccc845f795a67da9e926b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a9921ce0dbe0bc8e76b725451a8961ef",
"_score": 1350.0,
"_source": {
"id": "a9921ce0dbe0bc8e76b725451a8961ef",
"autoIncrement": 148581.0
},
"fields": {
"displayGroup": [
"705cd923a6e945a0ca0b981f65656ab6"
]
},
"sort": [
0,
1350.0,
0,
148581,
"a9921ce0dbe0bc8e76b725451a8961ef"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b4c84398cc6288172772e7935ce655f6",
"_score": 1350.0,
"_source": {
"id": "b4c84398cc6288172772e7935ce655f6",
"autoIncrement": 148580.0
},
"fields": {
"displayGroup": [
"07b02d27adb7f9e9e132475306d55b75"
]
},
"sort": [
0,
1350.0,
0,
148580,
"b4c84398cc6288172772e7935ce655f6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2c5f0f0fa64aecd83020fe169460bc82",
"_score": 1350.0,
"_source": {
"id": "2c5f0f0fa64aecd83020fe169460bc82",
"autoIncrement": 148579.0
},
"fields": {
"displayGroup": [
"3cdaaf53b6787e34deee9c08875e0c29"
]
},
"sort": [
0,
1350.0,
0,
148579,
"2c5f0f0fa64aecd83020fe169460bc82"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0e4f8c65011a613d309b5dd7d04f76b6",
"_score": 1350.0,
"_source": {
"id": "0e4f8c65011a613d309b5dd7d04f76b6",
"autoIncrement": 148578.0
},
"fields": {
"displayGroup": [
"3eccd84d82b6defda11cb214966a013e"
]
},
"sort": [
0,
1350.0,
0,
148578,
"0e4f8c65011a613d309b5dd7d04f76b6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "45ef2e09e04570a345e7a76376996778",
"_score": 1350.0,
"_source": {
"id": "45ef2e09e04570a345e7a76376996778",
"autoIncrement": 148577.0
},
"fields": {
"displayGroup": [
"b4d6dfb7b09b325008ecbcda15e509e7"
]
},
"sort": [
0,
1350.0,
0,
148577,
"45ef2e09e04570a345e7a76376996778"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1d90d1dea6a0823ab73d97005df61964",
"_score": 1350.0,
"_source": {
"id": "1d90d1dea6a0823ab73d97005df61964",
"autoIncrement": 148576.0
},
"fields": {
"displayGroup": [
"df54d902fd5fff88ca127247af7f817e"
]
},
"sort": [
0,
1350.0,
0,
148576,
"1d90d1dea6a0823ab73d97005df61964"
]
}
]
},
"aggregations": {
"total-count": {
"value": 1222
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.24 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":"967f4db57b7eb644abf129821c6a9671"}},{"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"}},"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"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": "967f4db57b7eb644abf129821c6a9671"
}
},
{
"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"
}
},
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"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": 1223,
"min": 2.0,
"max": 15416.0,
"avg": 2417.2010629599345,
"sum": 2956236.9
},
"rating-exists": {
"doc_count": 1223,
"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": 1181
}
]
},
"bool-reduced": {
"doc_count": 4,
"bool-reduced": {
"value": 4
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Palettenregale",
"multi-typModel.key": "Zubeh\u00f6r Palettenregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Auffangwannen",
"multi-typModel.key": "Auffangwannen"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Anbaufeld",
"multi-typModel.key": "Palettenregal Anbaufeld"
},
"doc_count": 84
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Auflagetr\u00e4ger",
"multi-typModel.key": "Palettenregal Auflagetr\u00e4ger"
},
"doc_count": 12
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Befestigungen",
"multi-typModel.key": "Palettenregal Befestigungen"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Distanzst\u00fccke",
"multi-typModel.key": "Palettenregal Distanzst\u00fccke"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Durchschubsicherungen",
"multi-typModel.key": "Palettenregal Durchschubsicherungen"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Grundfeld",
"multi-typModel.key": "Palettenregal Grundfeld"
},
"doc_count": 105
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Regalb\u00f6den",
"multi-typModel.key": "Palettenregal Regalb\u00f6den"
},
"doc_count": 18
},
{
"key": {
"multi-typModel.sorting": "Palettenregal R\u00fcckw\u00e4nde",
"multi-typModel.key": "Palettenregal R\u00fcckw\u00e4nde"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Set",
"multi-typModel.key": "Palettenregal Set"
},
"doc_count": 916
},
{
"key": {
"multi-typModel.sorting": "Palettenregal St\u00fctzrahmen",
"multi-typModel.key": "Palettenregal St\u00fctzrahmen"
},
"doc_count": 24
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Tiefenstege",
"multi-typModel.key": "Palettenregal Tiefenstege"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Tiefenwinkelrahmen",
"multi-typModel.key": "Palettenregal Tiefenwinkelrahmen"
},
"doc_count": 1
},
{
"key": {
"multi-typModel.sorting": "Palettenregal Unterlegbleche",
"multi-typModel.key": "Palettenregal Unterlegbleche"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Palettenregal feuerverzinkt",
"multi-typModel.key": "Palettenregal feuerverzinkt"
},
"doc_count": 28
},
{
"key": {
"multi-typModel.sorting": "Palettenregal mobil",
"multi-typModel.key": "Palettenregal mobil"
},
"doc_count": 1
},
{
"key": {
"multi-typModel.sorting": "Rammschutz",
"multi-typModel.key": "Rammschutz"
},
"doc_count": 5
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Palettenregale",
"multi-typModel.key": "Zubeh\u00f6r Palettenregale"
},
"doc_count": 10
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 25890.0,
"multi-width.key": 25890.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 85.0,
"multi-width.key": 85.0
},
"doc_count": 16
},
{
"key": {
"multi-width.sorting": 100.0,
"multi-width.key": 100.0
},
"doc_count": 9
},
{
"key": {
"multi-width.sorting": 140.0,
"multi-width.key": 140.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 150.0,
"multi-width.key": 150.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 200.0,
"multi-width.key": 200.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 230.0,
"multi-width.key": 230.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 250.0,
"multi-width.key": 250.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 300.0,
"multi-width.key": 300.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 800.0,
"multi-width.key": 800.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1100.0,
"multi-width.key": 1100.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1300.0,
"multi-width.key": 1300.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1900.0,
"multi-width.key": 1900.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 1950.0,
"multi-width.key": 1950.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 1970.0,
"multi-width.key": 1970.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1985.0,
"multi-width.key": 1985.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 2070.0,
"multi-width.key": 2070.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 2200.0,
"multi-width.key": 2200.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 2300.0,
"multi-width.key": 2300.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 2680.0,
"multi-width.key": 2680.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 2700.0,
"multi-width.key": 2700.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 2780.0,
"multi-width.key": 2780.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 2785.0,
"multi-width.key": 2785.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 2825.0,
"multi-width.key": 2825.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 2870.0,
"multi-width.key": 2870.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 3300.0,
"multi-width.key": 3300.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 3600.0,
"multi-width.key": 3600.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 3685.0,
"multi-width.key": 3685.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 3770.0,
"multi-width.key": 3770.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 3900.0,
"multi-width.key": 3900.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 4055.0,
"multi-width.key": 4055.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 5655.0,
"multi-width.key": 5655.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 5965.0,
"multi-width.key": 5965.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 6040.0,
"multi-width.key": 6040.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 7455.0,
"multi-width.key": 7455.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 8025.0,
"multi-width.key": 8025.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 8440.0,
"multi-width.key": 8440.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 8590.0,
"multi-width.key": 8590.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 10010.0,
"multi-width.key": 10010.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 11140.0,
"multi-width.key": 11140.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 11225.0,
"multi-width.key": 11225.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 11995.0,
"multi-width.key": 11995.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 13980.0,
"multi-width.key": 13980.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 14010.0,
"multi-width.key": 14010.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 14825.0,
"multi-width.key": 14825.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 15965.0,
"multi-width.key": 15965.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 16795.0,
"multi-width.key": 16795.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 17950.0,
"multi-width.key": 17950.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 18510.0,
"multi-width.key": 18510.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 19580.0,
"multi-width.key": 19580.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 19935.0,
"multi-width.key": 19935.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 21920.0,
"multi-width.key": 21920.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 22195.0,
"multi-width.key": 22195.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 22365.0,
"multi-width.key": 22365.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 23905.0,
"multi-width.key": 23905.0
},
"doc_count": 28
},
{
"key": {
"multi-width.sorting": 25150.0,
"multi-width.key": 25150.0
},
"doc_count": 62
},
{
"key": {
"multi-width.sorting": 25880.0,
"multi-width.key": 25880.0
},
"doc_count": 14
},
{
"key": {
"multi-width.sorting": 25890.0,
"multi-width.key": 25890.0
},
"doc_count": 28
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 7500.0,
"multi-height.key": 7500.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 1.0,
"multi-height.key": 1.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 3.0,
"multi-height.key": 3.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 40.0,
"multi-height.key": 40.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 80.0,
"multi-height.key": 80.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 100.0,
"multi-height.key": 100.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 110.0,
"multi-height.key": 110.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 125.0,
"multi-height.key": 125.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 145.0,
"multi-height.key": 145.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 160.0,
"multi-height.key": 160.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 315.0,
"multi-height.key": 315.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 400.0,
"multi-height.key": 400.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 1000.0,
"multi-height.key": 1000.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 1500.0,
"multi-height.key": 1500.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 2200.0,
"multi-height.key": 2200.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 77
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 152
},
{
"key": {
"multi-height.sorting": 3500.0,
"multi-height.key": 3500.0
},
"doc_count": 152
},
{
"key": {
"multi-height.sorting": 4000.0,
"multi-height.key": 4000.0
},
"doc_count": 227
},
{
"key": {
"multi-height.sorting": 4500.0,
"multi-height.key": 4500.0
},
"doc_count": 239
},
{
"key": {
"multi-height.sorting": 5000.0,
"multi-height.key": 5000.0
},
"doc_count": 56
},
{
"key": {
"multi-height.sorting": 5500.0,
"multi-height.key": 5500.0
},
"doc_count": 227
},
{
"key": {
"multi-height.sorting": 6000.0,
"multi-height.key": 6000.0
},
"doc_count": 18
},
{
"key": {
"multi-height.sorting": 6500.0,
"multi-height.key": 6500.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 7000.0,
"multi-height.key": 7000.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 7500.0,
"multi-height.key": 7500.0
},
"doc_count": 2
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1320.0,
"multi-tiefe.key": 1320.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 50.0,
"multi-tiefe.key": 50.0
},
"doc_count": 12
},
{
"key": {
"multi-tiefe.sorting": 100.0,
"multi-tiefe.key": 100.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 120.0,
"multi-tiefe.key": 120.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 230.0,
"multi-tiefe.key": 230.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 695.0,
"multi-tiefe.key": 695.0
},
"doc_count": 3
},
{
"key": {
"multi-tiefe.sorting": 795.0,
"multi-tiefe.key": 795.0
},
"doc_count": 3
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 319
},
{
"key": {
"multi-tiefe.sorting": 995.0,
"multi-tiefe.key": 995.0
},
"doc_count": 3
},
{
"key": {
"multi-tiefe.sorting": 1095.0,
"multi-tiefe.key": 1095.0
},
"doc_count": 3
},
{
"key": {
"multi-tiefe.sorting": 1100.0,
"multi-tiefe.key": 1100.0
},
"doc_count": 848
},
{
"key": {
"multi-tiefe.sorting": 1135.0,
"multi-tiefe.key": 1135.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 1320.0,
"multi-tiefe.key": 1320.0
},
"doc_count": 1
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 1181
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 1181
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|