| 1 |
14.57 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":"2ac98d72869832855f4daf16a05b972b"}},{"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":0,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 66,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "9b86f859565db4005a0e29caf1ee5bb7",
"_score": 1450.0,
"_source": {
"id": "9b86f859565db4005a0e29caf1ee5bb7",
"autoIncrement": 117696.0
},
"fields": {
"displayGroup": [
"194504465ee89fd944c372ec6a108fe4"
]
},
"sort": [
0,
1450.0,
0,
117696,
"9b86f859565db4005a0e29caf1ee5bb7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7395d2460d15121b6ba1e31b57d65358",
"_score": 1100.0,
"_source": {
"id": "7395d2460d15121b6ba1e31b57d65358",
"autoIncrement": 137520.0
},
"fields": {
"displayGroup": [
"6f645c58751ad43eaaae31904b95ca3f"
]
},
"sort": [
0,
1100.0,
0,
137520,
"7395d2460d15121b6ba1e31b57d65358"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5b951025bdf1b573fbaa79ea4e37e52d",
"_score": 1100.0,
"_source": {
"id": "5b951025bdf1b573fbaa79ea4e37e52d",
"autoIncrement": 136825.0
},
"fields": {
"displayGroup": [
"9328de48c3c3f28c110b1b027ba05ceb"
]
},
"sort": [
0,
1100.0,
0,
136825,
"5b951025bdf1b573fbaa79ea4e37e52d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "87e236b183523783332b9dd8245e8dba",
"_score": 1100.0,
"_source": {
"id": "87e236b183523783332b9dd8245e8dba",
"autoIncrement": 136824.0
},
"fields": {
"displayGroup": [
"c7c88a89b0ca6a6cc1513f3b8c9fc42c"
]
},
"sort": [
0,
1100.0,
0,
136824,
"87e236b183523783332b9dd8245e8dba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d56662e6fb933427e92fd1ce66d60f7a",
"_score": 1100.0,
"_source": {
"id": "d56662e6fb933427e92fd1ce66d60f7a",
"autoIncrement": 136823.0
},
"fields": {
"displayGroup": [
"f9c371119ba7ae3a9f823fd6ac5d240e"
]
},
"sort": [
0,
1100.0,
0,
136823,
"d56662e6fb933427e92fd1ce66d60f7a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8ea5ce536d30faa10db41bc22953096d",
"_score": 1100.0,
"_source": {
"id": "8ea5ce536d30faa10db41bc22953096d",
"autoIncrement": 136822.0
},
"fields": {
"displayGroup": [
"8a85f7d5dfdd4871d698e02c2939de2e"
]
},
"sort": [
0,
1100.0,
0,
136822,
"8ea5ce536d30faa10db41bc22953096d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f8f2acde65cb5df961379285b4db7be6",
"_score": 1100.0,
"_source": {
"id": "f8f2acde65cb5df961379285b4db7be6",
"autoIncrement": 136821.0
},
"fields": {
"displayGroup": [
"06de1ad19483c9e96e7451c126bccdbd"
]
},
"sort": [
0,
1100.0,
0,
136821,
"f8f2acde65cb5df961379285b4db7be6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "53b94802a770ca2f01f5dd027e8ebd2a",
"_score": 1100.0,
"_source": {
"id": "53b94802a770ca2f01f5dd027e8ebd2a",
"autoIncrement": 136820.0
},
"fields": {
"displayGroup": [
"cfd8042316d24a40768e29411b5a9454"
]
},
"sort": [
0,
1100.0,
0,
136820,
"53b94802a770ca2f01f5dd027e8ebd2a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "73bdb7d64913f403a56a4c2e120dd43a",
"_score": 1100.0,
"_source": {
"id": "73bdb7d64913f403a56a4c2e120dd43a",
"autoIncrement": 135475.0
},
"fields": {
"displayGroup": [
"db111fec64d5724c8c86db06d0c43bcd"
]
},
"sort": [
0,
1100.0,
0,
135475,
"73bdb7d64913f403a56a4c2e120dd43a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ab46e5ec7d2cff29b39c135880c82158",
"_score": 1100.0,
"_source": {
"id": "ab46e5ec7d2cff29b39c135880c82158",
"autoIncrement": 135474.0
},
"fields": {
"displayGroup": [
"7e28ecc90dac7fba18f9fcd29d20b124"
]
},
"sort": [
0,
1100.0,
0,
135474,
"ab46e5ec7d2cff29b39c135880c82158"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ea0e9bcc1de6aa2a22de508bea2035ba",
"_score": 1100.0,
"_source": {
"id": "ea0e9bcc1de6aa2a22de508bea2035ba",
"autoIncrement": 135216.0
},
"fields": {
"displayGroup": [
"ad7f97a0235f1c663dd048dee1fd9c51"
]
},
"sort": [
0,
1100.0,
0,
135216,
"ea0e9bcc1de6aa2a22de508bea2035ba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6eee4a127e72c4afb5129ef48587fc32",
"_score": 1100.0,
"_source": {
"id": "6eee4a127e72c4afb5129ef48587fc32",
"autoIncrement": 135215.0
},
"fields": {
"displayGroup": [
"c3f94491eaf28c505d3175336febb223"
]
},
"sort": [
0,
1100.0,
0,
135215,
"6eee4a127e72c4afb5129ef48587fc32"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cd490bea020ca0b7ea755ed027830cbc",
"_score": 1100.0,
"_source": {
"id": "cd490bea020ca0b7ea755ed027830cbc",
"autoIncrement": 131282.0
},
"fields": {
"displayGroup": [
"5dd46f26ac262d9d5f7d0acbb7015a07"
]
},
"sort": [
0,
1100.0,
0,
131282,
"cd490bea020ca0b7ea755ed027830cbc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3d3e49834632ab03444ab22c6f8d02da",
"_score": 1100.0,
"_source": {
"id": "3d3e49834632ab03444ab22c6f8d02da",
"autoIncrement": 129096.0
},
"fields": {
"displayGroup": [
"778fe0e3b025a57186999262d9ca5b08"
]
},
"sort": [
0,
1100.0,
0,
129096,
"3d3e49834632ab03444ab22c6f8d02da"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bbcd04d7813d84c03b6bf67890e3f9b8",
"_score": 1100.0,
"_source": {
"id": "bbcd04d7813d84c03b6bf67890e3f9b8",
"autoIncrement": 128996.0
},
"fields": {
"displayGroup": [
"24acb88e70d7cdd60c4dc19a94285326"
]
},
"sort": [
0,
1100.0,
0,
128996,
"bbcd04d7813d84c03b6bf67890e3f9b8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a666416491aa59f8b3c3e44fa9d5d4cf",
"_score": 1100.0,
"_source": {
"id": "a666416491aa59f8b3c3e44fa9d5d4cf",
"autoIncrement": 128995.0
},
"fields": {
"displayGroup": [
"acb292517f66823b304a18df714dd7a5"
]
},
"sort": [
0,
1100.0,
0,
128995,
"a666416491aa59f8b3c3e44fa9d5d4cf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "018b99e9a51e8a3fd3b8a8dd29f4dc6f",
"_score": 1100.0,
"_source": {
"id": "018b99e9a51e8a3fd3b8a8dd29f4dc6f",
"autoIncrement": 128961.0
},
"fields": {
"displayGroup": [
"68291501743cb873c5ff7ad265f90189"
]
},
"sort": [
0,
1100.0,
0,
128961,
"018b99e9a51e8a3fd3b8a8dd29f4dc6f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "74218000554b15d77fd33c187b053b88",
"_score": 1100.0,
"_source": {
"id": "74218000554b15d77fd33c187b053b88",
"autoIncrement": 127518.0
},
"fields": {
"displayGroup": [
"49eb8d75448e017748c1006af436a0e5"
]
},
"sort": [
0,
1100.0,
0,
127518,
"74218000554b15d77fd33c187b053b88"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "372548d3bd2b037c5d966248481fa49e",
"_score": 1100.0,
"_source": {
"id": "372548d3bd2b037c5d966248481fa49e",
"autoIncrement": 127517.0
},
"fields": {
"displayGroup": [
"101cfa68d315b8cbe09bdcdbcc65b734"
]
},
"sort": [
0,
1100.0,
0,
127517,
"372548d3bd2b037c5d966248481fa49e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5f0da8ae104cceff8047476e0c869f12",
"_score": 1100.0,
"_source": {
"id": "5f0da8ae104cceff8047476e0c869f12",
"autoIncrement": 127516.0
},
"fields": {
"displayGroup": [
"8ef6d503ee84487c02babb511012e300"
]
},
"sort": [
0,
1100.0,
0,
127516,
"5f0da8ae104cceff8047476e0c869f12"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "44337e0fee3311a01550bde83abdb5bc",
"_score": 1100.0,
"_source": {
"id": "44337e0fee3311a01550bde83abdb5bc",
"autoIncrement": 127423.0
},
"fields": {
"displayGroup": [
"3fa88bf803416c71b20802773bd8a719"
]
},
"sort": [
0,
1100.0,
0,
127423,
"44337e0fee3311a01550bde83abdb5bc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "201c97fcb7a59cc06ad3c14c4de5afce",
"_score": 1100.0,
"_source": {
"id": "201c97fcb7a59cc06ad3c14c4de5afce",
"autoIncrement": 127422.0
},
"fields": {
"displayGroup": [
"1d8f44cf2b802286f1009b6eafb47c9f"
]
},
"sort": [
0,
1100.0,
0,
127422,
"201c97fcb7a59cc06ad3c14c4de5afce"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1c57652a4fb9e145d2d5741a82954622",
"_score": 1100.0,
"_source": {
"id": "1c57652a4fb9e145d2d5741a82954622",
"autoIncrement": 127421.0
},
"fields": {
"displayGroup": [
"af4d21349a14a44937cc2357bf7fdd04"
]
},
"sort": [
0,
1100.0,
0,
127421,
"1c57652a4fb9e145d2d5741a82954622"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c49406c766454c76c8ccba1ac19d17cb",
"_score": 1100.0,
"_source": {
"id": "c49406c766454c76c8ccba1ac19d17cb",
"autoIncrement": 127036.0
},
"fields": {
"displayGroup": [
"9959798081290509c59a7a06d250bf0f"
]
},
"sort": [
0,
1100.0,
0,
127036,
"c49406c766454c76c8ccba1ac19d17cb"
]
}
]
},
"aggregations": {
"total-count": {
"value": 66
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.22 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":"2ac98d72869832855f4daf16a05b972b"}},{"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-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"multi-material":{"composite":{"sources":[{"multi-material.sorting":{"terms":{"field":"attribute_material","order":"ASC"}}},{"multi-material.key":{"terms":{"field":"attribute_material"}}}],"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": "2ac98d72869832855f4daf16a05b972b"
}
},
{
"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-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"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": 66,
"min": 335.0,
"max": 1810.0,
"avg": 766.469696969697,
"sum": 50587.0
},
"rating-exists": {
"doc_count": 66,
"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": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "0e9efab1edec8acb8db5b0b6309d412c",
"manufacturer-count-filter.key": "0e9efab1edec8acb8db5b0b6309d412c"
},
"doc_count": 36
},
{
"key": {
"manufacturer-count-filter.sorting": "2fc223ce6476978f04619d762abe9f3e",
"manufacturer-count-filter.key": "2fc223ce6476978f04619d762abe9f3e"
},
"doc_count": 3
},
{
"key": {
"manufacturer-count-filter.sorting": "5267ee69add37a0408db89f9cd30c57f",
"manufacturer-count-filter.key": "5267ee69add37a0408db89f9cd30c57f"
},
"doc_count": 12
},
{
"key": {
"manufacturer-count-filter.sorting": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"doc_count": 15
}
]
},
"bool-reduced": {
"doc_count": 2,
"bool-reduced": {
"value": 2
}
},
"width": {
"count": 66,
"min": 432.0,
"max": 1200.0,
"avg": 708.5454545454545,
"sum": 46764.0
},
"width-stats": {
"doc_count": 66,
"width-stats": {
"count": 66,
"min": 432.0,
"max": 1200.0,
"avg": 708.5454545454545,
"sum": 46764.0
}
},
"height": {
"count": 66,
"min": 748.0,
"max": 2304.0,
"avg": 1536.060606060606,
"sum": 101380.0
},
"height-stats": {
"doc_count": 66,
"height-stats": {
"count": 66,
"min": 748.0,
"max": 2304.0,
"avg": 1536.060606060606,
"sum": 101380.0
}
},
"tiefe": {
"count": 66,
"min": 420.0,
"max": 800.0,
"avg": 514.8484848484849,
"sum": 33980.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Sonstige B\u00fcroschr\u00e4nke",
"multi-typModel.key": "Sonstige B\u00fcroschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Kombinationssch\u00e4nke",
"multi-typModel.key": "Kombinationssch\u00e4nke"
},
"doc_count": 7
},
{
"key": {
"multi-typModel.sorting": "Materialschr\u00e4nke",
"multi-typModel.key": "Materialschr\u00e4nke"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Regal-\/Schrank-Kombi",
"multi-typModel.key": "Regal-\/Schrank-Kombi"
},
"doc_count": 36
},
{
"key": {
"multi-typModel.sorting": "Sonstige B\u00fcroschr\u00e4nke",
"multi-typModel.key": "Sonstige B\u00fcroschr\u00e4nke"
},
"doc_count": 20
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "ahorn",
"multi-farbe.key": "ahorn"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "buche",
"multi-farbe.key": "buche"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "graphitwei\u00df",
"multi-farbe.key": "graphitwei\u00df"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "lichtgrau",
"multi-farbe.key": "lichtgrau"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "nussbaum",
"multi-farbe.key": "nussbaum"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"doc_count": 6
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Spanplatte",
"multi-material.key": "Spanplatte"
},
"doc_count": 15
},
{
"key": {
"multi-material.sorting": "Spanplatte\/beschichtet",
"multi-material.key": "Spanplatte\/beschichtet"
},
"doc_count": 36
},
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 15
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "0e9efab1edec8acb8db5b0b6309d412c",
"doc_count": 36
},
{
"key": "7bd063d302bdd813d4944cec5509cfa3",
"doc_count": 15
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 12
},
{
"key": "2fc223ce6476978f04619d762abe9f3e",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|