| 1 |
16.06 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":"c7e554079c9470408efcf23bf8efb40e"}},{"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":0,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 132,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "2672e8e45d834b609a204e699c474193",
"_score": 1100.0,
"_source": {
"id": "2672e8e45d834b609a204e699c474193",
"autoIncrement": 29903.0
},
"fields": {
"displayGroup": [
"e5945a64eb7468710992350c1ade40ac"
]
},
"sort": [
90,
1100.0,
0,
29903,
"2672e8e45d834b609a204e699c474193"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8bcf2defbd8bb62e7fd71095fa99b1ba",
"_score": 1100.0,
"_source": {
"id": "8bcf2defbd8bb62e7fd71095fa99b1ba",
"autoIncrement": 29902.0
},
"fields": {
"displayGroup": [
"85a094585d6a37f4e2627849b49e850b"
]
},
"sort": [
89,
1100.0,
0,
29902,
"8bcf2defbd8bb62e7fd71095fa99b1ba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "35c3823ddd238226f2eefb5ef964bbba",
"_score": 1100.0,
"_source": {
"id": "35c3823ddd238226f2eefb5ef964bbba",
"autoIncrement": 29901.0
},
"fields": {
"displayGroup": [
"9db8934431f0e34579389bad683d48d8"
]
},
"sort": [
88,
1100.0,
0,
29901,
"35c3823ddd238226f2eefb5ef964bbba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e8ef69779b3a53ff8e6d77d0cff24143",
"_score": 1100.0,
"_source": {
"id": "e8ef69779b3a53ff8e6d77d0cff24143",
"autoIncrement": 29900.0
},
"fields": {
"displayGroup": [
"d60e44625949636a8e84b84d8d03ab7c"
]
},
"sort": [
87,
1100.0,
0,
29900,
"e8ef69779b3a53ff8e6d77d0cff24143"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "92d3de44cc265e1e906afbdc1c0cf8a6",
"_score": 1100.0,
"_source": {
"id": "92d3de44cc265e1e906afbdc1c0cf8a6",
"autoIncrement": 29899.0
},
"fields": {
"displayGroup": [
"e7046567f51fc151ffb03ee29724f38f"
]
},
"sort": [
86,
1100.0,
0,
29899,
"92d3de44cc265e1e906afbdc1c0cf8a6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "880133702c75768940176f090173431c",
"_score": 1100.0,
"_source": {
"id": "880133702c75768940176f090173431c",
"autoIncrement": 29898.0
},
"fields": {
"displayGroup": [
"d49d7bbd1f0451f95454fa846ba84828"
]
},
"sort": [
85,
1100.0,
0,
29898,
"880133702c75768940176f090173431c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5a99ace4908c13b2b03d146f095feae5",
"_score": 1100.0,
"_source": {
"id": "5a99ace4908c13b2b03d146f095feae5",
"autoIncrement": 29897.0
},
"fields": {
"displayGroup": [
"a439a4b44c89bd1485f816ac9dcd5bc3"
]
},
"sort": [
84,
1100.0,
0,
29897,
"5a99ace4908c13b2b03d146f095feae5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f7af0cbc81938be65a75700778396969",
"_score": 1100.0,
"_source": {
"id": "f7af0cbc81938be65a75700778396969",
"autoIncrement": 29896.0
},
"fields": {
"displayGroup": [
"d0fe4e5713b898efbe96904b88613569"
]
},
"sort": [
83,
1100.0,
0,
29896,
"f7af0cbc81938be65a75700778396969"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "92d5baeaaa5b182e54d2c8834c05b597",
"_score": 1100.0,
"_source": {
"id": "92d5baeaaa5b182e54d2c8834c05b597",
"autoIncrement": 29894.0
},
"fields": {
"displayGroup": [
"c9b57da9205aa4f422e5b6a009527410"
]
},
"sort": [
82,
1100.0,
0,
29894,
"92d5baeaaa5b182e54d2c8834c05b597"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ce1ee2259012350720e1fd476556a14c",
"_score": 1100.0,
"_source": {
"id": "ce1ee2259012350720e1fd476556a14c",
"autoIncrement": 29883.0
},
"fields": {
"displayGroup": [
"f93ac664300e8836b3decd8b407f6a5c"
]
},
"sort": [
81,
1100.0,
0,
29883,
"ce1ee2259012350720e1fd476556a14c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "574a0fa8ac45694625ceb59959387d3e",
"_score": 1100.0,
"_source": {
"id": "574a0fa8ac45694625ceb59959387d3e",
"autoIncrement": 29882.0
},
"fields": {
"displayGroup": [
"4b37668fe0e80a92d173715a488154d6"
]
},
"sort": [
80,
1100.0,
0,
29882,
"574a0fa8ac45694625ceb59959387d3e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5138455906481abc6a55d914ffb2d5cd",
"_score": 1100.0,
"_source": {
"id": "5138455906481abc6a55d914ffb2d5cd",
"autoIncrement": 29881.0
},
"fields": {
"displayGroup": [
"2f241c8aa69e681a488e7bcde2f8b34f"
]
},
"sort": [
79,
1100.0,
0,
29881,
"5138455906481abc6a55d914ffb2d5cd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "06d328802cd5d1d68af402362861a89a",
"_score": 1100.0,
"_source": {
"id": "06d328802cd5d1d68af402362861a89a",
"autoIncrement": 29880.0
},
"fields": {
"displayGroup": [
"9d72ad78131965a3283130ee752748ce"
]
},
"sort": [
78,
1100.0,
0,
29880,
"06d328802cd5d1d68af402362861a89a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "567a2e000e63940fa804957ae9d16790",
"_score": 1100.0,
"_source": {
"id": "567a2e000e63940fa804957ae9d16790",
"autoIncrement": 29879.0
},
"fields": {
"displayGroup": [
"9d84cc6af66809a3d5349b3ff6a3f3bc"
]
},
"sort": [
77,
1100.0,
0,
29879,
"567a2e000e63940fa804957ae9d16790"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "caa5b70e648d8f68f5987a093e4aa21b",
"_score": 1100.0,
"_source": {
"id": "caa5b70e648d8f68f5987a093e4aa21b",
"autoIncrement": 29878.0
},
"fields": {
"displayGroup": [
"17f2898ac7cd0b54022ab0fb85c3482c"
]
},
"sort": [
76,
1100.0,
0,
29878,
"caa5b70e648d8f68f5987a093e4aa21b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6e5802ad0b5268bfd4a260adec6d6f05",
"_score": 1100.0,
"_source": {
"id": "6e5802ad0b5268bfd4a260adec6d6f05",
"autoIncrement": 29877.0
},
"fields": {
"displayGroup": [
"cb7173897d3feb899e4a2016481b670b"
]
},
"sort": [
75,
1100.0,
0,
29877,
"6e5802ad0b5268bfd4a260adec6d6f05"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c84f07e3c97a88deb16cc2dae87ac76b",
"_score": 1100.0,
"_source": {
"id": "c84f07e3c97a88deb16cc2dae87ac76b",
"autoIncrement": 29876.0
},
"fields": {
"displayGroup": [
"c199d058563fe581796209ebce17747a"
]
},
"sort": [
74,
1100.0,
0,
29876,
"c84f07e3c97a88deb16cc2dae87ac76b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6369ab62d661c7fef86df61253e8fcaa",
"_score": 1100.0,
"_source": {
"id": "6369ab62d661c7fef86df61253e8fcaa",
"autoIncrement": 29875.0
},
"fields": {
"displayGroup": [
"efafe74e8c504f0c16a9e9cd84f1c447"
]
},
"sort": [
73,
1100.0,
0,
29875,
"6369ab62d661c7fef86df61253e8fcaa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3257dc632802fa3aacabf7d658a73394",
"_score": 1100.0,
"_source": {
"id": "3257dc632802fa3aacabf7d658a73394",
"autoIncrement": 147515.0
},
"fields": {
"displayGroup": [
"49ef8b25a0bdf965e71ae82a20b32070"
]
},
"sort": [
0,
1100.0,
0,
147515,
"3257dc632802fa3aacabf7d658a73394"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3d43127c8b5acb3424aaaa121b1de734",
"_score": 1100.0,
"_source": {
"id": "3d43127c8b5acb3424aaaa121b1de734",
"autoIncrement": 147514.0
},
"fields": {
"displayGroup": [
"7b4fbda2157b16f504730765e4511ff0"
]
},
"sort": [
0,
1100.0,
0,
147514,
"3d43127c8b5acb3424aaaa121b1de734"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6233df7b045ded46b86943f12c808914",
"_score": 1100.0,
"_source": {
"id": "6233df7b045ded46b86943f12c808914",
"autoIncrement": 147513.0
},
"fields": {
"displayGroup": [
"a00454d602d352cffcdef1c70e8f1086"
]
},
"sort": [
0,
1100.0,
0,
147513,
"6233df7b045ded46b86943f12c808914"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d1ac7f1689ba4298177db235a396e767",
"_score": 1100.0,
"_source": {
"id": "d1ac7f1689ba4298177db235a396e767",
"autoIncrement": 147512.0
},
"fields": {
"displayGroup": [
"3393da8a762cf05da621ccbcd77e3c8b"
]
},
"sort": [
0,
1100.0,
0,
147512,
"d1ac7f1689ba4298177db235a396e767"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "096b71038b3980a2d9ffe18c5313e1c7",
"_score": 1100.0,
"_source": {
"id": "096b71038b3980a2d9ffe18c5313e1c7",
"autoIncrement": 139397.0
},
"fields": {
"displayGroup": [
"12efbac2a1f621bcc1845b2a4d397f04"
]
},
"sort": [
0,
1100.0,
0,
139397,
"096b71038b3980a2d9ffe18c5313e1c7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fdfe7dd18a24d0119a91c306eab6ab8c",
"_score": 1100.0,
"_source": {
"id": "fdfe7dd18a24d0119a91c306eab6ab8c",
"autoIncrement": 139396.0
},
"fields": {
"displayGroup": [
"53a1045122c9acfaa9e707ca7360810f"
]
},
"sort": [
0,
1100.0,
0,
139396,
"fdfe7dd18a24d0119a91c306eab6ab8c"
]
}
]
},
"aggregations": {
"total-count": {
"value": 132
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.00 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":"c7e554079c9470408efcf23bf8efb40e"}},{"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_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_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"}},"range-anzahlSchubladen":{"stats":{"field":"attribute_anzahlSchubladen"}},"multi-ausfuehrungWerkbankplatte":{"composite":{"sources":[{"multi-ausfuehrungWerkbankplatte.sorting":{"terms":{"field":"attribute_ausfuehrungWerkbankplatte","order":"ASC"}}},{"multi-ausfuehrungWerkbankplatte.key":{"terms":{"field":"attribute_ausfuehrungWerkbankplatte"}}}],"size":"99999"}},"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"}},"range-traglast":{"stats":{"field":"attribute_traglast"}},"multi-anzahlTueren":{"composite":{"sources":[{"multi-anzahlTueren.sorting":{"terms":{"field":"attribute_anzahlTueren","order":"ASC"}}},{"multi-anzahlTueren.key":{"terms":{"field":"attribute_anzahlTueren"}}}],"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": "c7e554079c9470408efcf23bf8efb40e"
}
},
{
"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_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_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"
}
},
"range-anzahlSchubladen": {
"stats": {
"field": "attribute_anzahlSchubladen"
}
},
"multi-ausfuehrungWerkbankplatte": {
"composite": {
"sources": [
{
"multi-ausfuehrungWerkbankplatte.sorting": {
"terms": {
"field": "attribute_ausfuehrungWerkbankplatte",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungWerkbankplatte.key": {
"terms": {
"field": "attribute_ausfuehrungWerkbankplatte"
}
}
}
],
"size": "99999"
}
},
"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"
}
},
"range-traglast": {
"stats": {
"field": "attribute_traglast"
}
},
"multi-anzahlTueren": {
"composite": {
"sources": [
{
"multi-anzahlTueren.sorting": {
"terms": {
"field": "attribute_anzahlTueren",
"order": "ASC"
}
}
},
{
"multi-anzahlTueren.key": {
"terms": {
"field": "attribute_anzahlTueren"
}
}
}
],
"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": 132,
"min": 266.0,
"max": 4758.0,
"avg": 1650.778409090909,
"sum": 217902.75
},
"rating-exists": {
"doc_count": 132,
"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": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "46b2f43cba12702078b4e0d3bfdae2bc",
"manufacturer-count-filter.key": "46b2f43cba12702078b4e0d3bfdae2bc"
},
"doc_count": 92
},
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 14
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "d784d3a73624983fdf4a1370019f096b",
"manufacturer-count-filter.key": "d784d3a73624983fdf4a1370019f096b"
},
"doc_count": 8
},
{
"key": {
"manufacturer-count-filter.sorting": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"doc_count": 14
}
]
},
"bool-reduced": {
"doc_count": 92,
"bool-reduced": {
"value": 92
}
},
"width": {
"count": 128,
"min": 500.0,
"max": 3000.0,
"avg": 1427.734375,
"sum": 182750.0
},
"width-stats": {
"doc_count": 128,
"width-stats": {
"count": 128,
"min": 500.0,
"max": 3000.0,
"avg": 1427.734375,
"sum": 182750.0
}
},
"height": {
"count": 127,
"min": 1000.0,
"max": 1770.0,
"avg": 1175.9448818897638,
"sum": 149345.0
},
"height-stats": {
"doc_count": 127,
"height-stats": {
"count": 127,
"min": 1000.0,
"max": 1770.0,
"avg": 1175.9448818897638,
"sum": 149345.0
}
},
"tiefe": {
"count": 128,
"min": 500.0,
"max": 1000.0,
"avg": 761.171875,
"sum": 97430.0
},
"range-anzahlSchubladen": {
"count": 8,
"min": 1.0,
"max": 3.0,
"avg": 2.0,
"sum": 16.0
},
"multi-ausfuehrungWerkbankplatte": {
"after_key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Multiplex",
"multi-ausfuehrungWerkbankplatte.key": "Multiplex"
},
"buckets": [
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Buche",
"multi-ausfuehrungWerkbankplatte.key": "Buche"
},
"doc_count": 6
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Buche-Riegel",
"multi-ausfuehrungWerkbankplatte.key": "Buche-Riegel"
},
"doc_count": 34
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "EGB-Melaminharzbeschichtet (ESD)",
"multi-ausfuehrungWerkbankplatte.key": "EGB-Melaminharzbeschichtet (ESD)"
},
"doc_count": 12
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Hartlaminat",
"multi-ausfuehrungWerkbankplatte.key": "Hartlaminat"
},
"doc_count": 14
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Melaminharzbeschichtet",
"multi-ausfuehrungWerkbankplatte.key": "Melaminharzbeschichtet"
},
"doc_count": 24
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Multiplex",
"multi-ausfuehrungWerkbankplatte.key": "Multiplex"
},
"doc_count": 20
}
]
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Werkstatteinrichtungen",
"multi-typModel.key": "Werkstatteinrichtungen"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Arbeitsplatzsysteme",
"multi-typModel.key": "Arbeitsplatzsysteme"
},
"doc_count": 40
},
{
"key": {
"multi-typModel.sorting": "Packtische",
"multi-typModel.key": "Packtische"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Werkb\u00e4nke ohne Unterbau",
"multi-typModel.key": "Werkb\u00e4nke ohne Unterbau"
},
"doc_count": 68
},
{
"key": {
"multi-typModel.sorting": "Werkb\u00e4nke ohne Unterbau, nur F\u00fc\u00dfe",
"multi-typModel.key": "Werkb\u00e4nke ohne Unterbau, nur F\u00fc\u00dfe"
},
"doc_count": 14
},
{
"key": {
"multi-typModel.sorting": "Werkstatteinrichtungen",
"multi-typModel.key": "Werkstatteinrichtungen"
},
"doc_count": 6
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau",
"multi-farbe.key": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7035 lichtgrau",
"multi-farbe.key": "RAL 7035 lichtgrau"
},
"doc_count": 96
},
{
"key": {
"multi-farbe.sorting": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau",
"multi-farbe.key": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau"
},
"doc_count": 8
}
]
},
"range-traglast": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-anzahlTueren": {
"buckets": []
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "46b2f43cba12702078b4e0d3bfdae2bc",
"doc_count": 92
},
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 14
},
{
"key": "e92077b923fe7f60b3b5ea31cceb8c2a",
"doc_count": 14
},
{
"key": "d784d3a73624983fdf4a1370019f096b",
"doc_count": 8
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|