| 1 |
17.28 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":"ab292a19eab14c106d2c9e81e71f86d5"}},{"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":24,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 137,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "793f0940a6683c8844675992a96994f3",
"_score": 1100.0,
"_source": {
"id": "793f0940a6683c8844675992a96994f3",
"autoIncrement": 33544.0
},
"fields": {
"displayGroup": [
"16147f3ba802688eb1e2ac775d48b2d2"
]
},
"sort": [
0,
1100.0,
0,
33544,
"793f0940a6683c8844675992a96994f3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d18a33f1c250bad88d2b4cd54ced6ea0",
"_score": 1100.0,
"_source": {
"id": "d18a33f1c250bad88d2b4cd54ced6ea0",
"autoIncrement": 33543.0
},
"fields": {
"displayGroup": [
"df75973be7d7900f183603d9c2059463"
]
},
"sort": [
0,
1100.0,
0,
33543,
"d18a33f1c250bad88d2b4cd54ced6ea0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "655673a0514c04230be0388363465379",
"_score": 1100.0,
"_source": {
"id": "655673a0514c04230be0388363465379",
"autoIncrement": 33542.0
},
"fields": {
"displayGroup": [
"1cba3e617f64da51bd83a81b0a1a55cd"
]
},
"sort": [
0,
1100.0,
0,
33542,
"655673a0514c04230be0388363465379"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e3a4d28f5a10bb50767afc00830b8086",
"_score": 1100.0,
"_source": {
"id": "e3a4d28f5a10bb50767afc00830b8086",
"autoIncrement": 33541.0
},
"fields": {
"displayGroup": [
"4cb22d6f3d7145d49309818bfa427fe1"
]
},
"sort": [
0,
1100.0,
0,
33541,
"e3a4d28f5a10bb50767afc00830b8086"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6928c89e8e52ab34d9cb97b0f4ddc950",
"_score": 1100.0,
"_source": {
"id": "6928c89e8e52ab34d9cb97b0f4ddc950",
"autoIncrement": 33540.0
},
"fields": {
"displayGroup": [
"b161f73546aea3365f0a2ad7da1e77f1"
]
},
"sort": [
0,
1100.0,
0,
33540,
"6928c89e8e52ab34d9cb97b0f4ddc950"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9e69029a2c63322126fe94ad635ebeaa",
"_score": 1100.0,
"_source": {
"id": "9e69029a2c63322126fe94ad635ebeaa",
"autoIncrement": 33539.0
},
"fields": {
"displayGroup": [
"0902627d17683c2ab69fa604145d6a0f"
]
},
"sort": [
0,
1100.0,
0,
33539,
"9e69029a2c63322126fe94ad635ebeaa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b1c232bdd1c183e86b2a63c9c5b9cea0",
"_score": 1100.0,
"_source": {
"id": "b1c232bdd1c183e86b2a63c9c5b9cea0",
"autoIncrement": 33538.0
},
"fields": {
"displayGroup": [
"798cbc215b3207408b763c82401bbb58"
]
},
"sort": [
0,
1100.0,
0,
33538,
"b1c232bdd1c183e86b2a63c9c5b9cea0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1a191eb7fb3c799af3b09f35df251fec",
"_score": 1100.0,
"_source": {
"id": "1a191eb7fb3c799af3b09f35df251fec",
"autoIncrement": 33537.0
},
"fields": {
"displayGroup": [
"a1fc842baa55d3b84c09d679e3de4578"
]
},
"sort": [
0,
1100.0,
0,
33537,
"1a191eb7fb3c799af3b09f35df251fec"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d9dc776aaf9b1adfb9055ea8beea7063",
"_score": 1100.0,
"_source": {
"id": "d9dc776aaf9b1adfb9055ea8beea7063",
"autoIncrement": 33536.0
},
"fields": {
"displayGroup": [
"55368d7e09ef440d0a0addcb47c00b4b"
]
},
"sort": [
0,
1100.0,
0,
33536,
"d9dc776aaf9b1adfb9055ea8beea7063"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3a935eeef27ff3bce7e908786a326ce6",
"_score": 1100.0,
"_source": {
"id": "3a935eeef27ff3bce7e908786a326ce6",
"autoIncrement": 33535.0
},
"fields": {
"displayGroup": [
"c5c558e1a286f861a5a0be2f159b9d09"
]
},
"sort": [
0,
1100.0,
0,
33535,
"3a935eeef27ff3bce7e908786a326ce6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0e4e2ac1198b37a54a9b441f3dd4c70c",
"_score": 1100.0,
"_source": {
"id": "0e4e2ac1198b37a54a9b441f3dd4c70c",
"autoIncrement": 33534.0
},
"fields": {
"displayGroup": [
"e08e3dc17b7b403a2365704a448460e6"
]
},
"sort": [
0,
1100.0,
0,
33534,
"0e4e2ac1198b37a54a9b441f3dd4c70c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d194014018dec0371f1fac46a8233626",
"_score": 1100.0,
"_source": {
"id": "d194014018dec0371f1fac46a8233626",
"autoIncrement": 33533.0
},
"fields": {
"displayGroup": [
"78480bc11f3bb7d8f78f296420277d44"
]
},
"sort": [
0,
1100.0,
0,
33533,
"d194014018dec0371f1fac46a8233626"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6ea07b4eee0b7c8dd15face954a3b183",
"_score": 1100.0,
"_source": {
"id": "6ea07b4eee0b7c8dd15face954a3b183",
"autoIncrement": 33532.0
},
"fields": {
"displayGroup": [
"91d6d83c10abe2ed361780eab0622af4"
]
},
"sort": [
0,
1100.0,
0,
33532,
"6ea07b4eee0b7c8dd15face954a3b183"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8f9f20a9f39a8e26e104d36d7a3875f9",
"_score": 1100.0,
"_source": {
"id": "8f9f20a9f39a8e26e104d36d7a3875f9",
"autoIncrement": 33531.0
},
"fields": {
"displayGroup": [
"f5faf81bb7fc5fa7569779dce9991f79"
]
},
"sort": [
0,
1100.0,
0,
33531,
"8f9f20a9f39a8e26e104d36d7a3875f9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a421728b60d5156c0a1d8eeb18e84f85",
"_score": 1100.0,
"_source": {
"id": "a421728b60d5156c0a1d8eeb18e84f85",
"autoIncrement": 33530.0
},
"fields": {
"displayGroup": [
"3a1d12373f3cfc8ddaae31653360b438"
]
},
"sort": [
0,
1100.0,
0,
33530,
"a421728b60d5156c0a1d8eeb18e84f85"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "26401b7266eeaf4bb1a3e17310ddd088",
"_score": 1100.0,
"_source": {
"id": "26401b7266eeaf4bb1a3e17310ddd088",
"autoIncrement": 33529.0
},
"fields": {
"displayGroup": [
"c5b78f7546a39f3eb24f109da60ab9d9"
]
},
"sort": [
0,
1100.0,
0,
33529,
"26401b7266eeaf4bb1a3e17310ddd088"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "72270aa649ae34ffe199d855daefb2bb",
"_score": 1100.0,
"_source": {
"id": "72270aa649ae34ffe199d855daefb2bb",
"autoIncrement": 33528.0
},
"fields": {
"displayGroup": [
"92555b046959aa4fd6b2af2c6f785200"
]
},
"sort": [
0,
1100.0,
0,
33528,
"72270aa649ae34ffe199d855daefb2bb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bf6dac510e719b374851adb2d10843fb",
"_score": 1100.0,
"_source": {
"id": "bf6dac510e719b374851adb2d10843fb",
"autoIncrement": 33514.0
},
"fields": {
"displayGroup": [
"927fdc198a59123b86626b5487bd7315"
]
},
"sort": [
0,
1100.0,
0,
33514,
"bf6dac510e719b374851adb2d10843fb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ea22ae321cf704c5b29d9d5382e199f4",
"_score": 1100.0,
"_source": {
"id": "ea22ae321cf704c5b29d9d5382e199f4",
"autoIncrement": 33511.0
},
"fields": {
"displayGroup": [
"006546716772871873e118358738bcbf"
]
},
"sort": [
0,
1100.0,
0,
33511,
"ea22ae321cf704c5b29d9d5382e199f4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2f3e8121350fcc71b992a576c9c2d608",
"_score": 1100.0,
"_source": {
"id": "2f3e8121350fcc71b992a576c9c2d608",
"autoIncrement": 33508.0
},
"fields": {
"displayGroup": [
"2443d3ffc85ab39e5b8a27dde2fa6c4e"
]
},
"sort": [
0,
1100.0,
0,
33508,
"2f3e8121350fcc71b992a576c9c2d608"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "11e9d51c04c29d90f18e1af498913cae",
"_score": 1100.0,
"_source": {
"id": "11e9d51c04c29d90f18e1af498913cae",
"autoIncrement": 33507.0
},
"fields": {
"displayGroup": [
"82cd36bc3eb20dcb96f723cd142d7917"
]
},
"sort": [
0,
1100.0,
0,
33507,
"11e9d51c04c29d90f18e1af498913cae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7bae1ed41e3d6f64e6bf535731c416ff",
"_score": 1100.0,
"_source": {
"id": "7bae1ed41e3d6f64e6bf535731c416ff",
"autoIncrement": 33505.0
},
"fields": {
"displayGroup": [
"d9627f534d0b7749ee1439963798e00b"
]
},
"sort": [
0,
1100.0,
0,
33505,
"7bae1ed41e3d6f64e6bf535731c416ff"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c892c72f9481ad8eea56d8bc350e68bd",
"_score": 1100.0,
"_source": {
"id": "c892c72f9481ad8eea56d8bc350e68bd",
"autoIncrement": 33503.0
},
"fields": {
"displayGroup": [
"f3040ac725ef9e50a8ca44242a5e95e3"
]
},
"sort": [
0,
1100.0,
0,
33503,
"c892c72f9481ad8eea56d8bc350e68bd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6337ea5723c0da6c7e77fc48c85dd905",
"_score": 1100.0,
"_source": {
"id": "6337ea5723c0da6c7e77fc48c85dd905",
"autoIncrement": 33502.0
},
"fields": {
"displayGroup": [
"ae3d97343e6f2e965df143eb3af34f31"
]
},
"sort": [
0,
1100.0,
0,
33502,
"6337ea5723c0da6c7e77fc48c85dd905"
]
}
]
},
"aggregations": {
"total-count": {
"value": 137
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
7.06 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":"ab292a19eab14c106d2c9e81e71f86d5"}},{"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-farbeKorpus":{"composite":{"sources":[{"multi-farbeKorpus.sorting":{"terms":{"field":"attribute_farbeKorpus","order":"ASC"}}},{"multi-farbeKorpus.key":{"terms":{"field":"attribute_farbeKorpus"}}}],"size":"99999"}},"range-anzahlSchubladen":{"stats":{"field":"attribute_anzahlSchubladen"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbeFront":{"composite":{"sources":[{"multi-farbeFront.sorting":{"terms":{"field":"attribute_farbeFront","order":"ASC"}}},{"multi-farbeFront.key":{"terms":{"field":"attribute_farbeFront"}}}],"size":"99999"}},"multi-schlossausfuehrung":{"composite":{"sources":[{"multi-schlossausfuehrung.sorting":{"terms":{"field":"attribute_schlossausfuehrung","order":"ASC"}}},{"multi-schlossausfuehrung.key":{"terms":{"field":"attribute_schlossausfuehrung"}}}],"size":"99999"}},"multi-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"size":"99999"}},"manufacturer-count":{"terms":{"field":"manufacturerId","size":10000}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
POST http://localhost:9200/staging-67_product/_search?track_total_hits=0&search_type=query_then_fetch
Accept: application/json
Content-Type: application/json
{
"query": {
"bool": {
"filter": [
{
"bool": {
"must": [
{
"bool": {
"must": [
{
"term": {
"active": true
}
},
{
"range": {
"visibility_132e445c03814d67ac47c04afb6d5d99": {
"gte": 30
}
}
}
]
}
},
{
"term": {
"categoryTree": "ab292a19eab14c106d2c9e81e71f86d5"
}
},
{
"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-farbeKorpus": {
"composite": {
"sources": [
{
"multi-farbeKorpus.sorting": {
"terms": {
"field": "attribute_farbeKorpus",
"order": "ASC"
}
}
},
{
"multi-farbeKorpus.key": {
"terms": {
"field": "attribute_farbeKorpus"
}
}
}
],
"size": "99999"
}
},
"range-anzahlSchubladen": {
"stats": {
"field": "attribute_anzahlSchubladen"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbeFront": {
"composite": {
"sources": [
{
"multi-farbeFront.sorting": {
"terms": {
"field": "attribute_farbeFront",
"order": "ASC"
}
}
},
{
"multi-farbeFront.key": {
"terms": {
"field": "attribute_farbeFront"
}
}
}
],
"size": "99999"
}
},
"multi-schlossausfuehrung": {
"composite": {
"sources": [
{
"multi-schlossausfuehrung.sorting": {
"terms": {
"field": "attribute_schlossausfuehrung",
"order": "ASC"
}
}
},
{
"multi-schlossausfuehrung.key": {
"terms": {
"field": "attribute_schlossausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 137,
"min": 207.0,
"max": 2372.0,
"avg": 946.4671532846716,
"sum": 129666.0
},
"rating-exists": {
"doc_count": 137,
"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": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "5267ee69add37a0408db89f9cd30c57f",
"manufacturer-count-filter.key": "5267ee69add37a0408db89f9cd30c57f"
},
"doc_count": 87
},
{
"key": {
"manufacturer-count-filter.sorting": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"doc_count": 50
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"width": {
"count": 137,
"min": 680.0,
"max": 1130.0,
"avg": 860.7299270072992,
"sum": 117920.0
},
"width-stats": {
"doc_count": 137,
"width-stats": {
"count": 137,
"min": 680.0,
"max": 1130.0,
"avg": 860.7299270072992,
"sum": 117920.0
}
},
"height": {
"count": 137,
"min": 820.0,
"max": 2150.0,
"avg": 1853.7956204379561,
"sum": 253970.0
},
"height-stats": {
"doc_count": 137,
"height-stats": {
"count": 137,
"min": 820.0,
"max": 2150.0,
"avg": 1853.7956204379561,
"sum": 253970.0
}
},
"tiefe": {
"count": 137,
"min": 280.0,
"max": 590.0,
"avg": 385.54744525547443,
"sum": 52820.0
},
"multi-farbeKorpus": {
"after_key": {
"multi-farbeKorpus.sorting": "RAL 7035 Lichtgrau",
"multi-farbeKorpus.key": "RAL 7035 Lichtgrau"
},
"buckets": [
{
"key": {
"multi-farbeKorpus.sorting": "RAL 5007 Brillantblau",
"multi-farbeKorpus.key": "RAL 5007 Brillantblau"
},
"doc_count": 25
},
{
"key": {
"multi-farbeKorpus.sorting": "RAL 6011 Resedagr\u00fcn",
"multi-farbeKorpus.key": "RAL 6011 Resedagr\u00fcn"
},
"doc_count": 31
},
{
"key": {
"multi-farbeKorpus.sorting": "RAL 7035 Lichtgrau",
"multi-farbeKorpus.key": "RAL 7035 Lichtgrau"
},
"doc_count": 81
}
]
},
"range-anzahlSchubladen": {
"count": 14,
"min": 1.0,
"max": 4.0,
"avg": 2.5714285714285716,
"sum": 36.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Schr\u00e4nke mit K\u00e4sten",
"multi-typModel.key": "Schr\u00e4nke mit K\u00e4sten"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Materialschr\u00e4nke",
"multi-typModel.key": "Materialschr\u00e4nke"
},
"doc_count": 30
},
{
"key": {
"multi-typModel.sorting": "Schr\u00e4nke mit K\u00e4sten",
"multi-typModel.key": "Schr\u00e4nke mit K\u00e4sten"
},
"doc_count": 107
}
]
},
"multi-farbeFront": {
"after_key": {
"multi-farbeFront.sorting": "RAL\u00a07035 Lichtgrau",
"multi-farbeFront.key": "RAL\u00a07035 Lichtgrau"
},
"buckets": [
{
"key": {
"multi-farbeFront.sorting": "RAL 5007 Brillantblau",
"multi-farbeFront.key": "RAL 5007 Brillantblau"
},
"doc_count": 25
},
{
"key": {
"multi-farbeFront.sorting": "RAL 6011 Resedagr\u00fcn",
"multi-farbeFront.key": "RAL 6011 Resedagr\u00fcn"
},
"doc_count": 31
},
{
"key": {
"multi-farbeFront.sorting": "RAL\u00a07035 Lichtgrau",
"multi-farbeFront.key": "RAL\u00a07035 Lichtgrau"
},
"doc_count": 81
}
]
},
"multi-schlossausfuehrung": {
"after_key": {
"multi-schlossausfuehrung.sorting": "Zylinderschloss",
"multi-schlossausfuehrung.key": "Zylinderschloss"
},
"buckets": [
{
"key": {
"multi-schlossausfuehrung.sorting": "Zylinderschloss",
"multi-schlossausfuehrung.key": "Zylinderschloss"
},
"doc_count": 95
}
]
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "9 St\u00fcck",
"multi-anzahlFachboeden.key": "9 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "1 St\u00fcck",
"multi-anzahlFachboeden.key": "1 St\u00fcck"
},
"doc_count": 2
},
{
"key": {
"multi-anzahlFachboeden.sorting": "11 St\u00fcck",
"multi-anzahlFachboeden.key": "11 St\u00fcck"
},
"doc_count": 11
},
{
"key": {
"multi-anzahlFachboeden.sorting": "12 St\u00fcck",
"multi-anzahlFachboeden.key": "12 St\u00fcck"
},
"doc_count": 6
},
{
"key": {
"multi-anzahlFachboeden.sorting": "14 St\u00fcck",
"multi-anzahlFachboeden.key": "14 St\u00fcck"
},
"doc_count": 7
},
{
"key": {
"multi-anzahlFachboeden.sorting": "15 St\u00fcck",
"multi-anzahlFachboeden.key": "15 St\u00fcck"
},
"doc_count": 8
},
{
"key": {
"multi-anzahlFachboeden.sorting": "18 St\u00fcck",
"multi-anzahlFachboeden.key": "18 St\u00fcck"
},
"doc_count": 8
},
{
"key": {
"multi-anzahlFachboeden.sorting": "4 St\u00fcck",
"multi-anzahlFachboeden.key": "4 St\u00fcck"
},
"doc_count": 5
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 6
},
{
"key": {
"multi-anzahlFachboeden.sorting": "6 St\u00fcck",
"multi-anzahlFachboeden.key": "6 St\u00fcck"
},
"doc_count": 24
},
{
"key": {
"multi-anzahlFachboeden.sorting": "7 St\u00fcck",
"multi-anzahlFachboeden.key": "7 St\u00fcck"
},
"doc_count": 10
},
{
"key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"doc_count": 10
},
{
"key": {
"multi-anzahlFachboeden.sorting": "9 St\u00fcck",
"multi-anzahlFachboeden.key": "9 St\u00fcck"
},
"doc_count": 17
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 87
},
{
"key": "e92077b923fe7f60b3b5ea31cceb8c2a",
"doc_count": 50
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|