1 |
5.03 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":"0190fde2e2b570a3b5bf47784840993a"}}}},{"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": 158,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "sw-staging_product_1755509385",
"_id": "01993311afb070bd8ca2e62dc78cb202",
"_score": 0.0,
"_source": {
"autoIncrement": 24343.0,
"id": "01993311afb070bd8ca2e62dc78cb202"
},
"fields": {
"displayGroup": [
"c3c133c2c4908b1eb55a78dccc1ce590"
]
},
"sort": [
0.0,
0.0,
0,
24343,
"01993311afb070bd8ca2e62dc78cb202"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198d0df333a70628f4c83f6423bfc9f",
"_score": 0.0,
"_source": {
"autoIncrement": 24330.0,
"id": "0198d0df333a70628f4c83f6423bfc9f"
},
"fields": {
"displayGroup": [
"5b700c9037d58e750889e3d4aa59a0ea"
]
},
"sort": [
0.0,
0.0,
0,
24330,
"0198d0df333a70628f4c83f6423bfc9f"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198cca4c37a73508844daebb73d5b8f",
"_score": 0.0,
"_source": {
"autoIncrement": 24327.0,
"id": "0198cca4c37a73508844daebb73d5b8f"
},
"fields": {
"displayGroup": [
"0cd0634a7bdf07860abcc8438d32a76d"
]
},
"sort": [
0.0,
0.0,
0,
24327,
"0198cca4c37a73508844daebb73d5b8f"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198cc8ac4a4700e975b809a2e9e6321",
"_score": 0.0,
"_source": {
"autoIncrement": 24323.0,
"id": "0198cc8ac4a4700e975b809a2e9e6321"
},
"fields": {
"displayGroup": [
"c95ebaba349cc6fc86ae979f20ef27af"
]
},
"sort": [
0.0,
0.0,
0,
24323,
"0198cc8ac4a4700e975b809a2e9e6321"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019855135fd971c8854f18e101d50151",
"_score": 0.0,
"_source": {
"autoIncrement": 24161.0,
"id": "019855135fd971c8854f18e101d50151"
},
"fields": {
"displayGroup": [
"3d1a305ccd1ad9dd778bf0c1e5f6c1d9"
]
},
"sort": [
0.0,
0.0,
0,
24161,
"019855135fd971c8854f18e101d50151"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "019854e80d1a71e3beace8e9b7b1e13b",
"_score": 0.0,
"_source": {
"autoIncrement": 24158.0,
"id": "019854e80d1a71e3beace8e9b7b1e13b"
},
"fields": {
"displayGroup": [
"d24a933fbaee2da3e915e7af312fdf51"
]
},
"sort": [
0.0,
0.0,
0,
24158,
"019854e80d1a71e3beace8e9b7b1e13b"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985192c9477264b5b5551bdbd0371f",
"_score": 0.0,
"_source": {
"autoIncrement": 24131.0,
"id": "01985192c9477264b5b5551bdbd0371f"
},
"fields": {
"displayGroup": [
"8757d8d2f2c9e38b410707a121b363e3"
]
},
"sort": [
0.0,
0.0,
0,
24131,
"01985192c9477264b5b5551bdbd0371f"
]
},
{
"_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": "019851444a277379ad4d9a49caf1a4f6",
"_score": 0.0,
"_source": {
"autoIncrement": 24086.0,
"id": "019851444a277379ad4d9a49caf1a4f6"
},
"fields": {
"displayGroup": [
"04ba380f0c4fc12de4130aa34e9b5649"
]
},
"sort": [
0.0,
0.0,
0,
24086,
"019851444a277379ad4d9a49caf1a4f6"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985124a4c87163972f688f4d7a4cb0",
"_score": 0.0,
"_source": {
"autoIncrement": 24072.0,
"id": "01985124a4c87163972f688f4d7a4cb0"
},
"fields": {
"displayGroup": [
"bedb7bee124c6be282e6f925feb26a0b"
]
},
"sort": [
0.0,
0.0,
0,
24072,
"01985124a4c87163972f688f4d7a4cb0"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0198512256ce7b488bddecdab5c18134",
"_score": 0.0,
"_source": {
"autoIncrement": 24071.0,
"id": "0198512256ce7b488bddecdab5c18134"
},
"fields": {
"displayGroup": [
"daffc15af2743f6ccf6bdf32c16ed9ad"
]
},
"sort": [
0.0,
0.0,
0,
24071,
"0198512256ce7b488bddecdab5c18134"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "01985075f7177389b98e284c9834a20f",
"_score": 0.0,
"_source": {
"autoIncrement": 24042.0,
"id": "01985075f7177389b98e284c9834a20f"
},
"fields": {
"displayGroup": [
"598dcc35a6f6562dd5d43f8f407d5caf"
]
},
"sort": [
0.0,
0.0,
0,
24042,
"01985075f7177389b98e284c9834a20f"
]
},
{
"_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": "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": "01983c428fa4739e8a9975b0441171df",
"_score": 0.0,
"_source": {
"autoIncrement": 24002.0,
"id": "01983c428fa4739e8a9975b0441171df"
},
"fields": {
"displayGroup": [
"7e60eb1fb30d911eb9b72dbd80f48247"
]
},
"sort": [
0.0,
0.0,
0,
24002,
"01983c428fa4739e8a9975b0441171df"
]
},
{
"_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": "0197cb86a54172da84dfa9fc3e43ca46",
"_score": 0.0,
"_source": {
"autoIncrement": 23969.0,
"id": "0197cb86a54172da84dfa9fc3e43ca46"
},
"fields": {
"displayGroup": [
"d3088059a35a174da3048f8e8327e602"
]
},
"sort": [
0.0,
0.0,
0,
23969,
"0197cb86a54172da84dfa9fc3e43ca46"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb869a977265b443a060d33903da",
"_score": 0.0,
"_source": {
"autoIncrement": 23960.0,
"id": "0197cb869a977265b443a060d33903da"
},
"fields": {
"displayGroup": [
"c5fd10b8ca55e52a25e3f7ec5af93f11"
]
},
"sort": [
0.0,
0.0,
0,
23960,
"0197cb869a977265b443a060d33903da"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb86892f712c8323c5056719bb97",
"_score": 0.0,
"_source": {
"autoIncrement": 23949.0,
"id": "0197cb86892f712c8323c5056719bb97"
},
"fields": {
"displayGroup": [
"69d80be2947bd2eecb78aae23fa0d840"
]
},
"sort": [
0.0,
0.0,
0,
23949,
"0197cb86892f712c8323c5056719bb97"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb8675cb730f9b21bb6e856adc74",
"_score": 0.0,
"_source": {
"autoIncrement": 23934.0,
"id": "0197cb8675cb730f9b21bb6e856adc74"
},
"fields": {
"displayGroup": [
"6cd5e003b1d756f031c229d15b09587b"
]
},
"sort": [
0.0,
0.0,
0,
23934,
"0197cb8675cb730f9b21bb6e856adc74"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb8671ab71d8a780d90a2ccf89f4",
"_score": 0.0,
"_source": {
"autoIncrement": 23931.0,
"id": "0197cb8671ab71d8a780d90a2ccf89f4"
},
"fields": {
"displayGroup": [
"92c97234d8045dd928d83df955db3605"
]
},
"sort": [
0.0,
0.0,
0,
23931,
"0197cb8671ab71d8a780d90a2ccf89f4"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb8650ce7162be9bec276e0a8eef",
"_score": 0.0,
"_source": {
"autoIncrement": 23905.0,
"id": "0197cb8650ce7162be9bec276e0a8eef"
},
"fields": {
"displayGroup": [
"f98270cf29836e820c5991a9161a8c1f"
]
},
"sort": [
0.0,
0.0,
0,
23905,
"0197cb8650ce7162be9bec276e0a8eef"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb864f8a728bbb0ee49f03d2c723",
"_score": 0.0,
"_source": {
"autoIncrement": 23904.0,
"id": "0197cb864f8a728bbb0ee49f03d2c723"
},
"fields": {
"displayGroup": [
"e24486e5db3fbc29e3771d14a1dc7152"
]
},
"sort": [
0.0,
0.0,
0,
23904,
"0197cb864f8a728bbb0ee49f03d2c723"
]
},
{
"_index": "sw-staging_product_1755509385",
"_id": "0197cb864eaa71bc84836fb7867a2d71",
"_score": 0.0,
"_source": {
"autoIncrement": 23903.0,
"id": "0197cb864eaa71bc84836fb7867a2d71"
},
"fields": {
"displayGroup": [
"b4f99658ca6a02f64db7f8da7f5ed0ed"
]
},
"sort": [
0.0,
0.0,
0,
23903,
"0197cb864eaa71bc84836fb7867a2d71"
]
}
]
},
"aggregations": {
"total-count": {
"value": 158
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
2 |
5.28 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":"0190fde2e2b570a3b5bf47784840993a"}}}},{"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": "0190fde2e2b570a3b5bf47784840993a"
}
}
}
},
{
"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": 4335,
"properties-filter": {
"doc_count": 1018,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d022bddd473e983cd961ff442364d",
"doc_count": 141
},
{
"key": "018d022bdd2370a1b115725042f5c511",
"doc_count": 138
},
{
"key": "018d022c3a407182b69327f39ec7082b",
"doc_count": 86
},
{
"key": "018d022c2418700fa3bbe8becded631c",
"doc_count": 59
},
{
"key": "018d022c3a6271f290d7ef6e169a0730",
"doc_count": 53
},
{
"key": "018d022bdf617298bc439b09b0466245",
"doc_count": 42
},
{
"key": "018d022bf84f7340a2d5e70e0f17cd2a",
"doc_count": 34
},
{
"key": "01943fcfc01372dbb0d41dc3f9ee3c7d",
"doc_count": 33
},
{
"key": "018d022bdf5b711b9339414fc0920beb",
"doc_count": 27
},
{
"key": "018d022bdf54736784570bc2af13104e",
"doc_count": 25
},
{
"key": "018d022c248f70ed8d004672f64509a2",
"doc_count": 21
},
{
"key": "018d022bf1ec71829e91c8f34d7ce340",
"doc_count": 18
},
{
"key": "018d022bf3fa7042b4bca58267b0579f",
"doc_count": 18
},
{
"key": "018d022c24dd72929aff67c77eff23f5",
"doc_count": 18
},
{
"key": "018d022bdd1172bf9a832c8ef29ca6b5",
"doc_count": 14
},
{
"key": "018d022bdde27299ab4e9793f5b76f5b",
"doc_count": 13
},
{
"key": "018d022bf213725bb964d16a460f3b01",
"doc_count": 13
},
{
"key": "018d022bf3a5702aa0d51bbceeb3b7d9",
"doc_count": 13
},
{
"key": "018d022c2605734db3780fd38084ce08",
"doc_count": 13
},
{
"key": "018d022c3a39720592e63c5a784344c9",
"doc_count": 13
},
{
"key": "018d022bf1a272b1a884228150d00570",
"doc_count": 11
},
{
"key": "018d022bf8bf731cbf0711bc85556f9b",
"doc_count": 11
},
{
"key": "018d022c25e4729eb01b4148168084b4",
"doc_count": 11
},
{
"key": "018d022bdf41726ea0bca4c57f5e0e37",
"doc_count": 10
},
{
"key": "018d022bf37b73caaa0f517d0b647286",
"doc_count": 9
},
{
"key": "018d022bf3957294acb0e1d64c27d57c",
"doc_count": 8
},
{
"key": "018d022bf48573c8937ff30f2e1134fb",
"doc_count": 8
},
{
"key": "018d022bf89871fd918b610f64b0f557",
"doc_count": 8
},
{
"key": "018d022bf8de7006b92874d86050997d",
"doc_count": 8
},
{
"key": "018d022bf999711bbb5b9e0bae7a55b9",
"doc_count": 8
},
{
"key": "018d022c250d700cb50704d856a25e4a",
"doc_count": 8
},
{
"key": "018d022bdf2c735d8ef11eed6f1aeb5a",
"doc_count": 7
},
{
"key": "018d022bf219726792f3571cc5b89043",
"doc_count": 6
},
{
"key": "018d022bedd472b8993db4a8c8ac7136",
"doc_count": 5
},
{
"key": "018d022bf319723c982a3115d97f0f9b",
"doc_count": 5
},
{
"key": "018d022bf8e5737dad197d68c1d8089b",
"doc_count": 5
},
{
"key": "018d022c249e71f999904fe4ab1fa224",
"doc_count": 5
},
{
"key": "018d022bf92b72a8b41958cc8a3de7bf",
"doc_count": 4
},
{
"key": "018d022bfa0073c2b929550a1fc9c55c",
"doc_count": 4
},
{
"key": "018d022c246d70c88aaf989c07f7c45f",
"doc_count": 4
},
{
"key": "018d022c3a5972c094bd27285fc5e216",
"doc_count": 4
},
{
"key": "018d022bdd577122addb2b9102c279e6",
"doc_count": 3
},
{
"key": "018d022bdf1c7278bf94eeb138febace",
"doc_count": 3
},
{
"key": "018d022bf2df72108e277baf11481262",
"doc_count": 3
},
{
"key": "018d022c24a570a98f686eaf1c3c02f2",
"doc_count": 3
},
{
"key": "018d022c254372d58ba9d5ecfdbe562c",
"doc_count": 3
},
{
"key": "018d022c25be73eead1ca86ca739efa3",
"doc_count": 3
},
{
"key": "018d022bde0b7030b49637290b0bce22",
"doc_count": 2
},
{
"key": "018d022bf27272039ed178cb85332539",
"doc_count": 2
},
{
"key": "018d022bf2d372bc9b09217194689f06",
"doc_count": 2
},
{
"key": "018d022bf32872cba123fba6a30d5bfb",
"doc_count": 2
},
{
"key": "018d022bf3ad7054966ffd42bd7ba343",
"doc_count": 2
},
{
"key": "018d022bf413724aa7027bc9c1e723fc",
"doc_count": 2
},
{
"key": "018d022bf47d70b1b8d2333e13eb6d96",
"doc_count": 2
},
{
"key": "018d022bf89073d09258350bec9f0049",
"doc_count": 2
},
{
"key": "018d022c256e7109853b635115e4addd",
"doc_count": 2
},
{
"key": "018d022c3a1b72518c04feb03dbf326b",
"doc_count": 2
},
{
"key": "0190fde2de8072e0a28a068c4008e599",
"doc_count": 2
},
{
"key": "018d022bd93b712f93f0461aedb313c0",
"doc_count": 1
},
{
"key": "018d022bd94771858d8c5494f21c23bb",
"doc_count": 1
},
{
"key": "018d022bdd1a726998f01f4894d753a4",
"doc_count": 1
},
{
"key": "018d022bddb37271a1646f296db49a56",
"doc_count": 1
},
{
"key": "018d022bddbb70bcb02be090cb4c500f",
"doc_count": 1
},
{
"key": "018d022bdee373da96a6f813d69bb471",
"doc_count": 1
},
{
"key": "018d022bdf0570f4b4968ec9846d1af5",
"doc_count": 1
},
{
"key": "018d022bdf1373a8ba218cea4ce9966d",
"doc_count": 1
},
{
"key": "018d022beda7727e8621388b8033cfbb",
"doc_count": 1
},
{
"key": "018d022bedbe73dab6746d7464e8641e",
"doc_count": 1
},
{
"key": "018d022bedc570479b5e78b8e5dc9b74",
"doc_count": 1
},
{
"key": "018d022bf1e070c6af033ae4a92faffc",
"doc_count": 1
},
{
"key": "018d022bf2ab72178f3a9fe295bbd77d",
"doc_count": 1
},
{
"key": "018d022bf2b2736b801e9847536a9c34",
"doc_count": 1
},
{
"key": "018d022bf2c1713094328a77b34f881d",
"doc_count": 1
},
{
"key": "018d022bf33a7091a70999cec02d939e",
"doc_count": 1
},
{
"key": "018d022bf3427163a86e66645162f588",
"doc_count": 1
},
{
"key": "018d022bf3bc725896b16e825fbaa39b",
"doc_count": 1
},
{
"key": "018d022bf44c71e2b1d5e344dda29343",
"doc_count": 1
},
{
"key": "018d022bf46071b1a094b31df279988e",
"doc_count": 1
},
{
"key": "018d022bf85672c691ae138b958bc807",
"doc_count": 1
},
{
"key": "018d022bf888714db44794588d1e5fc6",
"doc_count": 1
},
{
"key": "018d022bf8fc70c1871609386603b4ee",
"doc_count": 1
},
{
"key": "018d022bf98e720085fbf65247c44f7f",
"doc_count": 1
},
{
"key": "018d022bf9d0707d805ee88c046f35de",
"doc_count": 1
},
{
"key": "018d022bfa097129bdc0cd196a05cd03",
"doc_count": 1
},
{
"key": "018d022c2083703a9fb74c3c47358e19",
"doc_count": 1
},
{
"key": "018d022c242070bfbfe89c948d24eda9",
"doc_count": 1
},
{
"key": "018d022c24d573ca8b30a5c1062e6e07",
"doc_count": 1
},
{
"key": "018d022c25ee7166b03c6453a336b701",
"doc_count": 1
},
{
"key": "018f52e9944972fca4da376d430aa5d6",
"doc_count": 1
},
{
"key": "018f52e9944b7154bebb220a5c75f329",
"doc_count": 1
},
{
"key": "0190fde2defc70e9aeb08b4bedcc18cb",
"doc_count": 1
},
{
"key": "01967c99b8e473a8b566d0f547ac1977",
"doc_count": 1
},
{
"key": "01980e7378847760974be60b9e66caec",
"doc_count": 1
},
{
"key": "01981837992f7f8e9c42dc2a5820413c",
"doc_count": 1
},
{
"key": "01982bd36d4f7b478a04c21d1cc7e0df",
"doc_count": 1
}
]
}
}
},
"rating-exists": {
"doc_count": 158,
"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": 158,
"min": 6.5,
"max": 139.9,
"avg": 20.10854430379747,
"sum": 3177.15
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "018d0228574d707abed126019df288d5",
"doc_count": 18
},
{
"key": "018d02286bbe7354bc38e76edf4451fc",
"doc_count": 17
},
{
"key": "018d02286d07722682211ac0b2a6d035",
"doc_count": 14
},
{
"key": "018d0228bf5c734182d64260fb8518ae",
"doc_count": 8
},
{
"key": "018d02285727727db42cf4a2bebfe6ee",
"doc_count": 7
},
{
"key": "018d022895ad708389bb0b05b92a5251",
"doc_count": 6
},
{
"key": "018d022858db73f48dea4474cfdd3acb",
"doc_count": 5
},
{
"key": "018d0228700573aa986855b7acf418c2",
"doc_count": 5
},
{
"key": "018d022850ce7109af68d01ebfe2af54",
"doc_count": 4
},
{
"key": "018d022853f77115b48de1e8f0d162d0",
"doc_count": 4
},
{
"key": "018d02285a03739c88207451c67cfa33",
"doc_count": 4
},
{
"key": "018d02285a8f73f6b49127426c3bd81e",
"doc_count": 4
},
{
"key": "018d02286bea714a8c4a65dd91c2d101",
"doc_count": 4
},
{
"key": "018d02288ead7026ab6d8379b387da97",
"doc_count": 4
},
{
"key": "018d02285a4770a0a2214d450c3bd730",
"doc_count": 3
},
{
"key": "018d02285afa708d8c0c158d20ec2974",
"doc_count": 3
},
{
"key": "018d02286c33720e894249b18c7d8b00",
"doc_count": 3
},
{
"key": "018d02286d787116a7d322ecbbab589f",
"doc_count": 3
},
{
"key": "018d0228797c71dab31264c550501763",
"doc_count": 3
},
{
"key": "018d022881e3710aa8eb165daf404dee",
"doc_count": 3
},
{
"key": "018d02289517723b8d6a644efbe06ab0",
"doc_count": 3
},
{
"key": "018d0228a9d5702f9b8045882cbe7a0c",
"doc_count": 3
},
{
"key": "018d0228bfb6720ca950256387ebdaf9",
"doc_count": 3
},
{
"key": "018d0229f10e7158a903b2a7e1b8ba4f",
"doc_count": 3
},
{
"key": "018d0228507572158ab00cf0d429afdf",
"doc_count": 2
},
{
"key": "018d02285244719c8eeb2c4b202241a0",
"doc_count": 2
},
{
"key": "018d022866c3709cbaa4c420735bf0b3",
"doc_count": 2
},
{
"key": "018d0228bf717095864208f4028811e5",
"doc_count": 2
},
{
"key": "018d0229ef807117928f4294968b410a",
"doc_count": 2
},
{
"key": "018d022854587162b7615e9d7ac5ae5d",
"doc_count": 1
},
{
"key": "018d0228546f70fcb08aee93b0f6a136",
"doc_count": 1
},
{
"key": "018d022857b973f98be5d2c89aa131fb",
"doc_count": 1
},
{
"key": "018d022867dc7319be15df8b868a25b1",
"doc_count": 1
},
{
"key": "018d022868c8707da282970e30bd0a9f",
"doc_count": 1
},
{
"key": "018d02286ddc7053a323907a86118bec",
"doc_count": 1
},
{
"key": "018d022880ab7113920edcf583193d23",
"doc_count": 1
},
{
"key": "018d0228816671cba076decd66141a0e",
"doc_count": 1
},
{
"key": "018d02288335707aa484292d67e77b9e",
"doc_count": 1
},
{
"key": "018d0228a23b71bba88867ae8c511698",
"doc_count": 1
},
{
"key": "018d0228aa157106bda99d9d445b9d5a",
"doc_count": 1
},
{
"key": "018f52e93034738d978962cad94f2ff1",
"doc_count": 1
},
{
"key": "01967c991811702387ac5f02c094669e",
"doc_count": 1
},
{
"key": "01967c9918817264af940c2538e49ce7",
"doc_count": 1
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|