1 |
12.08 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":"018d022c3a39720592e63c5a784344c9"}}}},{"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": 3,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 121,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "sw-staging_product_1755509385",
"_id": "0198c67c52cb735a8ea9eb518f7084c4",
"_score": 0.0,
"_source": {
"autoIncrement": 24313.0,
"id": "0198c67c52cb735a8ea9eb518f7084c4"
},
"fields": {
"displayGroup": [
"f64195ea8f3600aec1e5f887ea5c64d5"
]
},
"sort": [
0.0,
0.0,
0,
24313,
"0198c67c52cb735a8ea9eb518f7084c4"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01987f5291957396893e45114234797f",
"_score": 0.0,
"_source": {
"autoIncrement": 24287.0,
"id": "01987f5291957396893e45114234797f"
},
"fields": {
"displayGroup": [
"6830e046fd77950a709a8dc9088399ed"
]
},
"sort": [
0.0,
0.0,
0,
24287,
"01987f5291957396893e45114234797f"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019855ce06657137b5eeab3055df7779",
"_score": 0.0,
"_source": {
"autoIncrement": 24270.0,
"id": "019855ce06657137b5eeab3055df7779"
},
"fields": {
"displayGroup": [
"c0d6b8038ac6b511de34ae674a0d55d7"
]
},
"sort": [
0.0,
0.0,
0,
24270,
"019855ce06657137b5eeab3055df7779"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019851980eaf7009a062b44ace04658b",
"_score": 0.0,
"_source": {
"autoIncrement": 24134.0,
"id": "019851980eaf7009a062b44ace04658b"
},
"fields": {
"displayGroup": [
"b512b5069e19361cdf9f9d311a753f33"
]
},
"sort": [
0.0,
0.0,
0,
24134,
"019851980eaf7009a062b44ace04658b"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985191ac3f71ffaf450afc1620ab5b",
"_score": 0.0,
"_source": {
"autoIncrement": 24130.0,
"id": "01985191ac3f71ffaf450afc1620ab5b"
},
"fields": {
"displayGroup": [
"92b091fe9434f45958e7e31d6595d107"
]
},
"sort": [
0.0,
0.0,
0,
24130,
"01985191ac3f71ffaf450afc1620ab5b"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198518b75f972aeb8dca331ec1c6218",
"_score": 0.0,
"_source": {
"autoIncrement": 24125.0,
"id": "0198518b75f972aeb8dca331ec1c6218"
},
"fields": {
"displayGroup": [
"4959023d57637361f6b1d5dab1571259"
]
},
"sort": [
0.0,
0.0,
0,
24125,
"0198518b75f972aeb8dca331ec1c6218"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985189f255730bb7e68ac2f8ba53a9",
"_score": 0.0,
"_source": {
"autoIncrement": 24124.0,
"id": "01985189f255730bb7e68ac2f8ba53a9"
},
"fields": {
"displayGroup": [
"0872e8396bd20151cb6c5c4ae2eed150"
]
},
"sort": [
0.0,
0.0,
0,
24124,
"01985189f255730bb7e68ac2f8ba53a9"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019851888adb72469789f1ab8ca2a3c1",
"_score": 0.0,
"_source": {
"autoIncrement": 24123.0,
"id": "019851888adb72469789f1ab8ca2a3c1"
},
"fields": {
"displayGroup": [
"1d1d856c851a94fbe2f000d21bb6495c"
]
},
"sort": [
0.0,
0.0,
0,
24123,
"019851888adb72469789f1ab8ca2a3c1"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019851830a8b7381abd3b6ddcf2c40b4",
"_score": 0.0,
"_source": {
"autoIncrement": 24119.0,
"id": "019851830a8b7381abd3b6ddcf2c40b4"
},
"fields": {
"displayGroup": [
"19117e1d3e921a9615abdf7b05734018"
]
},
"sort": [
0.0,
0.0,
0,
24119,
"019851830a8b7381abd3b6ddcf2c40b4"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985181c24e723db64bfbfd30823707",
"_score": 0.0,
"_source": {
"autoIncrement": 24118.0,
"id": "01985181c24e723db64bfbfd30823707"
},
"fields": {
"displayGroup": [
"13f70a1443be63dc570e3b9843bae88f"
]
},
"sort": [
0.0,
0.0,
0,
24118,
"01985181c24e723db64bfbfd30823707"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198518046de72dc85aadea12fafacef",
"_score": 0.0,
"_source": {
"autoIncrement": 24117.0,
"id": "0198518046de72dc85aadea12fafacef"
},
"fields": {
"displayGroup": [
"b994ff32fe8d033ad198613986251d6c"
]
},
"sort": [
0.0,
0.0,
0,
24117,
"0198518046de72dc85aadea12fafacef"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019851590d3c7227aef9321f2046cf4d",
"_score": 0.0,
"_source": {
"autoIncrement": 24097.0,
"id": "019851590d3c7227aef9321f2046cf4d"
},
"fields": {
"displayGroup": [
"0e54716294e7443de753754f15e4a5b0"
]
},
"sort": [
0.0,
0.0,
0,
24097,
"019851590d3c7227aef9321f2046cf4d"
]
},
{
"_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": "01985074fc40738ab184bba2fa27bd36",
"_score": 0.0,
"_source": {
"autoIncrement": 24041.0,
"id": "01985074fc40738ab184bba2fa27bd36"
},
"fields": {
"displayGroup": [
"d1c19c064ca2a76f301533af12821da3"
]
},
"sort": [
0.0,
0.0,
0,
24041,
"01985074fc40738ab184bba2fa27bd36"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198507442d2733993c16a3d50ca0b5f",
"_score": 0.0,
"_source": {
"autoIncrement": 24040.0,
"id": "0198507442d2733993c16a3d50ca0b5f"
},
"fields": {
"displayGroup": [
"5c7fbc089aa705ad9c0d93eda2449d03"
]
},
"sort": [
0.0,
0.0,
0,
24040,
"0198507442d2733993c16a3d50ca0b5f"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985066278471b89f925aa2ece4190d",
"_score": 0.0,
"_source": {
"autoIncrement": 24035.0,
"id": "01985066278471b89f925aa2ece4190d"
},
"fields": {
"displayGroup": [
"087ee3913b6515e9e0419ea3cad611a8"
]
},
"sort": [
0.0,
0.0,
0,
24035,
"01985066278471b89f925aa2ece4190d"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985016656873cf851d38f908724411",
"_score": 0.0,
"_source": {
"autoIncrement": 24019.0,
"id": "01985016656873cf851d38f908724411"
},
"fields": {
"displayGroup": [
"dedb99798b40b58fade154f1daf7b8af"
]
},
"sort": [
0.0,
0.0,
0,
24019,
"01985016656873cf851d38f908724411"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985014d869701f9f0fb91842a103ee",
"_score": 0.0,
"_source": {
"autoIncrement": 24018.0,
"id": "01985014d869701f9f0fb91842a103ee"
},
"fields": {
"displayGroup": [
"23d8099ca25fcdc4edc4bbb7f2d9dfd4"
]
},
"sort": [
0.0,
0.0,
0,
24018,
"01985014d869701f9f0fb91842a103ee"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb86c17d72c994cfca1f1754ae6d",
"_score": 0.0,
"_source": {
"autoIncrement": 23993.0,
"id": "0197cb86c17d72c994cfca1f1754ae6d"
},
"fields": {
"displayGroup": [
"b28e402008dd746bcbf5157911795460"
]
},
"sort": [
0.0,
0.0,
0,
23993,
"0197cb86c17d72c994cfca1f1754ae6d"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb86b69172cb9cb11bbfc6ad14de",
"_score": 0.0,
"_source": {
"autoIncrement": 23984.0,
"id": "0197cb86b69172cb9cb11bbfc6ad14de"
},
"fields": {
"displayGroup": [
"82671a4778add95dd0a0a15b24f8f876"
]
},
"sort": [
0.0,
0.0,
0,
23984,
"0197cb86b69172cb9cb11bbfc6ad14de"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb86a43172c1a3db2ff803962130",
"_score": 0.0,
"_source": {
"autoIncrement": 23968.0,
"id": "0197cb86a43172c1a3db2ff803962130"
},
"fields": {
"displayGroup": [
"ce922b68fec8b7097832b35aa5351c9e"
]
},
"sort": [
0.0,
0.0,
0,
23968,
"0197cb86a43172c1a3db2ff803962130"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb868cf370bc99d60934a6db1da2",
"_score": 0.0,
"_source": {
"autoIncrement": 23952.0,
"id": "0197cb868cf370bc99d60934a6db1da2"
},
"fields": {
"displayGroup": [
"d0117fa151b8e6de020fd5284a8d277e"
]
},
"sort": [
0.0,
0.0,
0,
23952,
"0197cb868cf370bc99d60934a6db1da2"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb868aaa7046859ffb89daab94b8",
"_score": 0.0,
"_source": {
"autoIncrement": 23950.0,
"id": "0197cb868aaa7046859ffb89daab94b8"
},
"fields": {
"displayGroup": [
"40fe6e69e7a3a25b8b816ea04af77d20"
]
},
"sort": [
0.0,
0.0,
0,
23950,
"0197cb868aaa7046859ffb89daab94b8"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb8678a370bdaf870fd8c89d5920",
"_score": 0.0,
"_source": {
"autoIncrement": 23936.0,
"id": "0197cb8678a370bdaf870fd8c89d5920"
},
"fields": {
"displayGroup": [
"ca5e1717b6df9325fdff76d51208a70f"
]
},
"sort": [
0.0,
0.0,
0,
23936,
"0197cb8678a370bdaf870fd8c89d5920"
]
}
]
},
"aggregations": {
"total-count": {
"value": 121
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
2 |
6.65 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":"018d022c3a39720592e63c5a784344c9"}}}},{"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": "018d022c3a39720592e63c5a784344c9"
}
}
}
},
{
"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": 5,
"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": 3302,
"properties-filter": {
"doc_count": 889,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d022c3a39720592e63c5a784344c9",
"doc_count": 121
},
{
"key": "018d022bddd473e983cd961ff442364d",
"doc_count": 92
},
{
"key": "01943fcfc01372dbb0d41dc3f9ee3c7d",
"doc_count": 70
},
{
"key": "018d022bdd2370a1b115725042f5c511",
"doc_count": 65
},
{
"key": "018d022bdd1a726998f01f4894d753a4",
"doc_count": 43
},
{
"key": "018d022bf2c1713094328a77b34f881d",
"doc_count": 38
},
{
"key": "018d022bf1f8722e96f04a7decde14e7",
"doc_count": 33
},
{
"key": "018d022c2553720eb94890bc17c76147",
"doc_count": 32
},
{
"key": "018d022bf92b72a8b41958cc8a3de7bf",
"doc_count": 31
},
{
"key": "018d022bdf617298bc439b09b0466245",
"doc_count": 29
},
{
"key": "018d022bf9ef719285210f4890c32873",
"doc_count": 19
},
{
"key": "018d022bdf5b711b9339414fc0920beb",
"doc_count": 17
},
{
"key": "018d022bf8de7006b92874d86050997d",
"doc_count": 16
},
{
"key": "018d022c2418700fa3bbe8becded631c",
"doc_count": 16
},
{
"key": "018d022bdde27299ab4e9793f5b76f5b",
"doc_count": 14
},
{
"key": "018d022bedd472b8993db4a8c8ac7136",
"doc_count": 11
},
{
"key": "018d022bf3957294acb0e1d64c27d57c",
"doc_count": 11
},
{
"key": "018d022c24dd72929aff67c77eff23f5",
"doc_count": 11
},
{
"key": "018d022c2605734db3780fd38084ce08",
"doc_count": 11
},
{
"key": "018d022bf8bf731cbf0711bc85556f9b",
"doc_count": 10
},
{
"key": "018d022bf213725bb964d16a460f3b01",
"doc_count": 9
},
{
"key": "018d022bf3a5702aa0d51bbceeb3b7d9",
"doc_count": 7
},
{
"key": "018d022bde0b7030b49637290b0bce22",
"doc_count": 6
},
{
"key": "018d022bf2df72108e277baf11481262",
"doc_count": 6
},
{
"key": "018d022bf319723c982a3115d97f0f9b",
"doc_count": 6
},
{
"key": "018d022bf3fa7042b4bca58267b0579f",
"doc_count": 6
},
{
"key": "018d022bf84f7340a2d5e70e0f17cd2a",
"doc_count": 6
},
{
"key": "018d022c255b737fa9a9404bf7aa794a",
"doc_count": 6
},
{
"key": "018d022bdd1172bf9a832c8ef29ca6b5",
"doc_count": 5
},
{
"key": "018d022bdd35722bb6910f1ab1b90ac3",
"doc_count": 5
},
{
"key": "018d022bf18472ad8a71e8773dce491b",
"doc_count": 5
},
{
"key": "018d022bf1a272b1a884228150d00570",
"doc_count": 5
},
{
"key": "018d022bf2d372bc9b09217194689f06",
"doc_count": 5
},
{
"key": "018d022bf3d8738195c11932df76f355",
"doc_count": 5
},
{
"key": "018d022bf9147166b876a85e949f76d5",
"doc_count": 5
},
{
"key": "018d022c25337260b5f48ffc5f8fce57",
"doc_count": 5
},
{
"key": "018d022c25be73eead1ca86ca739efa3",
"doc_count": 5
},
{
"key": "018d022c25dc704fb7e96644ae17587d",
"doc_count": 5
},
{
"key": "018d022bddb37271a1646f296db49a56",
"doc_count": 4
},
{
"key": "018d022bf1c97186b7f9a433f18247d6",
"doc_count": 4
},
{
"key": "018d022c25e4729eb01b4148168084b4",
"doc_count": 4
},
{
"key": "018d022bf1c17202ba0ca4cfc24b4e81",
"doc_count": 3
},
{
"key": "018d022bf3ad7054966ffd42bd7ba343",
"doc_count": 3
},
{
"key": "018d022bf3bc725896b16e825fbaa39b",
"doc_count": 3
},
{
"key": "018d022bf413724aa7027bc9c1e723fc",
"doc_count": 3
},
{
"key": "018d022c24ec71129c2d5a8e83e7d2c5",
"doc_count": 3
},
{
"key": "018d022c253d726ca91883e3db1150a7",
"doc_count": 3
},
{
"key": "018d022bdd4673e8b576e090ae2a4118",
"doc_count": 2
},
{
"key": "018d022bde3c71e28bccefcb4e81f1c6",
"doc_count": 2
},
{
"key": "018d022bdf54736784570bc2af13104e",
"doc_count": 2
},
{
"key": "018d022beda7727e8621388b8033cfbb",
"doc_count": 2
},
{
"key": "018d022bf27272039ed178cb85332539",
"doc_count": 2
},
{
"key": "018d022bf37b73caaa0f517d0b647286",
"doc_count": 2
},
{
"key": "018d022bf3b6709baa85fc2651bf63b6",
"doc_count": 2
},
{
"key": "018d022bf40a70b78b9a255f692a26ff",
"doc_count": 2
},
{
"key": "018d022bf42c703b8028c05e8875180d",
"doc_count": 2
},
{
"key": "018d022bf45973979da7f8df6a64e7ab",
"doc_count": 2
},
{
"key": "018d022bf4a3728c96b56b4f45e04dfe",
"doc_count": 2
},
{
"key": "018d022bf4ab72aeb2b9b722af9951f1",
"doc_count": 2
},
{
"key": "018d022bf8b27172b887b85bdcb465c0",
"doc_count": 2
},
{
"key": "018d022c247e7242b7c418eed9e365ce",
"doc_count": 2
},
{
"key": "018d022c248f70ed8d004672f64509a2",
"doc_count": 2
},
{
"key": "018d022c249e71f999904fe4ab1fa224",
"doc_count": 2
},
{
"key": "018d022c24ab73fda5d27d344df9b724",
"doc_count": 2
},
{
"key": "018d022c24d573ca8b30a5c1062e6e07",
"doc_count": 2
},
{
"key": "018d022c256e7109853b635115e4addd",
"doc_count": 2
},
{
"key": "018d022c25b6709fbd19cf92a6d8800b",
"doc_count": 2
},
{
"key": "018f52e9912e73f4b3a4f0d0f44ba668",
"doc_count": 2
},
{
"key": "0190fde2defc70e9aeb08b4bedcc18cb",
"doc_count": 2
},
{
"key": "019818e6ccf87c5fbbd3bbfba39ba8bd",
"doc_count": 2
},
{
"key": "018d022bdd3e7214858674cc1b1e9666",
"doc_count": 1
},
{
"key": "018d022bddf371f0b107e6219ca4f9aa",
"doc_count": 1
},
{
"key": "018d022bde21738397585e0497540981",
"doc_count": 1
},
{
"key": "018d022bdf41726ea0bca4c57f5e0e37",
"doc_count": 1
},
{
"key": "018d022bedeb713280474579a561e701",
"doc_count": 1
},
{
"key": "018d022bedfb71038732599a2c89f70c",
"doc_count": 1
},
{
"key": "018d022bf2857165a5f537c409d071b9",
"doc_count": 1
},
{
"key": "018d022bf2a3732797f68276a3cacb10",
"doc_count": 1
},
{
"key": "018d022bf48573c8937ff30f2e1134fb",
"doc_count": 1
},
{
"key": "018d022bfa0073c2b929550a1fc9c55c",
"doc_count": 1
},
{
"key": "018d022c24c0716bba73b7ee576432d4",
"doc_count": 1
},
{
"key": "018d022c252673ee95a925d04f183a39",
"doc_count": 1
},
{
"key": "018d022c254372d58ba9d5ecfdbe562c",
"doc_count": 1
},
{
"key": "018d022c25ee7166b03c6453a336b701",
"doc_count": 1
},
{
"key": "01981837825376e78f896b90f15261ef",
"doc_count": 1
},
{
"key": "01981837affb753ab1306ac17efb81d7",
"doc_count": 1
},
{
"key": "0198329a8bf173608ad669d8e37b7753",
"doc_count": 1
},
{
"key": "0198329ac85a7b1b8b873e9f7ebac3c7",
"doc_count": 1
},
{
"key": "0198986007c376bcb8f124812770630f",
"doc_count": 1
},
{
"key": "0198c6c8b15375a3b2a54efedc67297e",
"doc_count": 1
},
{
"key": "0198c6c91f69781b8d1fc08ca23c74d2",
"doc_count": 1
}
]
}
}
},
"rating-exists": {
"doc_count": 121,
"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": 121,
"min": 6.9,
"max": 615.0,
"avg": 31.057438016528923,
"sum": 3757.95
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d0228b9b2737486dc5eab5f15687b",
"doc_count": 14
},
{
"key": "018d0228796d7320bfc6c7f825cf1f9a",
"doc_count": 6
},
{
"key": "018d022881aa728799b9746b3bcee530",
"doc_count": 6
},
{
"key": "018d0229279a72208ff215f40b150d54",
"doc_count": 6
},
{
"key": "018d02285afa708d8c0c158d20ec2974",
"doc_count": 5
},
{
"key": "018d02287bf3702b88e978de4a299829",
"doc_count": 5
},
{
"key": "018d022853f77115b48de1e8f0d162d0",
"doc_count": 4
},
{
"key": "018d02288335707aa484292d67e77b9e",
"doc_count": 4
},
{
"key": "018d0228bc9473ef9b6896b66ddd2542",
"doc_count": 4
},
{
"key": "018d022854587162b7615e9d7ac5ae5d",
"doc_count": 3
},
{
"key": "018d0228574d707abed126019df288d5",
"doc_count": 3
},
{
"key": "018d022857b973f98be5d2c89aa131fb",
"doc_count": 3
},
{
"key": "018d0228591d72f5a748c74c39150461",
"doc_count": 3
},
{
"key": "018d022867dc7319be15df8b868a25b1",
"doc_count": 3
},
{
"key": "018d0228aa6e7255bacef3649bd098bf",
"doc_count": 3
},
{
"key": "018d02285727727db42cf4a2bebfe6ee",
"doc_count": 2
},
{
"key": "018d022858db73f48dea4474cfdd3acb",
"doc_count": 2
},
{
"key": "018d02286d787116a7d322ecbbab589f",
"doc_count": 2
},
{
"key": "018d0228700573aa986855b7acf418c2",
"doc_count": 2
},
{
"key": "018d02287ebe7151a14f70473be52aa9",
"doc_count": 2
},
{
"key": "018d022880ab7113920edcf583193d23",
"doc_count": 2
},
{
"key": "018d02289517723b8d6a644efbe06ab0",
"doc_count": 2
},
{
"key": "018d0228e8dc73e18ced65449051b2f6",
"doc_count": 2
},
{
"key": "018d0229ef807117928f4294968b410a",
"doc_count": 2
},
{
"key": "0190fde292c971a8bdb064cf41497ba1",
"doc_count": 2
},
{
"key": "019850158f217a269051140049650b5b",
"doc_count": 2
},
{
"key": "018d022850fc73cb8a7ff1078dc647bb",
"doc_count": 1
},
{
"key": "018d022852c271988c0baeeb033b65d7",
"doc_count": 1
},
{
"key": "018d02285a4770a0a2214d450c3bd730",
"doc_count": 1
},
{
"key": "018d022866c3709cbaa4c420735bf0b3",
"doc_count": 1
},
{
"key": "018d02286bbe7354bc38e76edf4451fc",
"doc_count": 1
},
{
"key": "018d02286c33720e894249b18c7d8b00",
"doc_count": 1
},
{
"key": "018d02286d07722682211ac0b2a6d035",
"doc_count": 1
},
{
"key": "018d02286d9b70649c71d1f94c8f25bb",
"doc_count": 1
},
{
"key": "018d02286ef77168969e6d9c5c6c9c42",
"doc_count": 1
},
{
"key": "018d02286f6d717dbae35a1df90f9826",
"doc_count": 1
},
{
"key": "018d0228797c71dab31264c550501763",
"doc_count": 1
},
{
"key": "018d02287c3b73da98b7962d5f92f4d4",
"doc_count": 1
},
{
"key": "018d02287c777324b764db62346763cc",
"doc_count": 1
},
{
"key": "018d022881e3710aa8eb165daf404dee",
"doc_count": 1
},
{
"key": "018d0228825f7078b9dbb7576f5cf452",
"doc_count": 1
},
{
"key": "018d02288ead7026ab6d8379b387da97",
"doc_count": 1
},
{
"key": "018d022897787329ab3c9ebdbae7a405",
"doc_count": 1
},
{
"key": "018d0228aa157106bda99d9d445b9d5a",
"doc_count": 1
},
{
"key": "018d0228bfb6720ca950256387ebdaf9",
"doc_count": 1
},
{
"key": "018d0228d7ac726b87142917cd8550d7",
"doc_count": 1
},
{
"key": "018d02292f9071e1b59d64c340fecc9d",
"doc_count": 1
},
{
"key": "018d0229546573f6a63e9dcb1bbb288d",
"doc_count": 1
},
{
"key": "018d0229700271a5a2a13f90d6992ce4",
"doc_count": 1
},
{
"key": "018d02297e49714e8fc859d3b032f5dd",
"doc_count": 1
},
{
"key": "018d0229bd307171888ce007e4436838",
"doc_count": 1
},
{
"key": "019855493e0979cba35a55cda0a53b1c",
"doc_count": 1
},
{
"key": "019878e84e7e7c50b2aafaa10b5d38e5",
"doc_count": 1
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|