| 1 |
17.19 ms |
Request:
{"index":"staging-67_product","search_type":"query_then_fetch","track_total_hits":true,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"62dc833447e7e08270ead97ad4ab5417"}},{"exists":{"field":"displayGroup"}}]}}],"should":[{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea07ad57e59841906b9dac1ae23"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea3242c77a3ad7aaa686586f79c"]}}}}]}},"boost":150.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018fe3229d5677949c032d1a4983f006"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["f4e67c126b4e4b4f8b4f4b8295613b5b"]}}}}]}},"boost":1000.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["15706c7290284128acdcdc0aa07bda52"]}}}}]}},"boost":400.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["a33aa3f47e2147c9be62a08216f92c1c"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["e3d0223b8cfd4edb8b5581ae7e9ab5cf"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["62000891305f4ae4837e16e336cf2868"]}}}}]}},"boost":200.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["9222eeebbd984a1fbba6521d6c03bc43"]}}}}]}},"boost":250.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["cb292e1aaf854891a0d4e2fca32dd02f"]}}}}]}},"boost":100.0}}]}},"sort":[{"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.acris_search_sorting_relevance":{"unmapped_type":"integer","missing":0,"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":24,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 164,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "f7c9c9d50255d4cbcbbbbac486d35a78",
"_score": 1100.0,
"_source": {
"id": "f7c9c9d50255d4cbcbbbbac486d35a78",
"autoIncrement": 39908.0
},
"fields": {
"displayGroup": [
"2b6c02cf2fcaf9a845b0dd6b6bcff2bb"
]
},
"sort": [
65,
1100.0,
0,
39908,
"f7c9c9d50255d4cbcbbbbac486d35a78"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "77cd0cdfc05e7e6037600bc6e3c0b788",
"_score": 1100.0,
"_source": {
"id": "77cd0cdfc05e7e6037600bc6e3c0b788",
"autoIncrement": 39907.0
},
"fields": {
"displayGroup": [
"eac92de293f4adb04d1164ffd804d1d9"
]
},
"sort": [
64,
1100.0,
0,
39907,
"77cd0cdfc05e7e6037600bc6e3c0b788"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d5c979b640a37a12498143eb9f965663",
"_score": 1100.0,
"_source": {
"id": "d5c979b640a37a12498143eb9f965663",
"autoIncrement": 39906.0
},
"fields": {
"displayGroup": [
"6fb43007f53ad170d2fd6cf6cbe92f54"
]
},
"sort": [
63,
1100.0,
0,
39906,
"d5c979b640a37a12498143eb9f965663"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0b33e8b7a277c3010c465a4d2a168629",
"_score": 1100.0,
"_source": {
"id": "0b33e8b7a277c3010c465a4d2a168629",
"autoIncrement": 39905.0
},
"fields": {
"displayGroup": [
"9b8f465ec326fb477a1de2714103ea60"
]
},
"sort": [
62,
1100.0,
0,
39905,
"0b33e8b7a277c3010c465a4d2a168629"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "568970cd31fcc5367eae7f0ffd3def06",
"_score": 1100.0,
"_source": {
"id": "568970cd31fcc5367eae7f0ffd3def06",
"autoIncrement": 39904.0
},
"fields": {
"displayGroup": [
"3ead0529f428b81f4279434b8d2acfc2"
]
},
"sort": [
61,
1100.0,
0,
39904,
"568970cd31fcc5367eae7f0ffd3def06"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a41c7a76919f6d427f34ada7351b8216",
"_score": 1100.0,
"_source": {
"id": "a41c7a76919f6d427f34ada7351b8216",
"autoIncrement": 39903.0
},
"fields": {
"displayGroup": [
"d5b015fa866ea7f785abf1ecca3d9c04"
]
},
"sort": [
60,
1100.0,
0,
39903,
"a41c7a76919f6d427f34ada7351b8216"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ac3411b740b5660df0546a760e5a240a",
"_score": 1100.0,
"_source": {
"id": "ac3411b740b5660df0546a760e5a240a",
"autoIncrement": 39902.0
},
"fields": {
"displayGroup": [
"8e0566ebfff0b0eb4c17a052eec9a385"
]
},
"sort": [
59,
1100.0,
0,
39902,
"ac3411b740b5660df0546a760e5a240a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7d4ea30c731eecdaa7d1bc86404a72c6",
"_score": 1100.0,
"_source": {
"id": "7d4ea30c731eecdaa7d1bc86404a72c6",
"autoIncrement": 39901.0
},
"fields": {
"displayGroup": [
"1e86c3206c9978335739ced526696865"
]
},
"sort": [
58,
1100.0,
0,
39901,
"7d4ea30c731eecdaa7d1bc86404a72c6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9317d9d2d7dfa547fa642da640492abb",
"_score": 1100.0,
"_source": {
"id": "9317d9d2d7dfa547fa642da640492abb",
"autoIncrement": 39900.0
},
"fields": {
"displayGroup": [
"873c7822dd203f6b0d1763bdbe9689db"
]
},
"sort": [
57,
1100.0,
0,
39900,
"9317d9d2d7dfa547fa642da640492abb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "561172037228876e775e64e613682a3b",
"_score": 1100.0,
"_source": {
"id": "561172037228876e775e64e613682a3b",
"autoIncrement": 39899.0
},
"fields": {
"displayGroup": [
"d1601842917db227f5c5e3d7f25d3ca2"
]
},
"sort": [
56,
1100.0,
0,
39899,
"561172037228876e775e64e613682a3b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cd48cc4088a88ae48af7315b842e9880",
"_score": 1100.0,
"_source": {
"id": "cd48cc4088a88ae48af7315b842e9880",
"autoIncrement": 39898.0
},
"fields": {
"displayGroup": [
"dfcfe6c3117250346539312dd3a5568a"
]
},
"sort": [
55,
1100.0,
0,
39898,
"cd48cc4088a88ae48af7315b842e9880"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b05208939cd45239f20eb9d7eb704dea",
"_score": 1100.0,
"_source": {
"id": "b05208939cd45239f20eb9d7eb704dea",
"autoIncrement": 39897.0
},
"fields": {
"displayGroup": [
"0a2af15a203cf5df30e8ab0748256422"
]
},
"sort": [
54,
1100.0,
0,
39897,
"b05208939cd45239f20eb9d7eb704dea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ec17aa0d994ac1424991c90d78fabb08",
"_score": 1100.0,
"_source": {
"id": "ec17aa0d994ac1424991c90d78fabb08",
"autoIncrement": 39896.0
},
"fields": {
"displayGroup": [
"c24489abc71b54a6a8c2b47f1fe0519b"
]
},
"sort": [
53,
1100.0,
0,
39896,
"ec17aa0d994ac1424991c90d78fabb08"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "84fbcd82c7f5ff2c244519759e225a1f",
"_score": 1100.0,
"_source": {
"id": "84fbcd82c7f5ff2c244519759e225a1f",
"autoIncrement": 39895.0
},
"fields": {
"displayGroup": [
"e0a950f94aaf9a305e0ca5cef3afd800"
]
},
"sort": [
52,
1100.0,
0,
39895,
"84fbcd82c7f5ff2c244519759e225a1f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bdf6be0127d799e26d77bcf9e961cd29",
"_score": 1100.0,
"_source": {
"id": "bdf6be0127d799e26d77bcf9e961cd29",
"autoIncrement": 39894.0
},
"fields": {
"displayGroup": [
"995d894d742e54e8391d43ed849291c0"
]
},
"sort": [
51,
1100.0,
0,
39894,
"bdf6be0127d799e26d77bcf9e961cd29"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cf17188657e7f52903a62ddc162d5137",
"_score": 1100.0,
"_source": {
"id": "cf17188657e7f52903a62ddc162d5137",
"autoIncrement": 39893.0
},
"fields": {
"displayGroup": [
"602587823d9ffdce5ef9939bb1f2c933"
]
},
"sort": [
50,
1100.0,
0,
39893,
"cf17188657e7f52903a62ddc162d5137"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5c45205363db21686c536e02ef398425",
"_score": 1100.0,
"_source": {
"id": "5c45205363db21686c536e02ef398425",
"autoIncrement": 39892.0
},
"fields": {
"displayGroup": [
"b3c838e3303a26435ecc27cdd4fcefa0"
]
},
"sort": [
49,
1100.0,
0,
39892,
"5c45205363db21686c536e02ef398425"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f18b1ef3542c927a3b836833d641bac2",
"_score": 1100.0,
"_source": {
"id": "f18b1ef3542c927a3b836833d641bac2",
"autoIncrement": 39891.0
},
"fields": {
"displayGroup": [
"89743449a5cd89d47be74e698a760dc4"
]
},
"sort": [
48,
1100.0,
0,
39891,
"f18b1ef3542c927a3b836833d641bac2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a0e86f4e66938d9297a64e798e41c1dd",
"_score": 1100.0,
"_source": {
"id": "a0e86f4e66938d9297a64e798e41c1dd",
"autoIncrement": 39890.0
},
"fields": {
"displayGroup": [
"7d2543498e5f9f9cc1e8862b61768644"
]
},
"sort": [
47,
1100.0,
0,
39890,
"a0e86f4e66938d9297a64e798e41c1dd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d530866872cfbfb4cf2b960b2b93ae7d",
"_score": 1100.0,
"_source": {
"id": "d530866872cfbfb4cf2b960b2b93ae7d",
"autoIncrement": 39889.0
},
"fields": {
"displayGroup": [
"be2c0f5d423c6b9a2cfb899542525165"
]
},
"sort": [
46,
1100.0,
0,
39889,
"d530866872cfbfb4cf2b960b2b93ae7d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2e0cad530c6e8d09ddf358f2e3077c73",
"_score": 1100.0,
"_source": {
"id": "2e0cad530c6e8d09ddf358f2e3077c73",
"autoIncrement": 39888.0
},
"fields": {
"displayGroup": [
"85c516a68a4871246125a22bf0260f4a"
]
},
"sort": [
45,
1100.0,
0,
39888,
"2e0cad530c6e8d09ddf358f2e3077c73"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d39e8899839e0518341d6b50b9aff0c7",
"_score": 1100.0,
"_source": {
"id": "d39e8899839e0518341d6b50b9aff0c7",
"autoIncrement": 39887.0
},
"fields": {
"displayGroup": [
"0708cfb6221394c8f69d70af14987b36"
]
},
"sort": [
44,
1100.0,
0,
39887,
"d39e8899839e0518341d6b50b9aff0c7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3a23c4f103e7dbcbfb16addef5bf895d",
"_score": 1100.0,
"_source": {
"id": "3a23c4f103e7dbcbfb16addef5bf895d",
"autoIncrement": 39886.0
},
"fields": {
"displayGroup": [
"478dbdddf4f6af618ddad4bbfc692cb4"
]
},
"sort": [
43,
1100.0,
0,
39886,
"3a23c4f103e7dbcbfb16addef5bf895d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9573af571853f5349d5ca39269c5f7e1",
"_score": 1100.0,
"_source": {
"id": "9573af571853f5349d5ca39269c5f7e1",
"autoIncrement": 39885.0
},
"fields": {
"displayGroup": [
"6bb85692202285ef153f00aed915b5a8"
]
},
"sort": [
42,
1100.0,
0,
39885,
"9573af571853f5349d5ca39269c5f7e1"
]
}
]
},
"aggregations": {
"total-count": {
"value": 164
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
4.84 ms |
Request:
{"index":"staging-67_product","track_total_hits":false,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"62dc833447e7e08270ead97ad4ab5417"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"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_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","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":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"width":{"stats":{"field":"width"}},"width-stats":{"filter":{"range":{"width":{"gt":0.0}}},"aggregations":{"width-stats":{"stats":{"field":"width"}}}},"height":{"stats":{"field":"height"}},"height-stats":{"filter":{"range":{"height":{"gt":0.0}}},"aggregations":{"height-stats":{"stats":{"field":"height"}}}},"tiefe":{"stats":{"field":"attribute_tiefe"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"multi-material":{"composite":{"sources":[{"multi-material.sorting":{"terms":{"field":"attribute_material","order":"ASC"}}},{"multi-material.key":{"terms":{"field":"attribute_material"}}}],"size":"99999"}},"manufacturer-count":{"terms":{"field":"manufacturerId","size":10000}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
POST http://localhost:9200/staging-67_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": [
{
"term": {
"active": true
}
},
{
"range": {
"visibility_132e445c03814d67ac47c04afb6d5d99": {
"gte": 30
}
}
}
]
}
},
{
"term": {
"categoryTree": "62dc833447e7e08270ead97ad4ab5417"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"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_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"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": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"width": {
"stats": {
"field": "width"
}
},
"width-stats": {
"filter": {
"range": {
"width": {
"gt": 0.0
}
}
},
"aggregations": {
"width-stats": {
"stats": {
"field": "width"
}
}
}
},
"height": {
"stats": {
"field": "height"
}
},
"height-stats": {
"filter": {
"range": {
"height": {
"gt": 0.0
}
}
},
"aggregations": {
"height-stats": {
"stats": {
"field": "height"
}
}
}
},
"tiefe": {
"stats": {
"field": "attribute_tiefe"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 164,
"min": 185.0,
"max": 2971.0,
"avg": 815.614756097561,
"sum": 133760.82
},
"rating-exists": {
"doc_count": 164,
"rating": {
"value": 0.0
}
},
"shipping-free-filter": {
"doc_count": 0,
"shipping-free": {
"value": null
}
},
"properties": {
"doc_count": 0,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"options": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"manufacturer-count-filter": {
"after_key": {
"manufacturer-count-filter.sorting": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "2fc223ce6476978f04619d762abe9f3e",
"manufacturer-count-filter.key": "2fc223ce6476978f04619d762abe9f3e"
},
"doc_count": 70
},
{
"key": {
"manufacturer-count-filter.sorting": "6face5c8353d05da0eeacdd4ef058334",
"manufacturer-count-filter.key": "6face5c8353d05da0eeacdd4ef058334"
},
"doc_count": 90
},
{
"key": {
"manufacturer-count-filter.sorting": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"doc_count": 4
}
]
},
"bool-reduced": {
"doc_count": 5,
"bool-reduced": {
"value": 5
}
},
"width": {
"count": 164,
"min": 279.0,
"max": 1350.0,
"avg": 582.2439024390244,
"sum": 95488.0
},
"width-stats": {
"doc_count": 164,
"width-stats": {
"count": 164,
"min": 279.0,
"max": 1350.0,
"avg": 582.2439024390244,
"sum": 95488.0
}
},
"height": {
"count": 163,
"min": 98.0,
"max": 1357.0,
"avg": 908.6687116564417,
"sum": 148113.0
},
"height-stats": {
"doc_count": 163,
"height-stats": {
"count": 163,
"min": 98.0,
"max": 1357.0,
"avg": 908.6687116564417,
"sum": 148113.0
}
},
"tiefe": {
"count": 164,
"min": 380.0,
"max": 960.0,
"avg": 564.170731707317,
"sum": 92524.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Schubladenschr\u00e4nke",
"multi-typModel.key": "Schubladenschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "H\u00e4ngeregistraturschr\u00e4nke",
"multi-typModel.key": "H\u00e4ngeregistraturschr\u00e4nke"
},
"doc_count": 90
},
{
"key": {
"multi-typModel.sorting": "Schubladenschr\u00e4nke",
"multi-typModel.key": "Schubladenschr\u00e4nke"
},
"doc_count": 74
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "RAL 7021 schwarzgrau",
"multi-farbe.key": "RAL 7021 schwarzgrau"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7021 schwarzgrau",
"multi-farbe.key": "RAL 7021 schwarzgrau"
},
"doc_count": 1
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 150
},
{
"key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"doc_count": 10
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "6face5c8353d05da0eeacdd4ef058334",
"doc_count": 90
},
{
"key": "2fc223ce6476978f04619d762abe9f3e",
"doc_count": 70
},
{
"key": "7bd063d302bdd813d4944cec5509cfa3",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|