| 1 |
21.08 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":"9a835274ecddcc622a6f4c47d102d6e0"}},{"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":144,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 7,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 205,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "77059f960929c6a8429ff381d21e56e0",
"_score": 1100.0,
"_source": {
"id": "77059f960929c6a8429ff381d21e56e0",
"autoIncrement": 11424.0
},
"fields": {
"displayGroup": [
"18c41f331bdb682565aa6b412cbb268c"
]
},
"sort": [
0,
1100.0,
0,
11424,
"77059f960929c6a8429ff381d21e56e0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "167521520216c5cf992fe55d4c137f64",
"_score": 1100.0,
"_source": {
"id": "167521520216c5cf992fe55d4c137f64",
"autoIncrement": 11342.0
},
"fields": {
"displayGroup": [
"e2e80ea9571670b8ce52b2f65001cc77"
]
},
"sort": [
0,
1100.0,
0,
11342,
"167521520216c5cf992fe55d4c137f64"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "60055f13b8eae6d77957d285e7ecd4bb",
"_score": 1100.0,
"_source": {
"id": "60055f13b8eae6d77957d285e7ecd4bb",
"autoIncrement": 11241.0
},
"fields": {
"displayGroup": [
"5c2bb876b03ccd16cd99faa468aaf819"
]
},
"sort": [
0,
1100.0,
0,
11241,
"60055f13b8eae6d77957d285e7ecd4bb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1994dde69d12f102e3f47bd90fe6d1e3",
"_score": 1100.0,
"_source": {
"id": "1994dde69d12f102e3f47bd90fe6d1e3",
"autoIncrement": 11194.0
},
"fields": {
"displayGroup": [
"64aa396125fcf2631f32e70e87648b49"
]
},
"sort": [
0,
1100.0,
0,
11194,
"1994dde69d12f102e3f47bd90fe6d1e3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "df763d1c1a48516a1f99d0e5cd47c955",
"_score": 1100.0,
"_source": {
"id": "df763d1c1a48516a1f99d0e5cd47c955",
"autoIncrement": 11107.0
},
"fields": {
"displayGroup": [
"670aef17eb3cd424922bc1fde82fae07"
]
},
"sort": [
0,
1100.0,
0,
11107,
"df763d1c1a48516a1f99d0e5cd47c955"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c2791a3a48a581f49028f27af2aa533f",
"_score": 1100.0,
"_source": {
"id": "c2791a3a48a581f49028f27af2aa533f",
"autoIncrement": 11006.0
},
"fields": {
"displayGroup": [
"eba75c8cc6006ff8d7e1fa992b1d170c"
]
},
"sort": [
0,
1100.0,
0,
11006,
"c2791a3a48a581f49028f27af2aa533f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b59da1fc3e0af73d917540cb9358939f",
"_score": 1100.0,
"_source": {
"id": "b59da1fc3e0af73d917540cb9358939f",
"autoIncrement": 10942.0
},
"fields": {
"displayGroup": [
"538e8174a171bc369a589800a35f8428"
]
},
"sort": [
0,
1100.0,
0,
10942,
"b59da1fc3e0af73d917540cb9358939f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0e659cca3dba00f9f39c6e3b3e443dde",
"_score": 1100.0,
"_source": {
"id": "0e659cca3dba00f9f39c6e3b3e443dde",
"autoIncrement": 10874.0
},
"fields": {
"displayGroup": [
"c3b6fc48ce682acac225e3d32d1b38f5"
]
},
"sort": [
0,
1100.0,
0,
10874,
"0e659cca3dba00f9f39c6e3b3e443dde"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7e051093019d25fbd5f3fff783b27818",
"_score": 1100.0,
"_source": {
"id": "7e051093019d25fbd5f3fff783b27818",
"autoIncrement": 10773.0
},
"fields": {
"displayGroup": [
"35202b49e4ba5d93ba9f028884a91795"
]
},
"sort": [
0,
1100.0,
0,
10773,
"7e051093019d25fbd5f3fff783b27818"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "da6063f64a0861f7bc6593d5ec005051",
"_score": 1100.0,
"_source": {
"id": "da6063f64a0861f7bc6593d5ec005051",
"autoIncrement": 10672.0
},
"fields": {
"displayGroup": [
"33a3d706dbb1d8f2e15f7f6798e5cd29"
]
},
"sort": [
0,
1100.0,
0,
10672,
"da6063f64a0861f7bc6593d5ec005051"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d53f0b8cb061e88afdb8300209bc6407",
"_score": 1100.0,
"_source": {
"id": "d53f0b8cb061e88afdb8300209bc6407",
"autoIncrement": 10573.0
},
"fields": {
"displayGroup": [
"46072e603ab2cfe2051064082155697b"
]
},
"sort": [
0,
1100.0,
0,
10573,
"d53f0b8cb061e88afdb8300209bc6407"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f6132d6f5503872f6e451dc590e7d068",
"_score": 1100.0,
"_source": {
"id": "f6132d6f5503872f6e451dc590e7d068",
"autoIncrement": 10569.0
},
"fields": {
"displayGroup": [
"9473f442f3223fbe82332083753ac76d"
]
},
"sort": [
0,
1100.0,
0,
10569,
"f6132d6f5503872f6e451dc590e7d068"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8d83724a176c7583530d2aebd4f2368c",
"_score": 1100.0,
"_source": {
"id": "8d83724a176c7583530d2aebd4f2368c",
"autoIncrement": 10535.0
},
"fields": {
"displayGroup": [
"961e023a2449f46fa6935453400c626a"
]
},
"sort": [
0,
1100.0,
0,
10535,
"8d83724a176c7583530d2aebd4f2368c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e71db62291f53faf47bac1d915d01134",
"_score": 1100.0,
"_source": {
"id": "e71db62291f53faf47bac1d915d01134",
"autoIncrement": 10523.0
},
"fields": {
"displayGroup": [
"5a3c5f55889546116680c730695131ca"
]
},
"sort": [
0,
1100.0,
0,
10523,
"e71db62291f53faf47bac1d915d01134"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4c0714db111a99a1bf427d9319080543",
"_score": 1100.0,
"_source": {
"id": "4c0714db111a99a1bf427d9319080543",
"autoIncrement": 10522.0
},
"fields": {
"displayGroup": [
"0f200b27a4b0ce030ad34499ebd921db"
]
},
"sort": [
0,
1100.0,
0,
10522,
"4c0714db111a99a1bf427d9319080543"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6c8f68fda9cba0bca1c40f08e99ac879",
"_score": 1100.0,
"_source": {
"id": "6c8f68fda9cba0bca1c40f08e99ac879",
"autoIncrement": 10479.0
},
"fields": {
"displayGroup": [
"2c1d1e78e08116c40d8b4d0829e7afe3"
]
},
"sort": [
0,
1100.0,
0,
10479,
"6c8f68fda9cba0bca1c40f08e99ac879"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "08350fb7845fa377fcfb03ae180ad725",
"_score": 1100.0,
"_source": {
"id": "08350fb7845fa377fcfb03ae180ad725",
"autoIncrement": 10192.0
},
"fields": {
"displayGroup": [
"2a5dff03d9fc6abd468d0d4449f0fa1f"
]
},
"sort": [
0,
1100.0,
0,
10192,
"08350fb7845fa377fcfb03ae180ad725"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4b96b2332c91e9560390371bb25bea25",
"_score": 1100.0,
"_source": {
"id": "4b96b2332c91e9560390371bb25bea25",
"autoIncrement": 10191.0
},
"fields": {
"displayGroup": [
"0283ae11f9630fef6df2c738329f47fe"
]
},
"sort": [
0,
1100.0,
0,
10191,
"4b96b2332c91e9560390371bb25bea25"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dc3496c1cf13fe09657cc6532f7931ab",
"_score": 1100.0,
"_source": {
"id": "dc3496c1cf13fe09657cc6532f7931ab",
"autoIncrement": 10190.0
},
"fields": {
"displayGroup": [
"2cc098c1bb914b254cdf5fd29c2831f5"
]
},
"sort": [
0,
1100.0,
0,
10190,
"dc3496c1cf13fe09657cc6532f7931ab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "aa648b8cd5e0c30bdab72449e5739948",
"_score": 1100.0,
"_source": {
"id": "aa648b8cd5e0c30bdab72449e5739948",
"autoIncrement": 10189.0
},
"fields": {
"displayGroup": [
"42e5760386bf08f128f99c9459087a47"
]
},
"sort": [
0,
1100.0,
0,
10189,
"aa648b8cd5e0c30bdab72449e5739948"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a48aa6c5723f70d75e5f524ff83051f7",
"_score": 1100.0,
"_source": {
"id": "a48aa6c5723f70d75e5f524ff83051f7",
"autoIncrement": 10188.0
},
"fields": {
"displayGroup": [
"7bbb1aa64aa4253a6dd0ecde81130fb5"
]
},
"sort": [
0,
1100.0,
0,
10188,
"a48aa6c5723f70d75e5f524ff83051f7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "110d33c5f17322beabdfe1be9db78823",
"_score": 1100.0,
"_source": {
"id": "110d33c5f17322beabdfe1be9db78823",
"autoIncrement": 10187.0
},
"fields": {
"displayGroup": [
"07ee76733eb0f03baa71dba99082a460"
]
},
"sort": [
0,
1100.0,
0,
10187,
"110d33c5f17322beabdfe1be9db78823"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d289be71b564983b600d639e205767a7",
"_score": 1100.0,
"_source": {
"id": "d289be71b564983b600d639e205767a7",
"autoIncrement": 10185.0
},
"fields": {
"displayGroup": [
"50d35b93afa63fbecce97357d21a173d"
]
},
"sort": [
0,
1100.0,
0,
10185,
"d289be71b564983b600d639e205767a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "84a50a731eed60b7ffafe8b0f7dbf361",
"_score": 1100.0,
"_source": {
"id": "84a50a731eed60b7ffafe8b0f7dbf361",
"autoIncrement": 8602.0
},
"fields": {
"displayGroup": [
"86c4c583d358f09d50ad79453bc1a93a"
]
},
"sort": [
0,
1100.0,
0,
8602,
"84a50a731eed60b7ffafe8b0f7dbf361"
]
}
]
},
"aggregations": {
"total-count": {
"value": 205
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.10 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":"9a835274ecddcc622a6f4c47d102d6e0"}},{"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": "9a835274ecddcc622a6f4c47d102d6e0"
}
},
{
"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": 205,
"min": 26.0,
"max": 578.0,
"avg": 140.50243902439024,
"sum": 28803.0
},
"rating-exists": {
"doc_count": 205,
"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": "d911a3bcb632c3cd6fc95ba75c80ee67",
"manufacturer-count-filter.key": "d911a3bcb632c3cd6fc95ba75c80ee67"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "2e30356d97a7f9b781e52c96f19f58e3",
"manufacturer-count-filter.key": "2e30356d97a7f9b781e52c96f19f58e3"
},
"doc_count": 13
},
{
"key": {
"manufacturer-count-filter.sorting": "339b2f19a3f2821963c7d2b0ca441bd2",
"manufacturer-count-filter.key": "339b2f19a3f2821963c7d2b0ca441bd2"
},
"doc_count": 10
},
{
"key": {
"manufacturer-count-filter.sorting": "5f3a897d0545c96e4d639d12b4e1dedb",
"manufacturer-count-filter.key": "5f3a897d0545c96e4d639d12b4e1dedb"
},
"doc_count": 18
},
{
"key": {
"manufacturer-count-filter.sorting": "69743c9e60e48b992af6fe3e952e1c52",
"manufacturer-count-filter.key": "69743c9e60e48b992af6fe3e952e1c52"
},
"doc_count": 20
},
{
"key": {
"manufacturer-count-filter.sorting": "76638a9a6947ed826ef9983b5593977b",
"manufacturer-count-filter.key": "76638a9a6947ed826ef9983b5593977b"
},
"doc_count": 32
},
{
"key": {
"manufacturer-count-filter.sorting": "d6f4440b8633f973d33c78928bdac2e1",
"manufacturer-count-filter.key": "d6f4440b8633f973d33c78928bdac2e1"
},
"doc_count": 39
},
{
"key": {
"manufacturer-count-filter.sorting": "d911a3bcb632c3cd6fc95ba75c80ee67",
"manufacturer-count-filter.key": "d911a3bcb632c3cd6fc95ba75c80ee67"
},
"doc_count": 1
}
]
},
"bool-reduced": {
"doc_count": 8,
"bool-reduced": {
"value": 8
}
},
"width": {
"count": 80,
"min": 218.0,
"max": 593.0,
"avg": 427.6375,
"sum": 34211.0
},
"width-stats": {
"doc_count": 80,
"width-stats": {
"count": 80,
"min": 218.0,
"max": 593.0,
"avg": 427.6375,
"sum": 34211.0
}
},
"height": {
"count": 189,
"min": 260.0,
"max": 935.0,
"avg": 559.7566137566138,
"sum": 105794.0
},
"height-stats": {
"doc_count": 189,
"height-stats": {
"count": 189,
"min": 260.0,
"max": 935.0,
"avg": 559.7566137566138,
"sum": 105794.0
}
},
"tiefe": {
"count": 80,
"min": 210.0,
"max": 530.0,
"avg": 328.1,
"sum": 26248.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Wertstoffsammler",
"multi-typModel.key": "Wertstoffsammler"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Abfallsammler",
"multi-typModel.key": "Abfallsammler"
},
"doc_count": 157
},
{
"key": {
"multi-typModel.sorting": "M\u00fcllgro\u00dfbeh\u00e4lter",
"multi-typModel.key": "M\u00fcllgro\u00dfbeh\u00e4lter"
},
"doc_count": 1
},
{
"key": {
"multi-typModel.sorting": "Sicherheitspapierk\u00f6rbe",
"multi-typModel.key": "Sicherheitspapierk\u00f6rbe"
},
"doc_count": 33
},
{
"key": {
"multi-typModel.sorting": "Wertstoffsammler",
"multi-typModel.key": "Wertstoffsammler"
},
"doc_count": 14
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "Edelstahl",
"multi-farbe.key": "Edelstahl"
},
"doc_count": 23
},
{
"key": {
"multi-farbe.sorting": "Edelstahl (Fingerprint Proof)",
"multi-farbe.key": "Edelstahl (Fingerprint Proof)"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "Edelstahl\/schwarz",
"multi-farbe.key": "Edelstahl\/schwarz"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "anthrazit",
"multi-farbe.key": "anthrazit"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "beige",
"multi-farbe.key": "beige"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "blau",
"multi-farbe.key": "blau"
},
"doc_count": 8
},
{
"key": {
"multi-farbe.sorting": "bordeaux",
"multi-farbe.key": "bordeaux"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "enzianblau",
"multi-farbe.key": "enzianblau"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "gelb",
"multi-farbe.key": "gelb"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "gold",
"multi-farbe.key": "gold"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "grau",
"multi-farbe.key": "grau"
},
"doc_count": 10
},
{
"key": {
"multi-farbe.sorting": "hellgrau",
"multi-farbe.key": "hellgrau"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "lichtgrau",
"multi-farbe.key": "lichtgrau"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "rot",
"multi-farbe.key": "rot"
},
"doc_count": 16
},
{
"key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"doc_count": 34
},
{
"key": {
"multi-farbe.sorting": "silber",
"multi-farbe.key": "silber"
},
"doc_count": 16
},
{
"key": {
"multi-farbe.sorting": "silbermetallic",
"multi-farbe.key": "silbermetallic"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "tiefschwarz",
"multi-farbe.key": "tiefschwarz"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"doc_count": 13
},
{
"key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"doc_count": 27
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Edelstahl",
"multi-material.key": "Edelstahl"
},
"doc_count": 31
},
{
"key": {
"multi-material.sorting": "Fiberglas",
"multi-material.key": "Fiberglas"
},
"doc_count": 1
},
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 72
},
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 83
},
{
"key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"doc_count": 5
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "d6f4440b8633f973d33c78928bdac2e1",
"doc_count": 39
},
{
"key": "76638a9a6947ed826ef9983b5593977b",
"doc_count": 32
},
{
"key": "69743c9e60e48b992af6fe3e952e1c52",
"doc_count": 20
},
{
"key": "5f3a897d0545c96e4d639d12b4e1dedb",
"doc_count": 18
},
{
"key": "2e30356d97a7f9b781e52c96f19f58e3",
"doc_count": 13
},
{
"key": "339b2f19a3f2821963c7d2b0ca441bd2",
"doc_count": 10
},
{
"key": "d911a3bcb632c3cd6fc95ba75c80ee67",
"doc_count": 1
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|