1 |
5.38 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":"018d022bf8e5737dad197d68c1d8089b"}}}},{"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": 139,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "sw-staging_product_1755509385",
"_id": "019937cd81d97219b229bdb3bf0a6f16",
"_score": 0.0,
"_source": {
"autoIncrement": 24347.0,
"id": "019937cd81d97219b229bdb3bf0a6f16"
},
"fields": {
"displayGroup": [
"580e45ddd5f4c522a1ab1932d5128cfb"
]
},
"sort": [
0.0,
0.0,
0,
24347,
"019937cd81d97219b229bdb3bf0a6f16"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0199337bee0a712fb29f1f6ef6ac7d7b",
"_score": 0.0,
"_source": {
"autoIncrement": 24346.0,
"id": "0199337bee0a712fb29f1f6ef6ac7d7b"
},
"fields": {
"displayGroup": [
"093be7193a25bf0d5f5e96f313370bc9"
]
},
"sort": [
0.0,
0.0,
0,
24346,
"0199337bee0a712fb29f1f6ef6ac7d7b"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198cc4e08a67023a2b7d3428ea059e4",
"_score": 0.0,
"_source": {
"autoIncrement": 24321.0,
"id": "0198cc4e08a67023a2b7d3428ea059e4"
},
"fields": {
"displayGroup": [
"1c533ed6bae9fa1b0edc3c9fbdca6169"
]
},
"sort": [
0.0,
0.0,
0,
24321,
"0198cc4e08a67023a2b7d3428ea059e4"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198a8023220724dbf3e40c322ab1822",
"_score": 0.0,
"_source": {
"autoIncrement": 24305.0,
"id": "0198a8023220724dbf3e40c322ab1822"
},
"fields": {
"displayGroup": [
"179961509814690f3c94a2e7a6fdf8e0"
]
},
"sort": [
0.0,
0.0,
0,
24305,
"0198a8023220724dbf3e40c322ab1822"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019888b30791718f884d0abe8cf28db4",
"_score": 0.0,
"_source": {
"autoIncrement": 24290.0,
"id": "019888b30791718f884d0abe8cf28db4"
},
"fields": {
"displayGroup": [
"f803cac0fc24c82aca948032b53ef45c"
]
},
"sort": [
0.0,
0.0,
0,
24290,
"019888b30791718f884d0abe8cf28db4"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198889ee63f73c4a36fd3f412b3c723",
"_score": 0.0,
"_source": {
"autoIncrement": 24289.0,
"id": "0198889ee63f73c4a36fd3f412b3c723"
},
"fields": {
"displayGroup": [
"466cf5a0be565bc8ddcc7e51c89da30b"
]
},
"sort": [
0.0,
0.0,
0,
24289,
"0198889ee63f73c4a36fd3f412b3c723"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198558caa5773d2abc92fdd421874e8",
"_score": 0.0,
"_source": {
"autoIncrement": 24238.0,
"id": "0198558caa5773d2abc92fdd421874e8"
},
"fields": {
"displayGroup": [
"9961a8044546c939c4bf0d6172fe25c9"
]
},
"sort": [
0.0,
0.0,
0,
24238,
"0198558caa5773d2abc92fdd421874e8"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985177e3c77146bd8cba42c776bab5",
"_score": 0.0,
"_source": {
"autoIncrement": 24111.0,
"id": "01985177e3c77146bd8cba42c776bab5"
},
"fields": {
"displayGroup": [
"43a1782e4be7e8a4c8cab6ac765c12d9"
]
},
"sort": [
0.0,
0.0,
0,
24111,
"01985177e3c77146bd8cba42c776bab5"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198516f81267004924970bf1e2e08b0",
"_score": 0.0,
"_source": {
"autoIncrement": 24105.0,
"id": "0198516f81267004924970bf1e2e08b0"
},
"fields": {
"displayGroup": [
"418ec39bcbb6ab88e8f8ce107cf3a7e3"
]
},
"sort": [
0.0,
0.0,
0,
24105,
"0198516f81267004924970bf1e2e08b0"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198508224d771e59a403c601f3ca151",
"_score": 0.0,
"_source": {
"autoIncrement": 24052.0,
"id": "0198508224d771e59a403c601f3ca151"
},
"fields": {
"displayGroup": [
"3d6d7545d319bd7f2cee69485786da58"
]
},
"sort": [
0.0,
0.0,
0,
24052,
"0198508224d771e59a403c601f3ca151"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198505ba9a571e49000b2a87c2610ca",
"_score": 0.0,
"_source": {
"autoIncrement": 24029.0,
"id": "0198505ba9a571e49000b2a87c2610ca"
},
"fields": {
"displayGroup": [
"8e7078c41c817272cf9d4a7070702823"
]
},
"sort": [
0.0,
0.0,
0,
24029,
"0198505ba9a571e49000b2a87c2610ca"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985051d7ed7294a17d9475751a1537",
"_score": 0.0,
"_source": {
"autoIncrement": 24026.0,
"id": "01985051d7ed7294a17d9475751a1537"
},
"fields": {
"displayGroup": [
"8174f08c8288383156e91f0317b1e33b"
]
},
"sort": [
0.0,
0.0,
0,
24026,
"01985051d7ed7294a17d9475751a1537"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019850509aba725a9045fb2d020af9c7",
"_score": 0.0,
"_source": {
"autoIncrement": 24025.0,
"id": "019850509aba725a9045fb2d020af9c7"
},
"fields": {
"displayGroup": [
"5a1de42dbd842bf912d620cbddfd9d1b"
]
},
"sort": [
0.0,
0.0,
0,
24025,
"019850509aba725a9045fb2d020af9c7"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198504d9a61711eab3f4acf1dd12faa",
"_score": 0.0,
"_source": {
"autoIncrement": 24024.0,
"id": "0198504d9a61711eab3f4acf1dd12faa"
},
"fields": {
"displayGroup": [
"d4e16b53086d253f18171a3a20686fa9"
]
},
"sort": [
0.0,
0.0,
0,
24024,
"0198504d9a61711eab3f4acf1dd12faa"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985010ad797159946d76922ecc084d",
"_score": 0.0,
"_source": {
"autoIncrement": 24014.0,
"id": "01985010ad797159946d76922ecc084d"
},
"fields": {
"displayGroup": [
"fc4975466c9b4c76ee234fccbdb721a6"
]
},
"sort": [
0.0,
0.0,
0,
24014,
"01985010ad797159946d76922ecc084d"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198500ef42f7106aa650b305889cd09",
"_score": 0.0,
"_source": {
"autoIncrement": 24013.0,
"id": "0198500ef42f7106aa650b305889cd09"
},
"fields": {
"displayGroup": [
"6cd502f3bd103eafa719e69a22eace3d"
]
},
"sort": [
0.0,
0.0,
0,
24013,
"0198500ef42f7106aa650b305889cd09"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198500491a67087aa071d57a479e2bf",
"_score": 0.0,
"_source": {
"autoIncrement": 24012.0,
"id": "0198500491a67087aa071d57a479e2bf"
},
"fields": {
"displayGroup": [
"d30075d624a83988f213498ff640a720"
]
},
"sort": [
0.0,
0.0,
0,
24012,
"0198500491a67087aa071d57a479e2bf"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01983c45a946736badde90b6f9558bfe",
"_score": 0.0,
"_source": {
"autoIncrement": 24006.0,
"id": "01983c45a946736badde90b6f9558bfe"
},
"fields": {
"displayGroup": [
"71a8fe2303a8bf3fc0a51aa760082281"
]
},
"sort": [
0.0,
0.0,
0,
24006,
"01983c45a946736badde90b6f9558bfe"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb86ba41729288d3c80ccd0f5ae1",
"_score": 0.0,
"_source": {
"autoIncrement": 23988.0,
"id": "0197cb86ba41729288d3c80ccd0f5ae1"
},
"fields": {
"displayGroup": [
"55234ca87b8bb4561232731f4768e048"
]
},
"sort": [
0.0,
0.0,
0,
23988,
"0197cb86ba41729288d3c80ccd0f5ae1"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb86b39f7257a6030903c6aa7821",
"_score": 0.0,
"_source": {
"autoIncrement": 23981.0,
"id": "0197cb86b39f7257a6030903c6aa7821"
},
"fields": {
"displayGroup": [
"bf3179725ee7e6272ab197e049cceb52"
]
},
"sort": [
0.0,
0.0,
0,
23981,
"0197cb86b39f7257a6030903c6aa7821"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb869ed27182b6def408c55adc4d",
"_score": 0.0,
"_source": {
"autoIncrement": 23964.0,
"id": "0197cb869ed27182b6def408c55adc4d"
},
"fields": {
"displayGroup": [
"fb57f82af12b75332d9cc8954c71cd83"
]
},
"sort": [
0.0,
0.0,
0,
23964,
"0197cb869ed27182b6def408c55adc4d"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb866c64706cab500f546af04469",
"_score": 0.0,
"_source": {
"autoIncrement": 23927.0,
"id": "0197cb866c64706cab500f546af04469"
},
"fields": {
"displayGroup": [
"a33c39bd7e0056eac60db43041ab6181"
]
},
"sort": [
0.0,
0.0,
0,
23927,
"0197cb866c64706cab500f546af04469"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb8662b673c3b2a056d65dd7327b",
"_score": 0.0,
"_source": {
"autoIncrement": 23919.0,
"id": "0197cb8662b673c3b2a056d65dd7327b"
},
"fields": {
"displayGroup": [
"df68ec0fcc4e04726b1c2b5432642d97"
]
},
"sort": [
0.0,
0.0,
0,
23919,
"0197cb8662b673c3b2a056d65dd7327b"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb8641527170a19aa6a88bb4b316",
"_score": 0.0,
"_source": {
"autoIncrement": 23892.0,
"id": "0197cb8641527170a19aa6a88bb4b316"
},
"fields": {
"displayGroup": [
"f028123621b4312a8ad4f7a191ca3e23"
]
},
"sort": [
0.0,
0.0,
0,
23892,
"0197cb8641527170a19aa6a88bb4b316"
]
}
]
},
"aggregations": {
"total-count": {
"value": 139
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
2 |
6.24 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":"018d022bf8e5737dad197d68c1d8089b"}}}},{"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": "018d022bf8e5737dad197d68c1d8089b"
}
}
}
},
{
"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": 4,
"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": 3662,
"properties-filter": {
"doc_count": 937,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d022bf8e5737dad197d68c1d8089b",
"doc_count": 139
},
{
"key": "018d022c3a6271f290d7ef6e169a0730",
"doc_count": 131
},
{
"key": "018d022bddd473e983cd961ff442364d",
"doc_count": 111
},
{
"key": "018d022bdd2370a1b115725042f5c511",
"doc_count": 102
},
{
"key": "018d022c25e4729eb01b4148168084b4",
"doc_count": 49
},
{
"key": "018d022bf1ec71829e91c8f34d7ce340",
"doc_count": 41
},
{
"key": "01943fcfc01372dbb0d41dc3f9ee3c7d",
"doc_count": 37
},
{
"key": "018d022bdf617298bc439b09b0466245",
"doc_count": 32
},
{
"key": "018d022bdf5b711b9339414fc0920beb",
"doc_count": 26
},
{
"key": "018d022c248f70ed8d004672f64509a2",
"doc_count": 26
},
{
"key": "018d022bf47d70b1b8d2333e13eb6d96",
"doc_count": 19
},
{
"key": "018d022bdde27299ab4e9793f5b76f5b",
"doc_count": 16
},
{
"key": "018d022bdf54736784570bc2af13104e",
"doc_count": 15
},
{
"key": "018d022bdd1172bf9a832c8ef29ca6b5",
"doc_count": 13
},
{
"key": "018d022bdf41726ea0bca4c57f5e0e37",
"doc_count": 12
},
{
"key": "018d022c254372d58ba9d5ecfdbe562c",
"doc_count": 12
},
{
"key": "018d022bdd35722bb6910f1ab1b90ac3",
"doc_count": 10
},
{
"key": "018d022c25d5728389aba62e2679e3b3",
"doc_count": 9
},
{
"key": "018d022bdd1a726998f01f4894d753a4",
"doc_count": 7
},
{
"key": "018d022bf48573c8937ff30f2e1134fb",
"doc_count": 7
},
{
"key": "018d022bf999711bbb5b9e0bae7a55b9",
"doc_count": 7
},
{
"key": "018d022bddb37271a1646f296db49a56",
"doc_count": 6
},
{
"key": "018d022c254b7333b452696be30d78f7",
"doc_count": 6
},
{
"key": "018d022bde0b7030b49637290b0bce22",
"doc_count": 5
},
{
"key": "018d022bf89073d09258350bec9f0049",
"doc_count": 5
},
{
"key": "018d022bfa097129bdc0cd196a05cd03",
"doc_count": 5
},
{
"key": "018d022c24d573ca8b30a5c1062e6e07",
"doc_count": 5
},
{
"key": "018d022c3a1b72518c04feb03dbf326b",
"doc_count": 5
},
{
"key": "018d022bdf1c7278bf94eeb138febace",
"doc_count": 4
},
{
"key": "018d022bf89871fd918b610f64b0f557",
"doc_count": 4
},
{
"key": "018d022c24dd72929aff67c77eff23f5",
"doc_count": 4
},
{
"key": "018d022bdf2c735d8ef11eed6f1aeb5a",
"doc_count": 3
},
{
"key": "018d022c249e71f999904fe4ab1fa224",
"doc_count": 3
},
{
"key": "018d022c24ce70e4a8fbacc6c0f82885",
"doc_count": 3
},
{
"key": "018d022c25dc704fb7e96644ae17587d",
"doc_count": 3
},
{
"key": "01982bd36d4f7b478a04c21d1cc7e0df",
"doc_count": 3
},
{
"key": "018d022bdd2d706393efa0639d2282bf",
"doc_count": 2
},
{
"key": "018d022bdd4f72dea2a4ba6a06453ab8",
"doc_count": 2
},
{
"key": "018d022bde21738397585e0497540981",
"doc_count": 2
},
{
"key": "018d022bf37370e984bc60cf262e0cd1",
"doc_count": 2
},
{
"key": "018d022bf97170598d75a6db055af172",
"doc_count": 2
},
{
"key": "018d022c2418700fa3bbe8becded631c",
"doc_count": 2
},
{
"key": "018d022c24b1729fbd9c18f48fa92ee1",
"doc_count": 2
},
{
"key": "018d022c24f7726783443398007b9a8d",
"doc_count": 2
},
{
"key": "018d022bdd4673e8b576e090ae2a4118",
"doc_count": 1
},
{
"key": "018d022bded5734c94209964177416aa",
"doc_count": 1
},
{
"key": "018d022bdf0570f4b4968ec9846d1af5",
"doc_count": 1
},
{
"key": "018d022bdf1373a8ba218cea4ce9966d",
"doc_count": 1
},
{
"key": "018d022bf1a272b1a884228150d00570",
"doc_count": 1
},
{
"key": "018d022bf1f271e9ba05067201d5c4bc",
"doc_count": 1
},
{
"key": "018d022bf25e7334bfc03729131b104a",
"doc_count": 1
},
{
"key": "018d022bf27c7204849c6cd607137bb3",
"doc_count": 1
},
{
"key": "018d022bf29b73fb85cc0a161e7c0a8a",
"doc_count": 1
},
{
"key": "018d022bf2f0707a9eae835575528edd",
"doc_count": 1
},
{
"key": "018d022bf36b703c89ce1bd174e3919b",
"doc_count": 1
},
{
"key": "018d022bf37b73caaa0f517d0b647286",
"doc_count": 1
},
{
"key": "018d022bf3a5702aa0d51bbceeb3b7d9",
"doc_count": 1
},
{
"key": "018d022bf3e072608093b11f2b1a231e",
"doc_count": 1
},
{
"key": "018d022bf86e72c589689d85ec071049",
"doc_count": 1
},
{
"key": "018d022bf888714db44794588d1e5fc6",
"doc_count": 1
},
{
"key": "018d022bf8b27172b887b85bdcb465c0",
"doc_count": 1
},
{
"key": "018d022bf8ed71f5b635798388aa2430",
"doc_count": 1
},
{
"key": "018d022bf9047310b7e4037355dd8942",
"doc_count": 1
},
{
"key": "018d022bf9df72aeb55fa5186f91f4c9",
"doc_count": 1
},
{
"key": "018d022bf9ef719285210f4890c32873",
"doc_count": 1
},
{
"key": "018d022c242070bfbfe89c948d24eda9",
"doc_count": 1
},
{
"key": "018d022c252673ee95a925d04f183a39",
"doc_count": 1
},
{
"key": "018d022c25337260b5f48ffc5f8fce57",
"doc_count": 1
},
{
"key": "018d022c2553720eb94890bc17c76147",
"doc_count": 1
},
{
"key": "018d022c2605734db3780fd38084ce08",
"doc_count": 1
},
{
"key": "018d022c3a4873c387c8867b49a60cad",
"doc_count": 1
},
{
"key": "018f52e9902b72faa0205dc9b068a168",
"doc_count": 1
},
{
"key": "018f52e9912f718f82808c902ba14430",
"doc_count": 1
},
{
"key": "018f52e993f2725097310b0474da1565",
"doc_count": 1
},
{
"key": "01943fcfbea57261aa03f3c9c02d7635",
"doc_count": 1
},
{
"key": "01943fcfc0117103a2faf4e9912f6752",
"doc_count": 1
},
{
"key": "01967c99b8e37178b65c7f8d1a2782c0",
"doc_count": 1
},
{
"key": "0197efad9f18789b91fc039c9ad262a4",
"doc_count": 1
},
{
"key": "01980e7378847760974be60b9e66caec",
"doc_count": 1
},
{
"key": "0198cc436b07723fb04550d980a20aa8",
"doc_count": 1
}
]
}
}
},
"rating-exists": {
"doc_count": 139,
"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": 139,
"min": 5.95,
"max": 890.0,
"avg": 75.76568345323741,
"sum": 10531.43
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d022868c8707da282970e30bd0a9f",
"doc_count": 26
},
{
"key": "018d0228701f70b7969e7388c5399abb",
"doc_count": 13
},
{
"key": "018d0228797c71dab31264c550501763",
"doc_count": 10
},
{
"key": "018d022896a673d7969b7e729cc2afe6",
"doc_count": 9
},
{
"key": "018d022880ab7113920edcf583193d23",
"doc_count": 7
},
{
"key": "018d022850aa7167830b08b73843dcd1",
"doc_count": 5
},
{
"key": "018d02285244719c8eeb2c4b202241a0",
"doc_count": 5
},
{
"key": "018d02286c33720e894249b18c7d8b00",
"doc_count": 5
},
{
"key": "018d02285727727db42cf4a2bebfe6ee",
"doc_count": 4
},
{
"key": "018d02285a03739c88207451c67cfa33",
"doc_count": 4
},
{
"key": "018d02286bea714a8c4a65dd91c2d101",
"doc_count": 4
},
{
"key": "018d022858db73f48dea4474cfdd3acb",
"doc_count": 3
},
{
"key": "018d02285a8f73f6b49127426c3bd81e",
"doc_count": 3
},
{
"key": "018d022869aa7372ac05b1b094beda7c",
"doc_count": 3
},
{
"key": "018d0228700573aa986855b7acf418c2",
"doc_count": 3
},
{
"key": "018d0228507572158ab00cf0d429afdf",
"doc_count": 2
},
{
"key": "018d0228535d702bbcc80ad88e309d2e",
"doc_count": 2
},
{
"key": "018d02287c5e738187fe2cb75f016c86",
"doc_count": 2
},
{
"key": "018d0228a23b71bba88867ae8c511698",
"doc_count": 2
},
{
"key": "018d0228aaab709e9f9c703fb79faf74",
"doc_count": 2
},
{
"key": "018d0228bc237335b4893d4c29c66160",
"doc_count": 2
},
{
"key": "018d0228bfb6720ca950256387ebdaf9",
"doc_count": 2
},
{
"key": "018d0229444670c1b6a653c92f851202",
"doc_count": 2
},
{
"key": "018d022850fc73cb8a7ff1078dc647bb",
"doc_count": 1
},
{
"key": "018d022851ce73f48a7bb46ccb724010",
"doc_count": 1
},
{
"key": "018d022867dc7319be15df8b868a25b1",
"doc_count": 1
},
{
"key": "018d02286bbe7354bc38e76edf4451fc",
"doc_count": 1
},
{
"key": "018d02286d07722682211ac0b2a6d035",
"doc_count": 1
},
{
"key": "018d02286d787116a7d322ecbbab589f",
"doc_count": 1
},
{
"key": "018d02286ddc7053a323907a86118bec",
"doc_count": 1
},
{
"key": "018d0228796d7320bfc6c7f825cf1f9a",
"doc_count": 1
},
{
"key": "018d0228941273f0ad39e3c637a0d830",
"doc_count": 1
},
{
"key": "018d022896147316b6c5cfdec8bca387",
"doc_count": 1
},
{
"key": "018d0228a3bd70d684ef36456b3acf15",
"doc_count": 1
},
{
"key": "018d0228aa6e7255bacef3649bd098bf",
"doc_count": 1
},
{
"key": "018d0228bc9473ef9b6896b66ddd2542",
"doc_count": 1
},
{
"key": "018d0228eb737294959050556ee2d1f9",
"doc_count": 1
},
{
"key": "018d02292f9071e1b59d64c340fecc9d",
"doc_count": 1
},
{
"key": "018f52e92972720db74b77a00a31c3da",
"doc_count": 1
},
{
"key": "018f52e929767094b775224b37a41a56",
"doc_count": 1
},
{
"key": "018f52e929a470a4bdf7bd235d44ee2f",
"doc_count": 1
},
{
"key": "0190fde292c971a8bdb064cf41497ba1",
"doc_count": 1
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|