| 1 |
25.65 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":264,"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": "2c2a066f74374bd0f45d3637610f28d1",
"_score": 1350.0,
"_source": {
"id": "2c2a066f74374bd0f45d3637610f28d1",
"autoIncrement": 148623.0
},
"fields": {
"displayGroup": [
"76c4027e8da5a17462336d81804e36d3"
]
},
"sort": [
0,
1350.0,
0,
148623,
"2c2a066f74374bd0f45d3637610f28d1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "16466a4bcd6dca9436111bc50e858105",
"_score": 1350.0,
"_source": {
"id": "16466a4bcd6dca9436111bc50e858105",
"autoIncrement": 148622.0
},
"fields": {
"displayGroup": [
"ac8ace76bf47fcc29e5f5ea6b529b2ef"
]
},
"sort": [
0,
1350.0,
0,
148622,
"16466a4bcd6dca9436111bc50e858105"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "02c6784bbf7278bd81dc3654aca65e98",
"_score": 1350.0,
"_source": {
"id": "02c6784bbf7278bd81dc3654aca65e98",
"autoIncrement": 148621.0
},
"fields": {
"displayGroup": [
"a17d6296c1b9206444fe7ee5e2415982"
]
},
"sort": [
0,
1350.0,
0,
148621,
"02c6784bbf7278bd81dc3654aca65e98"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "68a7fe03caeeea5bf7e89163ca09bc05",
"_score": 1350.0,
"_source": {
"id": "68a7fe03caeeea5bf7e89163ca09bc05",
"autoIncrement": 148620.0
},
"fields": {
"displayGroup": [
"a76dd80e1bd80fb7ed07aa9c85061701"
]
},
"sort": [
0,
1350.0,
0,
148620,
"68a7fe03caeeea5bf7e89163ca09bc05"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "27aee73c0380b282f638b18bd0da1327",
"_score": 1350.0,
"_source": {
"id": "27aee73c0380b282f638b18bd0da1327",
"autoIncrement": 148619.0
},
"fields": {
"displayGroup": [
"e66dcb7e1eadd056760dc3b731dc8e16"
]
},
"sort": [
0,
1350.0,
0,
148619,
"27aee73c0380b282f638b18bd0da1327"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9b36009004d7503c37a0ad281d00ff96",
"_score": 1350.0,
"_source": {
"id": "9b36009004d7503c37a0ad281d00ff96",
"autoIncrement": 148618.0
},
"fields": {
"displayGroup": [
"442cbcf6bb6a0ee807c0734188af7ec9"
]
},
"sort": [
0,
1350.0,
0,
148618,
"9b36009004d7503c37a0ad281d00ff96"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "39f2af0caeae0ed83774dcde24cd5aa8",
"_score": 1350.0,
"_source": {
"id": "39f2af0caeae0ed83774dcde24cd5aa8",
"autoIncrement": 148617.0
},
"fields": {
"displayGroup": [
"67606ec5b261d3f055553bc5d9e5984c"
]
},
"sort": [
0,
1350.0,
0,
148617,
"39f2af0caeae0ed83774dcde24cd5aa8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6ce6aac41b246843ca7285ad642dfb46",
"_score": 1350.0,
"_source": {
"id": "6ce6aac41b246843ca7285ad642dfb46",
"autoIncrement": 148616.0
},
"fields": {
"displayGroup": [
"d89d570aef7a7014ecbf6d66acfe9d4f"
]
},
"sort": [
0,
1350.0,
0,
148616,
"6ce6aac41b246843ca7285ad642dfb46"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3be58b0d1c5fe763677a45d7d79142f9",
"_score": 1350.0,
"_source": {
"id": "3be58b0d1c5fe763677a45d7d79142f9",
"autoIncrement": 148615.0
},
"fields": {
"displayGroup": [
"9183fc726a23504ac47abf19d00734e7"
]
},
"sort": [
0,
1350.0,
0,
148615,
"3be58b0d1c5fe763677a45d7d79142f9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ce057611ab69ee812f42051ff4a5beab",
"_score": 1350.0,
"_source": {
"id": "ce057611ab69ee812f42051ff4a5beab",
"autoIncrement": 148614.0
},
"fields": {
"displayGroup": [
"ee00788d8d4c70f54ca40992578f09b7"
]
},
"sort": [
0,
1350.0,
0,
148614,
"ce057611ab69ee812f42051ff4a5beab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4dac17ee4a9bb93643e61ace27d0eaff",
"_score": 1350.0,
"_source": {
"id": "4dac17ee4a9bb93643e61ace27d0eaff",
"autoIncrement": 148613.0
},
"fields": {
"displayGroup": [
"8e72170993e249ea4bc68e507811ef0f"
]
},
"sort": [
0,
1350.0,
0,
148613,
"4dac17ee4a9bb93643e61ace27d0eaff"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f91ef74548da00b9d7b08c1a1e84d0d1",
"_score": 1350.0,
"_source": {
"id": "f91ef74548da00b9d7b08c1a1e84d0d1",
"autoIncrement": 148612.0
},
"fields": {
"displayGroup": [
"c94805ab1cb633a36dbf82da3cca4399"
]
},
"sort": [
0,
1350.0,
0,
148612,
"f91ef74548da00b9d7b08c1a1e84d0d1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a2517aff1a3a8f09a724344e93120884",
"_score": 1350.0,
"_source": {
"id": "a2517aff1a3a8f09a724344e93120884",
"autoIncrement": 148611.0
},
"fields": {
"displayGroup": [
"2f28a333b721d10da04e82dcc89a6d64"
]
},
"sort": [
0,
1350.0,
0,
148611,
"a2517aff1a3a8f09a724344e93120884"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c0b512fe6c1a966ee0a337d2469db8a5",
"_score": 1350.0,
"_source": {
"id": "c0b512fe6c1a966ee0a337d2469db8a5",
"autoIncrement": 148610.0
},
"fields": {
"displayGroup": [
"20b58c23a4c4083a52ec105f1e63307f"
]
},
"sort": [
0,
1350.0,
0,
148610,
"c0b512fe6c1a966ee0a337d2469db8a5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3dd204b07c2ecec7b7342c14048e845b",
"_score": 1350.0,
"_source": {
"id": "3dd204b07c2ecec7b7342c14048e845b",
"autoIncrement": 148609.0
},
"fields": {
"displayGroup": [
"8aeb5644edb105f7f74aa876c05abb35"
]
},
"sort": [
0,
1350.0,
0,
148609,
"3dd204b07c2ecec7b7342c14048e845b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d5977fc9629b7e477374865656f4b87a",
"_score": 1350.0,
"_source": {
"id": "d5977fc9629b7e477374865656f4b87a",
"autoIncrement": 148608.0
},
"fields": {
"displayGroup": [
"51c4ef5502eadc3e2227899eb21d271c"
]
},
"sort": [
0,
1350.0,
0,
148608,
"d5977fc9629b7e477374865656f4b87a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cdfb2639b03347f613909516a390c297",
"_score": 1350.0,
"_source": {
"id": "cdfb2639b03347f613909516a390c297",
"autoIncrement": 148607.0
},
"fields": {
"displayGroup": [
"99773eb318f51f79bed7599aad087f57"
]
},
"sort": [
0,
1350.0,
0,
148607,
"cdfb2639b03347f613909516a390c297"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0676a78dd83d93be89d49e1cf7609d42",
"_score": 1350.0,
"_source": {
"id": "0676a78dd83d93be89d49e1cf7609d42",
"autoIncrement": 148606.0
},
"fields": {
"displayGroup": [
"d5b61fe20a2f4e0b2d038d0b0ec79db1"
]
},
"sort": [
0,
1350.0,
0,
148606,
"0676a78dd83d93be89d49e1cf7609d42"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5cd64292ef34b4f9c3f0496f72f9437c",
"_score": 1350.0,
"_source": {
"id": "5cd64292ef34b4f9c3f0496f72f9437c",
"autoIncrement": 148605.0
},
"fields": {
"displayGroup": [
"2c76170a9b8f6609fb9d291cc123177b"
]
},
"sort": [
0,
1350.0,
0,
148605,
"5cd64292ef34b4f9c3f0496f72f9437c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "69b35b78842c41fa6b279cfc6f121689",
"_score": 1350.0,
"_source": {
"id": "69b35b78842c41fa6b279cfc6f121689",
"autoIncrement": 148604.0
},
"fields": {
"displayGroup": [
"7b9955e7f3472ddab01045f1da7de5ec"
]
},
"sort": [
0,
1350.0,
0,
148604,
"69b35b78842c41fa6b279cfc6f121689"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4d25db75e5b8ff7d0eb216f78d4abaf6",
"_score": 1350.0,
"_source": {
"id": "4d25db75e5b8ff7d0eb216f78d4abaf6",
"autoIncrement": 148603.0
},
"fields": {
"displayGroup": [
"803962a6516d0545904ef419883dfbfc"
]
},
"sort": [
0,
1350.0,
0,
148603,
"4d25db75e5b8ff7d0eb216f78d4abaf6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3b46a65f942ae41a150fbb9105c3ef34",
"_score": 1350.0,
"_source": {
"id": "3b46a65f942ae41a150fbb9105c3ef34",
"autoIncrement": 148602.0
},
"fields": {
"displayGroup": [
"60358d881f788b1c698a4e5203eb640c"
]
},
"sort": [
0,
1350.0,
0,
148602,
"3b46a65f942ae41a150fbb9105c3ef34"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f3f87b6049b9cd365ded03d9ee443b14",
"_score": 1350.0,
"_source": {
"id": "f3f87b6049b9cd365ded03d9ee443b14",
"autoIncrement": 148601.0
},
"fields": {
"displayGroup": [
"d55106325792bd62881a8b084e210149"
]
},
"sort": [
0,
1350.0,
0,
148601,
"f3f87b6049b9cd365ded03d9ee443b14"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "01a7dfdf1f338bc72034d4fb89c37583",
"_score": 1350.0,
"_source": {
"id": "01a7dfdf1f338bc72034d4fb89c37583",
"autoIncrement": 148600.0
},
"fields": {
"displayGroup": [
"1ee87247aa77a51c27ea2d070e2a1c24"
]
},
"sort": [
0,
1350.0,
0,
148600,
"01a7dfdf1f338bc72034d4fb89c37583"
]
}
]
},
"aggregations": {
"total-count": {
"value": 1222
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
7.67 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
|