| 1 |
16.35 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":"9164564e6f81d430306b7960291456b6"}},{"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": 30,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "c0eee94e0f5e93ddec618e54c943c5ae",
"_score": 1100.0,
"_source": {
"id": "c0eee94e0f5e93ddec618e54c943c5ae",
"autoIncrement": 132663.0
},
"fields": {
"displayGroup": [
"ea4dac45843c1b16817ac7e56612d9da"
]
},
"sort": [
90,
1100.0,
0,
132663,
"c0eee94e0f5e93ddec618e54c943c5ae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "616816233b8e29ed7c79b1e663047c6e",
"_score": 1100.0,
"_source": {
"id": "616816233b8e29ed7c79b1e663047c6e",
"autoIncrement": 132664.0
},
"fields": {
"displayGroup": [
"29e536def92d9c180751efa2baa55232"
]
},
"sort": [
80,
1100.0,
0,
132664,
"616816233b8e29ed7c79b1e663047c6e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "30d8b3f92b370dee62d475f13c1e7ade",
"_score": 1100.0,
"_source": {
"id": "30d8b3f92b370dee62d475f13c1e7ade",
"autoIncrement": 135393.0
},
"fields": {
"displayGroup": [
"84a4cd3d4023505247be5accda38eb31"
]
},
"sort": [
0,
1100.0,
0,
135393,
"30d8b3f92b370dee62d475f13c1e7ade"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eaf30f2b0bcb08ebfe2ce01b94327106",
"_score": 1100.0,
"_source": {
"id": "eaf30f2b0bcb08ebfe2ce01b94327106",
"autoIncrement": 135392.0
},
"fields": {
"displayGroup": [
"8e27fec81f4aebd47d4f669bde511d48"
]
},
"sort": [
0,
1100.0,
0,
135392,
"eaf30f2b0bcb08ebfe2ce01b94327106"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a51f721bc63e7293e07869e7a13e3b31",
"_score": 1100.0,
"_source": {
"id": "a51f721bc63e7293e07869e7a13e3b31",
"autoIncrement": 135391.0
},
"fields": {
"displayGroup": [
"524c6b9bc15972cfcd6d7800667394e4"
]
},
"sort": [
0,
1100.0,
0,
135391,
"a51f721bc63e7293e07869e7a13e3b31"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ede15d4ec0992a0aa54b73108309e0b3",
"_score": 1100.0,
"_source": {
"id": "ede15d4ec0992a0aa54b73108309e0b3",
"autoIncrement": 135390.0
},
"fields": {
"displayGroup": [
"c32d4afabb8aa3c6bcb16b04aac14375"
]
},
"sort": [
0,
1100.0,
0,
135390,
"ede15d4ec0992a0aa54b73108309e0b3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "aff75c0e9c1e701a68fa4a7b49570f6d",
"_score": 1100.0,
"_source": {
"id": "aff75c0e9c1e701a68fa4a7b49570f6d",
"autoIncrement": 135389.0
},
"fields": {
"displayGroup": [
"6f0ffc5a637f00decd86db190d7124ee"
]
},
"sort": [
0,
1100.0,
0,
135389,
"aff75c0e9c1e701a68fa4a7b49570f6d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "79ccbe019a3ab798a3e05bb983cbcb40",
"_score": 1100.0,
"_source": {
"id": "79ccbe019a3ab798a3e05bb983cbcb40",
"autoIncrement": 135388.0
},
"fields": {
"displayGroup": [
"a5fa7b3fd785cd42ae3f3f638ff76a8b"
]
},
"sort": [
0,
1100.0,
0,
135388,
"79ccbe019a3ab798a3e05bb983cbcb40"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "34d1fc1192f1405b89f41d51047ab236",
"_score": 1100.0,
"_source": {
"id": "34d1fc1192f1405b89f41d51047ab236",
"autoIncrement": 135387.0
},
"fields": {
"displayGroup": [
"e935a9687960b1f36105e2723eb749c4"
]
},
"sort": [
0,
1100.0,
0,
135387,
"34d1fc1192f1405b89f41d51047ab236"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a0673028787c5210ae2423696bef7672",
"_score": 1100.0,
"_source": {
"id": "a0673028787c5210ae2423696bef7672",
"autoIncrement": 135386.0
},
"fields": {
"displayGroup": [
"48934a08664c04066e31e1f41b74b8fe"
]
},
"sort": [
0,
1100.0,
0,
135386,
"a0673028787c5210ae2423696bef7672"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8ada394be2b2a642f0d031e9423f9d77",
"_score": 1100.0,
"_source": {
"id": "8ada394be2b2a642f0d031e9423f9d77",
"autoIncrement": 132666.0
},
"fields": {
"displayGroup": [
"e359fcce93d78db5d58c53708a65faa0"
]
},
"sort": [
0,
1100.0,
0,
132666,
"8ada394be2b2a642f0d031e9423f9d77"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ac2243a491b272dcfc5f9503acb54d92",
"_score": 1100.0,
"_source": {
"id": "ac2243a491b272dcfc5f9503acb54d92",
"autoIncrement": 129281.0
},
"fields": {
"displayGroup": [
"54106cf13c8af5e92a474f237aeb4114"
]
},
"sort": [
0,
1100.0,
0,
129281,
"ac2243a491b272dcfc5f9503acb54d92"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "62e0e27bbeb84b3745bf6e7bc5588ac5",
"_score": 1100.0,
"_source": {
"id": "62e0e27bbeb84b3745bf6e7bc5588ac5",
"autoIncrement": 129280.0
},
"fields": {
"displayGroup": [
"ba6c7ca14c9bd61fdc50fdbf3739fef4"
]
},
"sort": [
0,
1100.0,
0,
129280,
"62e0e27bbeb84b3745bf6e7bc5588ac5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "01554847f836e016f90754fdf5aef48a",
"_score": 1100.0,
"_source": {
"id": "01554847f836e016f90754fdf5aef48a",
"autoIncrement": 129279.0
},
"fields": {
"displayGroup": [
"91d5bd37db426bf4faf01f50f31c1814"
]
},
"sort": [
0,
1100.0,
0,
129279,
"01554847f836e016f90754fdf5aef48a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "858ca7def272f0207b98407520731a65",
"_score": 1100.0,
"_source": {
"id": "858ca7def272f0207b98407520731a65",
"autoIncrement": 129278.0
},
"fields": {
"displayGroup": [
"006ff5856a4a6442fd358910801d2322"
]
},
"sort": [
0,
1100.0,
0,
129278,
"858ca7def272f0207b98407520731a65"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f0e7020785f74650f71a88351b2a4b29",
"_score": 1100.0,
"_source": {
"id": "f0e7020785f74650f71a88351b2a4b29",
"autoIncrement": 129277.0
},
"fields": {
"displayGroup": [
"ff898a19a96834c800144287303c7718"
]
},
"sort": [
0,
1100.0,
0,
129277,
"f0e7020785f74650f71a88351b2a4b29"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "66434599eb3bface4a23d4f4007483c6",
"_score": 1100.0,
"_source": {
"id": "66434599eb3bface4a23d4f4007483c6",
"autoIncrement": 129276.0
},
"fields": {
"displayGroup": [
"24a4692bd75945c1cd1ac85c1c56162f"
]
},
"sort": [
0,
1100.0,
0,
129276,
"66434599eb3bface4a23d4f4007483c6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dcdcb37b1c3b66987e7878a23c91a5dd",
"_score": 1100.0,
"_source": {
"id": "dcdcb37b1c3b66987e7878a23c91a5dd",
"autoIncrement": 129275.0
},
"fields": {
"displayGroup": [
"b86e21e9d4ecfc715e8c0d6c82d01d86"
]
},
"sort": [
0,
1100.0,
0,
129275,
"dcdcb37b1c3b66987e7878a23c91a5dd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8fd5682ba07195e71c8cf7a98e067004",
"_score": 1100.0,
"_source": {
"id": "8fd5682ba07195e71c8cf7a98e067004",
"autoIncrement": 129274.0
},
"fields": {
"displayGroup": [
"80032b51e3e267b66df4fc7f935a9720"
]
},
"sort": [
0,
1100.0,
0,
129274,
"8fd5682ba07195e71c8cf7a98e067004"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b5a33477b71dc8b4b9d9e27b374b20ba",
"_score": 1100.0,
"_source": {
"id": "b5a33477b71dc8b4b9d9e27b374b20ba",
"autoIncrement": 129273.0
},
"fields": {
"displayGroup": [
"b7e95811d187b1091826b72da125e526"
]
},
"sort": [
0,
1100.0,
0,
129273,
"b5a33477b71dc8b4b9d9e27b374b20ba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6d78c9e2b370c8ea1d7aec7fc5b72fac",
"_score": 1100.0,
"_source": {
"id": "6d78c9e2b370c8ea1d7aec7fc5b72fac",
"autoIncrement": 129272.0
},
"fields": {
"displayGroup": [
"68ce699211a2fd215374ec3fc954244b"
]
},
"sort": [
0,
1100.0,
0,
129272,
"6d78c9e2b370c8ea1d7aec7fc5b72fac"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ea0d0f8dd8222646227a8e50ba0a6c2c",
"_score": 1100.0,
"_source": {
"id": "ea0d0f8dd8222646227a8e50ba0a6c2c",
"autoIncrement": 129271.0
},
"fields": {
"displayGroup": [
"50e40758c85e99dcf9542793f823c437"
]
},
"sort": [
0,
1100.0,
0,
129271,
"ea0d0f8dd8222646227a8e50ba0a6c2c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "85d6f51205894db8a39f917969f3755d",
"_score": 1100.0,
"_source": {
"id": "85d6f51205894db8a39f917969f3755d",
"autoIncrement": 129270.0
},
"fields": {
"displayGroup": [
"4f1697913eb46578ed9dfa8a14ff5a03"
]
},
"sort": [
0,
1100.0,
0,
129270,
"85d6f51205894db8a39f917969f3755d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "37fbf4aa352265a5ed98f7bb65ca68fa",
"_score": 1100.0,
"_source": {
"id": "37fbf4aa352265a5ed98f7bb65ca68fa",
"autoIncrement": 129269.0
},
"fields": {
"displayGroup": [
"f7a6b24766db1f796c7d44805bc05e8e"
]
},
"sort": [
0,
1100.0,
0,
129269,
"37fbf4aa352265a5ed98f7bb65ca68fa"
]
}
]
},
"aggregations": {
"total-count": {
"value": 30
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.60 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":"9164564e6f81d430306b7960291456b6"}},{"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"}}}},"multi-width":{"composite":{"sources":[{"multi-width.sorting":{"terms":{"field":"width","order":"ASC"}}},{"multi-width.key":{"terms":{"field":"width"}}}],"size":"99999"}},"multi-height":{"composite":{"sources":[{"multi-height.sorting":{"terms":{"field":"height","order":"ASC"}}},{"multi-height.key":{"terms":{"field":"height"}}}],"size":"99999"}},"multi-tiefe":{"composite":{"sources":[{"multi-tiefe.sorting":{"terms":{"field":"attribute_tiefe","order":"ASC"}}},{"multi-tiefe.key":{"terms":{"field":"attribute_tiefe"}}}],"size":"99999"}},"multi-anzahlLagerebenen":{"composite":{"sources":[{"multi-anzahlLagerebenen.sorting":{"terms":{"field":"attribute_anzahlLagerebenen","order":"ASC"}}},{"multi-anzahlLagerebenen.key":{"terms":{"field":"attribute_anzahlLagerebenen"}}}],"size":"99999"}},"multi-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"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": "9164564e6f81d430306b7960291456b6"
}
},
{
"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"
}
}
}
},
"multi-width": {
"composite": {
"sources": [
{
"multi-width.sorting": {
"terms": {
"field": "width",
"order": "ASC"
}
}
},
{
"multi-width.key": {
"terms": {
"field": "width"
}
}
}
],
"size": "99999"
}
},
"multi-height": {
"composite": {
"sources": [
{
"multi-height.sorting": {
"terms": {
"field": "height",
"order": "ASC"
}
}
},
{
"multi-height.key": {
"terms": {
"field": "height"
}
}
}
],
"size": "99999"
}
},
"multi-tiefe": {
"composite": {
"sources": [
{
"multi-tiefe.sorting": {
"terms": {
"field": "attribute_tiefe",
"order": "ASC"
}
}
},
{
"multi-tiefe.key": {
"terms": {
"field": "attribute_tiefe"
}
}
}
],
"size": "99999"
}
},
"multi-anzahlLagerebenen": {
"composite": {
"sources": [
{
"multi-anzahlLagerebenen.sorting": {
"terms": {
"field": "attribute_anzahlLagerebenen",
"order": "ASC"
}
}
},
{
"multi-anzahlLagerebenen.key": {
"terms": {
"field": "attribute_anzahlLagerebenen"
}
}
}
],
"size": "99999"
}
},
"multi-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"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": 30,
"min": 1259.0,
"max": 15416.0,
"avg": 6138.9,
"sum": 184167.0
},
"rating-exists": {
"doc_count": 30,
"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": {
"buckets": []
},
"bool-reduced": {
"doc_count": 4,
"bool-reduced": {
"value": 4
}
},
"multi-width": {
"after_key": {
"multi-width.sorting": 8590.0,
"multi-width.key": 8590.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 1100.0,
"multi-width.key": 1100.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1950.0,
"multi-width.key": 1950.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 2200.0,
"multi-width.key": 2200.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 2825.0,
"multi-width.key": 2825.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 5965.0,
"multi-width.key": 5965.0
},
"doc_count": 7
},
{
"key": {
"multi-width.sorting": 8590.0,
"multi-width.key": 8590.0
},
"doc_count": 7
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 6000.0,
"multi-height.key": 6000.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 2200.0,
"multi-height.key": 2200.0
},
"doc_count": 2
},
{
"key": {
"multi-height.sorting": 4500.0,
"multi-height.key": 4500.0
},
"doc_count": 12
},
{
"key": {
"multi-height.sorting": 6000.0,
"multi-height.key": 6000.0
},
"doc_count": 16
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1135.0,
"multi-tiefe.key": 1135.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 1100.0,
"multi-tiefe.key": 1100.0
},
"doc_count": 28
},
{
"key": {
"multi-tiefe.sorting": 1135.0,
"multi-tiefe.key": 1135.0
},
"doc_count": 2
}
]
},
"multi-anzahlLagerebenen": {
"after_key": {
"multi-anzahlLagerebenen.sorting": "6",
"multi-anzahlLagerebenen.key": "6"
},
"buckets": [
{
"key": {
"multi-anzahlLagerebenen.sorting": "3",
"multi-anzahlLagerebenen.key": "3"
},
"doc_count": 10
},
{
"key": {
"multi-anzahlLagerebenen.sorting": "4",
"multi-anzahlLagerebenen.key": "4"
},
"doc_count": 8
},
{
"key": {
"multi-anzahlLagerebenen.sorting": "5",
"multi-anzahlLagerebenen.key": "5"
},
"doc_count": 8
},
{
"key": {
"multi-anzahlLagerebenen.sorting": "6",
"multi-anzahlLagerebenen.key": "6"
},
"doc_count": 4
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 14
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 2
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 14
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|