1 |
4.51 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":"018d022c2553720eb94890bc17c76147"}}}},{"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": 39,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_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": "0198518774db70819d08b423a18bffb8",
"_score": 0.0,
"_source": {
"autoIncrement": 24122.0,
"id": "0198518774db70819d08b423a18bffb8"
},
"fields": {
"displayGroup": [
"aaf0028dbab9954d013e1207fde3eb45"
]
},
"sort": [
0.0,
0.0,
0,
24122,
"0198518774db70819d08b423a18bffb8"
]
},
{
"_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": "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": "0197cb85e974739a9ff514fc32c59255",
"_score": 0.0,
"_source": {
"autoIncrement": 23827.0,
"id": "0197cb85e974739a9ff514fc32c59255"
},
"fields": {
"displayGroup": [
"e3ceb70bb57cdd42139eb66201047589"
]
},
"sort": [
0.0,
0.0,
0,
23827,
"0197cb85e974739a9ff514fc32c59255"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb85e750730682b0a263ab550518",
"_score": 0.0,
"_source": {
"autoIncrement": 23826.0,
"id": "0197cb85e750730682b0a263ab550518"
},
"fields": {
"displayGroup": [
"97600827f75c65217d8d46db95bb9029"
]
},
"sort": [
0.0,
0.0,
0,
23826,
"0197cb85e750730682b0a263ab550518"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb85d93b721d9414554309107155",
"_score": 0.0,
"_source": {
"autoIncrement": 23816.0,
"id": "0197cb85d93b721d9414554309107155"
},
"fields": {
"displayGroup": [
"c82d757bf277e14cf1e5008297dc72a0"
]
},
"sort": [
0.0,
0.0,
0,
23816,
"0197cb85d93b721d9414554309107155"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197822301b079f691b7bbb1f20a0d48",
"_score": 0.0,
"_source": {
"autoIncrement": 23806.0,
"id": "0197822301b079f691b7bbb1f20a0d48"
},
"fields": {
"displayGroup": [
"6a9aea2b7fa3ea8eb153fb1905dc154d"
]
},
"sort": [
0.0,
0.0,
0,
23806,
"0197822301b079f691b7bbb1f20a0d48"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c996eb273f899b037bc978dfa0b",
"_score": 0.0,
"_source": {
"autoIncrement": 23761.0,
"id": "01967c996eb273f899b037bc978dfa0b"
},
"fields": {
"displayGroup": [
"d44ea8a5aa734c542b2caf04392275c7"
]
},
"sort": [
0.0,
0.0,
0,
23761,
"01967c996eb273f899b037bc978dfa0b"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c9950437082bb8204a5a5bd8ef4",
"_score": 0.0,
"_source": {
"autoIncrement": 23711.0,
"id": "01967c9950437082bb8204a5a5bd8ef4"
},
"fields": {
"displayGroup": [
"22cadf00fabbadf6c8a3eff6c9ae5fb5"
]
},
"sort": [
0.0,
0.0,
0,
23711,
"01967c9950437082bb8204a5a5bd8ef4"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c993d537020bc59c7b82e34c86e",
"_score": 0.0,
"_source": {
"autoIncrement": 23679.0,
"id": "01967c993d537020bc59c7b82e34c86e"
},
"fields": {
"displayGroup": [
"5b84a234e5c17e803469c439d4c44471"
]
},
"sort": [
0.0,
0.0,
0,
23679,
"01967c993d537020bc59c7b82e34c86e"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c993a5e73abb2bcacea16ecfbbd",
"_score": 0.0,
"_source": {
"autoIncrement": 23669.0,
"id": "01967c993a5e73abb2bcacea16ecfbbd"
},
"fields": {
"displayGroup": [
"d03607e88e480a334595f3697e3d7236"
]
},
"sort": [
0.0,
0.0,
0,
23669,
"01967c993a5e73abb2bcacea16ecfbbd"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c992fc370989fb6397dcdfac844",
"_score": 0.0,
"_source": {
"autoIncrement": 23652.0,
"id": "01967c992fc370989fb6397dcdfac844"
},
"fields": {
"displayGroup": [
"292075ceaf57d22adf21d43f4b681273"
]
},
"sort": [
0.0,
0.0,
0,
23652,
"01967c992fc370989fb6397dcdfac844"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c992fbf7215b2426244936afd02",
"_score": 0.0,
"_source": {
"autoIncrement": 23651.0,
"id": "01967c992fbf7215b2426244936afd02"
},
"fields": {
"displayGroup": [
"70be89ed35380a90d4ac3ef9869c31df"
]
},
"sort": [
0.0,
0.0,
0,
23651,
"01967c992fbf7215b2426244936afd02"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c99296e72caabfdc3467c4cd92a",
"_score": 0.0,
"_source": {
"autoIncrement": 23625.0,
"id": "01967c99296e72caabfdc3467c4cd92a"
},
"fields": {
"displayGroup": [
"d38e5d499e21268b72abf83e6691da7b"
]
},
"sort": [
0.0,
0.0,
0,
23625,
"01967c99296e72caabfdc3467c4cd92a"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c99296c7276b82b6bf019d23eb4",
"_score": 0.0,
"_source": {
"autoIncrement": 23624.0,
"id": "01967c99296c7276b82b6bf019d23eb4"
},
"fields": {
"displayGroup": [
"733dd9b57f142ce51ae3787fdad90c22"
]
},
"sort": [
0.0,
0.0,
0,
23624,
"01967c99296c7276b82b6bf019d23eb4"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c991dde73c7adec52dea08db48c",
"_score": 0.0,
"_source": {
"autoIncrement": 23503.0,
"id": "01967c991dde73c7adec52dea08db48c"
},
"fields": {
"displayGroup": [
"b2d82a2f9860e3116602373da8674bd7"
]
},
"sort": [
0.0,
0.0,
0,
23503,
"01967c991dde73c7adec52dea08db48c"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c991884722693974368e5c89c93",
"_score": 0.0,
"_source": {
"autoIncrement": 23443.0,
"id": "01967c991884722693974368e5c89c93"
},
"fields": {
"displayGroup": [
"79ed12b9d942981dfd7461d1562af06e"
]
},
"sort": [
0.0,
0.0,
0,
23443,
"01967c991884722693974368e5c89c93"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01967c991833709ba9d00826afd51043",
"_score": 0.0,
"_source": {
"autoIncrement": 23432.0,
"id": "01967c991833709ba9d00826afd51043"
},
"fields": {
"displayGroup": [
"e83afa5275eeaaed9fb0dab5f29cc577"
]
},
"sort": [
0.0,
0.0,
0,
23432,
"01967c991833709ba9d00826afd51043"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01943fcd618171d6a1f8c0affa2e856c",
"_score": 0.0,
"_source": {
"autoIncrement": 19892.0,
"id": "01943fcd618171d6a1f8c0affa2e856c"
},
"fields": {
"displayGroup": [
"25c664c2c4a8df68573e67ef28e71bc3"
]
},
"sort": [
0.0,
0.0,
0,
19892,
"01943fcd618171d6a1f8c0affa2e856c"
]
}
]
},
"aggregations": {
"total-count": {
"value": 39
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
2 |
4.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":"018d022c2553720eb94890bc17c76147"}}}},{"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": "018d022c2553720eb94890bc17c76147"
}
}
}
},
{
"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": 3,
"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": 1024,
"properties-filter": {
"doc_count": 302,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d022bdd1a726998f01f4894d753a4",
"doc_count": 39
},
{
"key": "018d022c2553720eb94890bc17c76147",
"doc_count": 39
},
{
"key": "018d022c3a39720592e63c5a784344c9",
"doc_count": 32
},
{
"key": "018d022bf2c1713094328a77b34f881d",
"doc_count": 29
},
{
"key": "018d022bf1f8722e96f04a7decde14e7",
"doc_count": 26
},
{
"key": "018d022bf9ef719285210f4890c32873",
"doc_count": 22
},
{
"key": "01943fcfc01372dbb0d41dc3f9ee3c7d",
"doc_count": 22
},
{
"key": "018d022bf92b72a8b41958cc8a3de7bf",
"doc_count": 20
},
{
"key": "018d022bddd473e983cd961ff442364d",
"doc_count": 19
},
{
"key": "018d022bdde27299ab4e9793f5b76f5b",
"doc_count": 8
},
{
"key": "018d022bdf617298bc439b09b0466245",
"doc_count": 8
},
{
"key": "018d022bdf5b711b9339414fc0920beb",
"doc_count": 7
},
{
"key": "018d022c3a6271f290d7ef6e169a0730",
"doc_count": 6
},
{
"key": "018d022bde0b7030b49637290b0bce22",
"doc_count": 5
},
{
"key": "018d022bf8b27172b887b85bdcb465c0",
"doc_count": 5
},
{
"key": "018d022bf1c97186b7f9a433f18247d6",
"doc_count": 3
},
{
"key": "018d022bddb37271a1646f296db49a56",
"doc_count": 2
},
{
"key": "018d022bde3c71e28bccefcb4e81f1c6",
"doc_count": 2
},
{
"key": "018f52e9912f718f82808c902ba14430",
"doc_count": 2
},
{
"key": "018d022bddcb739f84f678370293741a",
"doc_count": 1
},
{
"key": "018d022bddf371f0b107e6219ca4f9aa",
"doc_count": 1
},
{
"key": "018d022bde21738397585e0497540981",
"doc_count": 1
},
{
"key": "018d022bdf54736784570bc2af13104e",
"doc_count": 1
},
{
"key": "018d022bf8e5737dad197d68c1d8089b",
"doc_count": 1
},
{
"key": "01981837affb753ab1306ac17efb81d7",
"doc_count": 1
}
]
}
}
},
"rating-exists": {
"doc_count": 39,
"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": 39,
"min": 11.9,
"max": 615.0,
"avg": 62.97179487179488,
"sum": 2455.9
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d0228b9b2737486dc5eab5f15687b",
"doc_count": 18
},
{
"key": "018d0228796d7320bfc6c7f825cf1f9a",
"doc_count": 8
},
{
"key": "018d022881aa728799b9746b3bcee530",
"doc_count": 6
},
{
"key": "018d02287bf3702b88e978de4a299829",
"doc_count": 5
},
{
"key": "018d022850fc73cb8a7ff1078dc647bb",
"doc_count": 1
},
{
"key": "018d0228d4f57050be79400b605d24d0",
"doc_count": 1
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|