1 |
3.99 ms |
Request:
{"index":"sw-staging_product","search_type":"query_then_fetch","track_total_hits":true,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"nested":{"path":"visibilities","query":{"bool":{"must":[{"range":{"visibilities.visibility":{"gte":30}}},{"term":{"visibilities.salesChannelId":"018d01736b31710085073ce4a19b2b37"}}]}}}},{"term":{"active":true}}]}},{"bool":{"should":[{"bool":{"must":[{"nested":{"path":"properties","query":{"term":{"properties.id":"0190fde2e2af731bb70e020e3c9f8133"}}}},{"term":{"active":true}}]}}]}},{"bool":{"must_not":[{"bool":{"must_not":[{"exists":{"field":"displayGroup"}}]}}]}}]}}]}},"sort":[{"_script":{"type":"number","script":{"source":"def languages = params['languages'];\ndef suffix = params.containsKey('suffix') ? '.' + params['suffix'] : '';\n\nfor (int i = 0; i < languages.length; i++) {\n def field_name = params['field'] + '.' + languages[i] + suffix;\n\n if (doc[field_name].size() > 0 && doc[field_name].value != null && doc[field_name].value.toString().length() > 0) {\n def fieldValue = doc[field_name].value;\n\n return fieldValue;\n }\n}\n\nif (params['order'] == 'asc') {\n return Double.MAX_VALUE;\n}\n\nreturn Double.MIN_VALUE;\n","lang":"painless","params":{"field":"customFields","languages":["2fbb5fe2e29a4d70aa5854ce7ce3e20b"],"suffix":"acris_search_sorting_relevance","order":"desc"}},"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":0,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 132,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "sw-staging_product_1755509385",
"_id": "01993e06082773dd857df36a9f2e685a",
"_score": 0.0,
"_source": {
"autoIncrement": 24350.0,
"id": "01993e06082773dd857df36a9f2e685a"
},
"fields": {
"displayGroup": [
"6fa82a8964932cae6c5fc46b8454594b"
]
},
"sort": [
0.0,
0.0,
0,
24350,
"01993e06082773dd857df36a9f2e685a"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198f0442590722c9e70875d3a07b6c0",
"_score": 0.0,
"_source": {
"autoIncrement": 24336.0,
"id": "0198f0442590722c9e70875d3a07b6c0"
},
"fields": {
"displayGroup": [
"a4fb9888d6496c31c379dcb54e6d043f"
]
},
"sort": [
0.0,
0.0,
0,
24336,
"0198f0442590722c9e70875d3a07b6c0"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198cca4c37a73508844daebb73d5b8f",
"_score": 0.0,
"_source": {
"autoIncrement": 24327.0,
"id": "0198cca4c37a73508844daebb73d5b8f"
},
"fields": {
"displayGroup": [
"0cd0634a7bdf07860abcc8438d32a76d"
]
},
"sort": [
0.0,
0.0,
0,
24327,
"0198cca4c37a73508844daebb73d5b8f"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198cc8ac4a4700e975b809a2e9e6321",
"_score": 0.0,
"_source": {
"autoIncrement": 24323.0,
"id": "0198cc8ac4a4700e975b809a2e9e6321"
},
"fields": {
"displayGroup": [
"c95ebaba349cc6fc86ae979f20ef27af"
]
},
"sort": [
0.0,
0.0,
0,
24323,
"0198cc8ac4a4700e975b809a2e9e6321"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01989ebf5dd47122996848ad69b865a1",
"_score": 0.0,
"_source": {
"autoIncrement": 24295.0,
"id": "01989ebf5dd47122996848ad69b865a1"
},
"fields": {
"displayGroup": [
"1641a421f7fb268f410b4752a62e5d3a"
]
},
"sort": [
0.0,
0.0,
0,
24295,
"01989ebf5dd47122996848ad69b865a1"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01989eb478e972bcb962a60bdfd31523",
"_score": 0.0,
"_source": {
"autoIncrement": 24294.0,
"id": "01989eb478e972bcb962a60bdfd31523"
},
"fields": {
"displayGroup": [
"c3394477457fc3b70dcaa35df50c3552"
]
},
"sort": [
0.0,
0.0,
0,
24294,
"01989eb478e972bcb962a60bdfd31523"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01989e847ab0736b8615d2dbde77e6e0",
"_score": 0.0,
"_source": {
"autoIncrement": 24293.0,
"id": "01989e847ab0736b8615d2dbde77e6e0"
},
"fields": {
"displayGroup": [
"68c64a174e57b8b5a7fa2898f646f068"
]
},
"sort": [
0.0,
0.0,
0,
24293,
"01989e847ab0736b8615d2dbde77e6e0"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985550b9207062aab7830fe9848c6c",
"_score": 0.0,
"_source": {
"autoIncrement": 24200.0,
"id": "01985550b9207062aab7830fe9848c6c"
},
"fields": {
"displayGroup": [
"b2ee806aa734cfceb8ef2ce09b2f8ff7"
]
},
"sort": [
0.0,
0.0,
0,
24200,
"01985550b9207062aab7830fe9848c6c"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198517edba7716e80699f8233eab0b9",
"_score": 0.0,
"_source": {
"autoIncrement": 24116.0,
"id": "0198517edba7716e80699f8233eab0b9"
},
"fields": {
"displayGroup": [
"f10426425127676d74df499ea6362dd2"
]
},
"sort": [
0.0,
0.0,
0,
24116,
"0198517edba7716e80699f8233eab0b9"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198514eb6147c9cab9fa2b5e360d85a",
"_score": 0.0,
"_source": {
"autoIncrement": 24091.0,
"id": "0198514eb6147c9cab9fa2b5e360d85a"
},
"fields": {
"displayGroup": [
"c6734bea58944d5da30521ec4ea2d13d"
]
},
"sort": [
0.0,
0.0,
0,
24091,
"0198514eb6147c9cab9fa2b5e360d85a"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb86b07c729f8466a58d5c61173a",
"_score": 0.0,
"_source": {
"autoIncrement": 23978.0,
"id": "0197cb86b07c729f8466a58d5c61173a"
},
"fields": {
"displayGroup": [
"c5dca9ee82597cadddfa253c80cce19e"
]
},
"sort": [
0.0,
0.0,
0,
23978,
"0197cb86b07c729f8466a58d5c61173a"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb86892f712c8323c5056719bb97",
"_score": 0.0,
"_source": {
"autoIncrement": 23949.0,
"id": "0197cb86892f712c8323c5056719bb97"
},
"fields": {
"displayGroup": [
"69d80be2947bd2eecb78aae23fa0d840"
]
},
"sort": [
0.0,
0.0,
0,
23949,
"0197cb86892f712c8323c5056719bb97"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb8650ce7162be9bec276e0a8eef",
"_score": 0.0,
"_source": {
"autoIncrement": 23905.0,
"id": "0197cb8650ce7162be9bec276e0a8eef"
},
"fields": {
"displayGroup": [
"f98270cf29836e820c5991a9161a8c1f"
]
},
"sort": [
0.0,
0.0,
0,
23905,
"0197cb8650ce7162be9bec276e0a8eef"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb864f8a728bbb0ee49f03d2c723",
"_score": 0.0,
"_source": {
"autoIncrement": 23904.0,
"id": "0197cb864f8a728bbb0ee49f03d2c723"
},
"fields": {
"displayGroup": [
"e24486e5db3fbc29e3771d14a1dc7152"
]
},
"sort": [
0.0,
0.0,
0,
23904,
"0197cb864f8a728bbb0ee49f03d2c723"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb864eaa71bc84836fb7867a2d71",
"_score": 0.0,
"_source": {
"autoIncrement": 23903.0,
"id": "0197cb864eaa71bc84836fb7867a2d71"
},
"fields": {
"displayGroup": [
"b4f99658ca6a02f64db7f8da7f5ed0ed"
]
},
"sort": [
0.0,
0.0,
0,
23903,
"0197cb864eaa71bc84836fb7867a2d71"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb864d9473c6b47645976c2f3b5d",
"_score": 0.0,
"_source": {
"autoIncrement": 23902.0,
"id": "0197cb864d9473c6b47645976c2f3b5d"
},
"fields": {
"displayGroup": [
"6a61ec7a2944503e822226acbcb10219"
]
},
"sort": [
0.0,
0.0,
0,
23902,
"0197cb864d9473c6b47645976c2f3b5d"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb863207729481c11b6e328d75cc",
"_score": 0.0,
"_source": {
"autoIncrement": 23879.0,
"id": "0197cb863207729481c11b6e328d75cc"
},
"fields": {
"displayGroup": [
"ceed2e519661a9b6caf1cb6487245e75"
]
},
"sort": [
0.0,
0.0,
0,
23879,
"0197cb863207729481c11b6e328d75cc"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb86286172b089ba38dd93b68218",
"_score": 0.0,
"_source": {
"autoIncrement": 23871.0,
"id": "0197cb86286172b089ba38dd93b68218"
},
"fields": {
"displayGroup": [
"250bfc02f22d7310311c95e3f6b36ef1"
]
},
"sort": [
0.0,
0.0,
0,
23871,
"0197cb86286172b089ba38dd93b68218"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb8621ba72939a465548528475c1",
"_score": 0.0,
"_source": {
"autoIncrement": 23866.0,
"id": "0197cb8621ba72939a465548528475c1"
},
"fields": {
"displayGroup": [
"101a665606c21ce65ab6e35b09d45247"
]
},
"sort": [
0.0,
0.0,
0,
23866,
"0197cb8621ba72939a465548528475c1"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb86179e70cc9a1469260b20eb21",
"_score": 0.0,
"_source": {
"autoIncrement": 23859.0,
"id": "0197cb86179e70cc9a1469260b20eb21"
},
"fields": {
"displayGroup": [
"77f850f5233b5ecfea334f14ae8f7d98"
]
},
"sort": [
0.0,
0.0,
0,
23859,
"0197cb86179e70cc9a1469260b20eb21"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb860fbf70a6af0a9030a6b8f9c3",
"_score": 0.0,
"_source": {
"autoIncrement": 23852.0,
"id": "0197cb860fbf70a6af0a9030a6b8f9c3"
},
"fields": {
"displayGroup": [
"b72ca1e3422f4edf73d34b0bc0041027"
]
},
"sort": [
0.0,
0.0,
0,
23852,
"0197cb860fbf70a6af0a9030a6b8f9c3"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb85f5e8715da824b31fcc22bdf0",
"_score": 0.0,
"_source": {
"autoIncrement": 23832.0,
"id": "0197cb85f5e8715da824b31fcc22bdf0"
},
"fields": {
"displayGroup": [
"4ef2f223f7b37947dd1b4c1deef07cd4"
]
},
"sort": [
0.0,
0.0,
0,
23832,
"0197cb85f5e8715da824b31fcc22bdf0"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb85e4127119b11eda527151f573",
"_score": 0.0,
"_source": {
"autoIncrement": 23823.0,
"id": "0197cb85e4127119b11eda527151f573"
},
"fields": {
"displayGroup": [
"e2c42d1d39d3a8b554686f440168c445"
]
},
"sort": [
0.0,
0.0,
0,
23823,
"0197cb85e4127119b11eda527151f573"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb85de4f7141a533cdceff412e28",
"_score": 0.0,
"_source": {
"autoIncrement": 23819.0,
"id": "0197cb85de4f7141a533cdceff412e28"
},
"fields": {
"displayGroup": [
"95df78216c38f05bb9084c9bf6076d67"
]
},
"sort": [
0.0,
0.0,
0,
23819,
"0197cb85de4f7141a533cdceff412e28"
]
}
]
},
"aggregations": {
"total-count": {
"value": 132
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
2 |
3.66 ms |
Request:
{"index":"sw-staging_product","track_total_hits":false,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"nested":{"path":"visibilities","query":{"bool":{"must":[{"range":{"visibilities.visibility":{"gte":30}}},{"term":{"visibilities.salesChannelId":"018d01736b31710085073ce4a19b2b37"}}]}}}},{"term":{"active":true}}]}},{"bool":{"should":[{"bool":{"must":[{"nested":{"path":"properties","query":{"term":{"properties.id":"0190fde2e2af731bb70e020e3c9f8133"}}}},{"term":{"active":true}}]}}]}},{"bool":{"must_not":[{"bool":{"must_not":[{"exists":{"field":"displayGroup"}}]}}]}}]}}]}},"aggregations":{"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"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_rule019928709f487259bbc34c29afc4be6d_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d0163d2ce72fe8b0728a642b4042f_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d0163d35c71528f3f85ab4edbfce9_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d0164030b7131bbf732b6cdd045f8_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d017d87c971e284588c2bab64fc6c_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018df3dca4dc70dc9d8955300dfa54b3_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018f52ec7ad97053adbba87acd431267_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018f52ec7aec70afa4294f02dbeb6cff_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01987f3e2d7a7382a91854b9f17706e6_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01987f4aff9672c68c35e38c34822856_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule0198e1ef5bfe7d0c8c7e3a144d5ed318_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019889ada060713fb1cab5134c90045e_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule0196d39e8fa07f518ea67268325e9d73_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule0196d879404475a88dc0ac502e0b7ada_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01987f294a4e73e8999e21f34612201b_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d017d889d70c6a53a7c9aa1c04cc9_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule018d02284fa87229858f8decad12dd24_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019440472dad70ea836ab0b8dbb2c63b_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019440472e9b7194bfdf7e02f0d0b7d8_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019440472fc0710ebe371fb24996b058_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019440472fea71a2aa90640bd545b58e_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule019440473012718f84cc75c44ace5494_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047301a73eabdec8bb977e6e6f1_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047303e700e9ad384c92dd1f000_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047305872f3a49d7e56eb3f9aa6_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047305e7354a561cd03a0cf3217_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047319670d19ba00ffb56496ca0_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047323971679b378ec7a290c458_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047323e70ac9c0eb9dedc877a48_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047324471e49ad453603c99a659_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047327270d4898a4f601343774c_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule01944047328970b39b22abefa86d94e7_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule0194404732d6721fa645849e801e1606_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_rule0194404732df730bb2e0ff2234bce95f_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross","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-filter":{"nested":{"path":"properties"},"aggregations":{"properties-filter":{"filter":{"terms":{"properties.groupId":["018d022bdd70702a9c7a8db29b279d91","018d022c3a0272c1a5f5e901b4ca7fdb","018d022bedaa7013a962905d996cb5a8","018d022bd93d7095a6f4dfd4fc66f79b","018d022c2085711085e1e54a3637eb3a","018d022bde5572ba8905ee4e16635ba2"]}},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}}}},"options-filter":{"nested":{"path":"options"},"aggregations":{"options-filter":{"filter":{"terms":{"options.groupId":["018d022bdd70702a9c7a8db29b279d91","018d022c3a0272c1a5f5e901b4ca7fdb","018d022bedaa7013a962905d996cb5a8","018d022bd93d7095a6f4dfd4fc66f79b","018d022c2085711085e1e54a3637eb3a","018d022bde5572ba8905ee4e16635ba2"]}},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}}}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
POST http://localhost:9500/sw-staging_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": [
{
"nested": {
"path": "visibilities",
"query": {
"bool": {
"must": [
{
"range": {
"visibilities.visibility": {
"gte": 30
}
}
},
{
"term": {
"visibilities.salesChannelId": "018d01736b31710085073ce4a19b2b37"
}
}
]
}
}
}
},
{
"term": {
"active": true
}
}
]
}
},
{
"bool": {
"should": [
{
"bool": {
"must": [
{
"nested": {
"path": "properties",
"query": {
"term": {
"properties.id": "0190fde2e2af731bb70e020e3c9f8133"
}
}
}
},
{
"term": {
"active": true
}
}
]
}
}
]
}
},
{
"bool": {
"must_not": [
{
"bool": {
"must_not": [
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
}
]
}
}
]
}
},
"aggregations": {
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"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_rule019928709f487259bbc34c29afc4be6d_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d0163d2ce72fe8b0728a642b4042f_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d0163d35c71528f3f85ab4edbfce9_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d0164030b7131bbf732b6cdd045f8_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d017d87c971e284588c2bab64fc6c_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018df3dca4dc70dc9d8955300dfa54b3_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018f52ec7ad97053adbba87acd431267_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018f52ec7aec70afa4294f02dbeb6cff_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01987f3e2d7a7382a91854b9f17706e6_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01987f4aff9672c68c35e38c34822856_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule0198e1ef5bfe7d0c8c7e3a144d5ed318_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019889ada060713fb1cab5134c90045e_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule0196d39e8fa07f518ea67268325e9d73_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule0196d879404475a88dc0ac502e0b7ada_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01987f294a4e73e8999e21f34612201b_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d017d889d70c6a53a7c9aa1c04cc9_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule018d02284fa87229858f8decad12dd24_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019440472dad70ea836ab0b8dbb2c63b_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019440472e9b7194bfdf7e02f0d0b7d8_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019440472fc0710ebe371fb24996b058_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019440472fea71a2aa90640bd545b58e_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule019440473012718f84cc75c44ace5494_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047301a73eabdec8bb977e6e6f1_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047303e700e9ad384c92dd1f000_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047305872f3a49d7e56eb3f9aa6_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047305e7354a561cd03a0cf3217_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047319670d19ba00ffb56496ca0_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047323971679b378ec7a290c458_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047323e70ac9c0eb9dedc877a48_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047324471e49ad453603c99a659_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047327270d4898a4f601343774c_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule01944047328970b39b22abefa86d94e7_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule0194404732d6721fa645849e801e1606_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_rule0194404732df730bb2e0ff2234bce95f_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_gross",
"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-filter": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties-filter": {
"filter": {
"terms": {
"properties.groupId": [
"018d022bdd70702a9c7a8db29b279d91",
"018d022c3a0272c1a5f5e901b4ca7fdb",
"018d022bedaa7013a962905d996cb5a8",
"018d022bd93d7095a6f4dfd4fc66f79b",
"018d022c2085711085e1e54a3637eb3a",
"018d022bde5572ba8905ee4e16635ba2"
]
}
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
}
}
},
"options-filter": {
"nested": {
"path": "options"
},
"aggregations": {
"options-filter": {
"filter": {
"terms": {
"options.groupId": [
"018d022bdd70702a9c7a8db29b279d91",
"018d022c3a0272c1a5f5e901b4ca7fdb",
"018d022bedaa7013a962905d996cb5a8",
"018d022bd93d7095a6f4dfd4fc66f79b",
"018d022c2085711085e1e54a3637eb3a",
"018d022bde5572ba8905ee4e16635ba2"
]
}
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
}
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"shipping-free-filter": {
"doc_count": 0,
"shipping-free": {
"value": null
}
},
"properties-filter": {
"doc_count": 3484,
"properties-filter": {
"doc_count": 820,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d022bddd473e983cd961ff442364d",
"doc_count": 104
},
{
"key": "018d022bdd2370a1b115725042f5c511",
"doc_count": 88
},
{
"key": "018d022c3a6271f290d7ef6e169a0730",
"doc_count": 50
},
{
"key": "018d022c3a407182b69327f39ec7082b",
"doc_count": 42
},
{
"key": "018d022bdd1172bf9a832c8ef29ca6b5",
"doc_count": 37
},
{
"key": "018d022bdf617298bc439b09b0466245",
"doc_count": 30
},
{
"key": "018d022bf89871fd918b610f64b0f557",
"doc_count": 30
},
{
"key": "018d022c2418700fa3bbe8becded631c",
"doc_count": 27
},
{
"key": "01943fcfc01372dbb0d41dc3f9ee3c7d",
"doc_count": 25
},
{
"key": "018d022bdf5b711b9339414fc0920beb",
"doc_count": 24
},
{
"key": "018d022c3a1b72518c04feb03dbf326b",
"doc_count": 20
},
{
"key": "018d022bf84f7340a2d5e70e0f17cd2a",
"doc_count": 19
},
{
"key": "018d022c250d700cb50704d856a25e4a",
"doc_count": 17
},
{
"key": "018d022bdf54736784570bc2af13104e",
"doc_count": 15
},
{
"key": "018d022c2605734db3780fd38084ce08",
"doc_count": 15
},
{
"key": "018d022bdf41726ea0bca4c57f5e0e37",
"doc_count": 12
},
{
"key": "018d022bf8e5737dad197d68c1d8089b",
"doc_count": 12
},
{
"key": "018d022c254b7333b452696be30d78f7",
"doc_count": 10
},
{
"key": "018d022bddb37271a1646f296db49a56",
"doc_count": 9
},
{
"key": "018d022bf3c9728c8774835078709cf0",
"doc_count": 9
},
{
"key": "018d022bf999711bbb5b9e0bae7a55b9",
"doc_count": 9
},
{
"key": "018d022c248f70ed8d004672f64509a2",
"doc_count": 9
},
{
"key": "018d022c256e7109853b635115e4addd",
"doc_count": 9
},
{
"key": "018d022c25e4729eb01b4148168084b4",
"doc_count": 9
},
{
"key": "018d022bddbb70bcb02be090cb4c500f",
"doc_count": 8
},
{
"key": "018d022bdde27299ab4e9793f5b76f5b",
"doc_count": 8
},
{
"key": "018d022bf3fa7042b4bca58267b0579f",
"doc_count": 8
},
{
"key": "018d022c3a29724986aa5f199fa66adc",
"doc_count": 8
},
{
"key": "018d022c3a5972c094bd27285fc5e216",
"doc_count": 7
},
{
"key": "018d022bf1a272b1a884228150d00570",
"doc_count": 6
},
{
"key": "018d022bf3a5702aa0d51bbceeb3b7d9",
"doc_count": 6
},
{
"key": "018d022bf1ec71829e91c8f34d7ce340",
"doc_count": 5
},
{
"key": "018d022bf213725bb964d16a460f3b01",
"doc_count": 5
},
{
"key": "018d022bf8bf731cbf0711bc85556f9b",
"doc_count": 5
},
{
"key": "018d022c246d70c88aaf989c07f7c45f",
"doc_count": 5
},
{
"key": "018d022c24dd72929aff67c77eff23f5",
"doc_count": 5
},
{
"key": "018d022c254372d58ba9d5ecfdbe562c",
"doc_count": 5
},
{
"key": "018d022bdf2c735d8ef11eed6f1aeb5a",
"doc_count": 4
},
{
"key": "018d022bf8de7006b92874d86050997d",
"doc_count": 4
},
{
"key": "018d022c3a39720592e63c5a784344c9",
"doc_count": 4
},
{
"key": "018d022bd94771858d8c5494f21c23bb",
"doc_count": 3
},
{
"key": "018d022bdf1c7278bf94eeb138febace",
"doc_count": 3
},
{
"key": "018d022bedd472b8993db4a8c8ac7136",
"doc_count": 3
},
{
"key": "018d022bf37b73caaa0f517d0b647286",
"doc_count": 3
},
{
"key": "018d022bf3957294acb0e1d64c27d57c",
"doc_count": 3
},
{
"key": "018d022bfa217225b71e937b796eb34c",
"doc_count": 3
},
{
"key": "018d022c247e7242b7c418eed9e365ce",
"doc_count": 3
},
{
"key": "018d022c2578708498b655cb306b76c9",
"doc_count": 3
},
{
"key": "018d022c25be73eead1ca86ca739efa3",
"doc_count": 3
},
{
"key": "018f52e9944b7154bebb220a5c75f329",
"doc_count": 3
},
{
"key": "0190fde2de8072e0a28a068c4008e599",
"doc_count": 3
},
{
"key": "018d022bdd577122addb2b9102c279e6",
"doc_count": 2
},
{
"key": "018d022bee0270a9bef682e58ee3395e",
"doc_count": 2
},
{
"key": "018d022bf219726792f3571cc5b89043",
"doc_count": 2
},
{
"key": "018d022bf2d372bc9b09217194689f06",
"doc_count": 2
},
{
"key": "018d022bf32872cba123fba6a30d5bfb",
"doc_count": 2
},
{
"key": "018d022bf3ad7054966ffd42bd7ba343",
"doc_count": 2
},
{
"key": "018d022bf46071b1a094b31df279988e",
"doc_count": 2
},
{
"key": "018d022bf89073d09258350bec9f0049",
"doc_count": 2
},
{
"key": "018d022bfa12719ab45bf9ab32cd3cc6",
"doc_count": 2
},
{
"key": "018d022c24a570a98f686eaf1c3c02f2",
"doc_count": 2
},
{
"key": "018d022c25dc704fb7e96644ae17587d",
"doc_count": 2
},
{
"key": "018d022bdd3e7214858674cc1b1e9666",
"doc_count": 1
},
{
"key": "018d022bdd4673e8b576e090ae2a4118",
"doc_count": 1
},
{
"key": "018d022bde0b7030b49637290b0bce22",
"doc_count": 1
},
{
"key": "018d022bdeb2715fb3a35897bf92a8fb",
"doc_count": 1
},
{
"key": "018d022bdf0570f4b4968ec9846d1af5",
"doc_count": 1
},
{
"key": "018d022bdf1373a8ba218cea4ce9966d",
"doc_count": 1
},
{
"key": "018d022bedbe73dab6746d7464e8641e",
"doc_count": 1
},
{
"key": "018d022bf23171bcb9f4f93316d65090",
"doc_count": 1
},
{
"key": "018d022bf27c7204849c6cd607137bb3",
"doc_count": 1
},
{
"key": "018d022bf293701e8f6394a03cf6bdbf",
"doc_count": 1
},
{
"key": "018d022bf29b73fb85cc0a161e7c0a8a",
"doc_count": 1
},
{
"key": "018d022bf2ab72178f3a9fe295bbd77d",
"doc_count": 1
},
{
"key": "018d022bf2c1713094328a77b34f881d",
"doc_count": 1
},
{
"key": "018d022bf2df72108e277baf11481262",
"doc_count": 1
},
{
"key": "018d022bf38a73cb847517aec23ee7fb",
"doc_count": 1
},
{
"key": "018d022bf3bc725896b16e825fbaa39b",
"doc_count": 1
},
{
"key": "018d022bf3e072608093b11f2b1a231e",
"doc_count": 1
},
{
"key": "018d022bf3ec729b8cac4bc9f9f95729",
"doc_count": 1
},
{
"key": "018d022bf40a70b78b9a255f692a26ff",
"doc_count": 1
},
{
"key": "018d022bf436702fb1b1621fa6fcdac3",
"doc_count": 1
},
{
"key": "018d022bf44c71e2b1d5e344dda29343",
"doc_count": 1
},
{
"key": "018d022bf476710dbd2fcb99eb615cb0",
"doc_count": 1
},
{
"key": "018d022bf48573c8937ff30f2e1134fb",
"doc_count": 1
},
{
"key": "018d022bf48d715c85e5d40f2506a3c2",
"doc_count": 1
},
{
"key": "018d022bf888714db44794588d1e5fc6",
"doc_count": 1
},
{
"key": "018d022bf8ed71f5b635798388aa2430",
"doc_count": 1
},
{
"key": "018d022bf8fc70c1871609386603b4ee",
"doc_count": 1
},
{
"key": "018d022bf92b72a8b41958cc8a3de7bf",
"doc_count": 1
},
{
"key": "018d022c2083703a9fb74c3c47358e19",
"doc_count": 1
},
{
"key": "018d022c249e71f999904fe4ab1fa224",
"doc_count": 1
},
{
"key": "018d022c252673ee95a925d04f183a39",
"doc_count": 1
},
{
"key": "018d022c25b6709fbd19cf92a6d8800b",
"doc_count": 1
},
{
"key": "018f52e991717062bbbfd147e623c97a",
"doc_count": 1
},
{
"key": "018f52e9917472278ef0ffcc53154221",
"doc_count": 1
},
{
"key": "0190fde2defc70e9aeb08b4bedcc18cb",
"doc_count": 1
},
{
"key": "01943fcfc0117103a2faf4e9912f6752",
"doc_count": 1
},
{
"key": "01980e7378847760974be60b9e66caec",
"doc_count": 1
},
{
"key": "01981837992f7f8e9c42dc2a5820413c",
"doc_count": 1
},
{
"key": "0198986007c376bcb8f124812770630f",
"doc_count": 1
},
{
"key": "0198c6c8b15375a3b2a54efedc67297e",
"doc_count": 1
},
{
"key": "0198c6c91f69781b8d1fc08ca23c74d2",
"doc_count": 1
}
]
}
}
},
"rating-exists": {
"doc_count": 132,
"rating": {
"value": 0.0
}
},
"options-filter": {
"doc_count": 0,
"options-filter": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
}
},
"price": {
"count": 132,
"min": 6.5,
"max": 249.9,
"avg": 27.732272727272726,
"sum": 3660.66
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d02286d07722682211ac0b2a6d035",
"doc_count": 10
},
{
"key": "018d02286bbe7354bc38e76edf4451fc",
"doc_count": 8
},
{
"key": "018d0228bf5c734182d64260fb8518ae",
"doc_count": 8
},
{
"key": "01967c991e9b70b8b24d3d33f552aee5",
"doc_count": 6
},
{
"key": "018d022850ce7109af68d01ebfe2af54",
"doc_count": 5
},
{
"key": "018d02285a8f73f6b49127426c3bd81e",
"doc_count": 5
},
{
"key": "018d022851ce73f48a7bb46ccb724010",
"doc_count": 4
},
{
"key": "018d022853f77115b48de1e8f0d162d0",
"doc_count": 4
},
{
"key": "018d0228aaab709e9f9c703fb79faf74",
"doc_count": 4
},
{
"key": "018d0228ad2473179ad26598d8bcf3a6",
"doc_count": 4
},
{
"key": "018d022857b973f98be5d2c89aa131fb",
"doc_count": 3
},
{
"key": "018d02285a4770a0a2214d450c3bd730",
"doc_count": 3
},
{
"key": "018d022868c8707da282970e30bd0a9f",
"doc_count": 3
},
{
"key": "018d0228701f70b7969e7388c5399abb",
"doc_count": 3
},
{
"key": "018d022881e3710aa8eb165daf404dee",
"doc_count": 3
},
{
"key": "018d022897e77096b069f5cb56fdb3fc",
"doc_count": 3
},
{
"key": "018d0229595471f28042b2a2e4df7002",
"doc_count": 3
},
{
"key": "018d0229f10e7158a903b2a7e1b8ba4f",
"doc_count": 3
},
{
"key": "018f52e93034738d978962cad94f2ff1",
"doc_count": 3
},
{
"key": "019878e7b2b07748a0b2693279dd81ea",
"doc_count": 3
},
{
"key": "018d0228532673e89fcaa762cdecf158",
"doc_count": 2
},
{
"key": "018d0228548b72d49f7888007ef48a14",
"doc_count": 2
},
{
"key": "018d0228574d707abed126019df288d5",
"doc_count": 2
},
{
"key": "018d02285a03739c88207451c67cfa33",
"doc_count": 2
},
{
"key": "018d02285afa708d8c0c158d20ec2974",
"doc_count": 2
},
{
"key": "018d022867dc7319be15df8b868a25b1",
"doc_count": 2
},
{
"key": "018d0228914d7250975eb391c3a1ac79",
"doc_count": 2
},
{
"key": "018d022895ad708389bb0b05b92a5251",
"doc_count": 2
},
{
"key": "018d0228bf717095864208f4028811e5",
"doc_count": 2
},
{
"key": "0190fde266c772cf93e4df1e3e044fdd",
"doc_count": 2
},
{
"key": "018d02284f7f71d4a6cff087647726ed",
"doc_count": 1
},
{
"key": "018d022850fc73cb8a7ff1078dc647bb",
"doc_count": 1
},
{
"key": "018d0228511f700cb314a2cb3de680cf",
"doc_count": 1
},
{
"key": "018d0228546f70fcb08aee93b0f6a136",
"doc_count": 1
},
{
"key": "018d022858db73f48dea4474cfdd3acb",
"doc_count": 1
},
{
"key": "018d022859657361819f2631599c2bc3",
"doc_count": 1
},
{
"key": "018d02286b3e7213886d9227773d9eb0",
"doc_count": 1
},
{
"key": "018d02286b9d70fd8ab9a69b147fc793",
"doc_count": 1
},
{
"key": "018d02286c33720e894249b18c7d8b00",
"doc_count": 1
},
{
"key": "018d0228700573aa986855b7acf418c2",
"doc_count": 1
},
{
"key": "018d0228797c71dab31264c550501763",
"doc_count": 1
},
{
"key": "018d022880ab7113920edcf583193d23",
"doc_count": 1
},
{
"key": "018d0228a23b71bba88867ae8c511698",
"doc_count": 1
},
{
"key": "018d0228a8197224a14c1975ff9409e2",
"doc_count": 1
},
{
"key": "018d0228a9d5702f9b8045882cbe7a0c",
"doc_count": 1
},
{
"key": "018d0228acf973d2a7e55e981f4a7360",
"doc_count": 1
},
{
"key": "018d0228c2e07138a781fea0f36eff8d",
"doc_count": 1
},
{
"key": "018d02292f9071e1b59d64c340fecc9d",
"doc_count": 1
},
{
"key": "018d0229546573f6a63e9dcb1bbb288d",
"doc_count": 1
},
{
"key": "018d022adc21702e955b98901ff61789",
"doc_count": 1
},
{
"key": "018f52e9303f736593c3a22fc34c2515",
"doc_count": 1
},
{
"key": "018f52e93e1a72b894d41d2f490ad2e8",
"doc_count": 1
},
{
"key": "01967c993d4b713780769ea1cb0e27d8",
"doc_count": 1
},
{
"key": "019878e84e7e7c50b2aafaa10b5d38e5",
"doc_count": 1
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|