| 1 |
15.15 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":"376d57efd832234650f4f9a4a08bd471"}},{"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": 102,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "6ad8d3ccf027ced1f1fe594c3cb14ebd",
"_score": 1100.0,
"_source": {
"id": "6ad8d3ccf027ced1f1fe594c3cb14ebd",
"autoIncrement": 138345.0
},
"fields": {
"displayGroup": [
"b58fdd95642fcc11f5363c6d063caa64"
]
},
"sort": [
0,
1100.0,
0,
138345,
"6ad8d3ccf027ced1f1fe594c3cb14ebd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "61746d3346b293e3dcd80b9e47092942",
"_score": 1100.0,
"_source": {
"id": "61746d3346b293e3dcd80b9e47092942",
"autoIncrement": 138327.0
},
"fields": {
"displayGroup": [
"15f2ff94904b20bc7a20cafca97fbf4c"
]
},
"sort": [
0,
1100.0,
0,
138327,
"61746d3346b293e3dcd80b9e47092942"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1eb53fdd49531b46ac7f7932598b2740",
"_score": 1100.0,
"_source": {
"id": "1eb53fdd49531b46ac7f7932598b2740",
"autoIncrement": 138326.0
},
"fields": {
"displayGroup": [
"3b0be5d23ee550dc510185ad97ae2d1b"
]
},
"sort": [
0,
1100.0,
0,
138326,
"1eb53fdd49531b46ac7f7932598b2740"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "809e7636196fe248e6df912cbf3e7397",
"_score": 1100.0,
"_source": {
"id": "809e7636196fe248e6df912cbf3e7397",
"autoIncrement": 138325.0
},
"fields": {
"displayGroup": [
"6d5f4a407e6364184f47756d37beaf24"
]
},
"sort": [
0,
1100.0,
0,
138325,
"809e7636196fe248e6df912cbf3e7397"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5a902d2c0c890058d3537ff2f91dec78",
"_score": 1100.0,
"_source": {
"id": "5a902d2c0c890058d3537ff2f91dec78",
"autoIncrement": 138324.0
},
"fields": {
"displayGroup": [
"3c9ed97bcbff94be5e47bfda11a0c881"
]
},
"sort": [
0,
1100.0,
0,
138324,
"5a902d2c0c890058d3537ff2f91dec78"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ddd6881e63a889928471e913cfd4644a",
"_score": 1100.0,
"_source": {
"id": "ddd6881e63a889928471e913cfd4644a",
"autoIncrement": 138323.0
},
"fields": {
"displayGroup": [
"074726940744979f87ad95d5e5401fb4"
]
},
"sort": [
0,
1100.0,
0,
138323,
"ddd6881e63a889928471e913cfd4644a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "746bddf766547e4bab9e2bf4d093c036",
"_score": 1100.0,
"_source": {
"id": "746bddf766547e4bab9e2bf4d093c036",
"autoIncrement": 131073.0
},
"fields": {
"displayGroup": [
"c0ba099fc4fb8d6a69f7cc1fb8132bc9"
]
},
"sort": [
0,
1100.0,
0,
131073,
"746bddf766547e4bab9e2bf4d093c036"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f84cf392016c5fbed12935965548de9f",
"_score": 1100.0,
"_source": {
"id": "f84cf392016c5fbed12935965548de9f",
"autoIncrement": 131072.0
},
"fields": {
"displayGroup": [
"e0412e8d8c6d1c3b7f0baa7b2e1a89a1"
]
},
"sort": [
0,
1100.0,
0,
131072,
"f84cf392016c5fbed12935965548de9f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cf2be17acc47dbf770fb1e5d6eb8e817",
"_score": 1100.0,
"_source": {
"id": "cf2be17acc47dbf770fb1e5d6eb8e817",
"autoIncrement": 131071.0
},
"fields": {
"displayGroup": [
"950e4bcfdecc238c96d56d5fa1a294e1"
]
},
"sort": [
0,
1100.0,
0,
131071,
"cf2be17acc47dbf770fb1e5d6eb8e817"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4a7c7fea507e943836d2ee2026599fcf",
"_score": 1100.0,
"_source": {
"id": "4a7c7fea507e943836d2ee2026599fcf",
"autoIncrement": 131070.0
},
"fields": {
"displayGroup": [
"3aae882a07662450206384c41394fd48"
]
},
"sort": [
0,
1100.0,
0,
131070,
"4a7c7fea507e943836d2ee2026599fcf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "853bb39873dd680b8e3ef4d264479aa4",
"_score": 1100.0,
"_source": {
"id": "853bb39873dd680b8e3ef4d264479aa4",
"autoIncrement": 131069.0
},
"fields": {
"displayGroup": [
"3f3ace2e4bb96f5a006beb50d108f44a"
]
},
"sort": [
0,
1100.0,
0,
131069,
"853bb39873dd680b8e3ef4d264479aa4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fee90c052bc87b39b63bd4b157e6f347",
"_score": 1100.0,
"_source": {
"id": "fee90c052bc87b39b63bd4b157e6f347",
"autoIncrement": 131068.0
},
"fields": {
"displayGroup": [
"9e60fdcbf06572efac47fa4e9f17766b"
]
},
"sort": [
0,
1100.0,
0,
131068,
"fee90c052bc87b39b63bd4b157e6f347"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "389846953599481a87b7d92ce92941b2",
"_score": 1100.0,
"_source": {
"id": "389846953599481a87b7d92ce92941b2",
"autoIncrement": 131067.0
},
"fields": {
"displayGroup": [
"74bd6719de17878448f55a34b8cf73fb"
]
},
"sort": [
0,
1100.0,
0,
131067,
"389846953599481a87b7d92ce92941b2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f4c51f00cfc6a799466ca5f184484197",
"_score": 1100.0,
"_source": {
"id": "f4c51f00cfc6a799466ca5f184484197",
"autoIncrement": 131066.0
},
"fields": {
"displayGroup": [
"f4a1c6a091a7b9277f90492b74da6225"
]
},
"sort": [
0,
1100.0,
0,
131066,
"f4c51f00cfc6a799466ca5f184484197"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b57112a97da179cf13e323a2422b95bf",
"_score": 1100.0,
"_source": {
"id": "b57112a97da179cf13e323a2422b95bf",
"autoIncrement": 131065.0
},
"fields": {
"displayGroup": [
"a1a94a98d8ff050f621480b4de26c0b8"
]
},
"sort": [
0,
1100.0,
0,
131065,
"b57112a97da179cf13e323a2422b95bf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "644071b52af190061362bb5b996f7cbf",
"_score": 1100.0,
"_source": {
"id": "644071b52af190061362bb5b996f7cbf",
"autoIncrement": 131064.0
},
"fields": {
"displayGroup": [
"fbc156854f5afe199b90ea98a1fe944a"
]
},
"sort": [
0,
1100.0,
0,
131064,
"644071b52af190061362bb5b996f7cbf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "86bcc5e73ceb4902f7f996a0213bc6f1",
"_score": 1100.0,
"_source": {
"id": "86bcc5e73ceb4902f7f996a0213bc6f1",
"autoIncrement": 131063.0
},
"fields": {
"displayGroup": [
"ae91b67346d7f2d82a1bf34b2af00dc1"
]
},
"sort": [
0,
1100.0,
0,
131063,
"86bcc5e73ceb4902f7f996a0213bc6f1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1aaf582bf6421a50de8783d3bce47121",
"_score": 1100.0,
"_source": {
"id": "1aaf582bf6421a50de8783d3bce47121",
"autoIncrement": 131062.0
},
"fields": {
"displayGroup": [
"b82a95dc27a193116f42331d9f8b024c"
]
},
"sort": [
0,
1100.0,
0,
131062,
"1aaf582bf6421a50de8783d3bce47121"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4b2e3a559357b5bc5bbe51b1d0837a80",
"_score": 1100.0,
"_source": {
"id": "4b2e3a559357b5bc5bbe51b1d0837a80",
"autoIncrement": 131061.0
},
"fields": {
"displayGroup": [
"37faedcfaf6b9bff38626011aaf0b44b"
]
},
"sort": [
0,
1100.0,
0,
131061,
"4b2e3a559357b5bc5bbe51b1d0837a80"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5eb76dcc6e05e82e924c877b1b6040dd",
"_score": 1100.0,
"_source": {
"id": "5eb76dcc6e05e82e924c877b1b6040dd",
"autoIncrement": 131060.0
},
"fields": {
"displayGroup": [
"f699c8c17434417398fd4e5f565a23c9"
]
},
"sort": [
0,
1100.0,
0,
131060,
"5eb76dcc6e05e82e924c877b1b6040dd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f68ea2ecfe2334c764b049a832cea07a",
"_score": 1100.0,
"_source": {
"id": "f68ea2ecfe2334c764b049a832cea07a",
"autoIncrement": 131059.0
},
"fields": {
"displayGroup": [
"481d209f6981615e5a5615c05500e276"
]
},
"sort": [
0,
1100.0,
0,
131059,
"f68ea2ecfe2334c764b049a832cea07a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "659a78ee42f0275af9aeaf17d1e123e7",
"_score": 1100.0,
"_source": {
"id": "659a78ee42f0275af9aeaf17d1e123e7",
"autoIncrement": 131058.0
},
"fields": {
"displayGroup": [
"d17ff1d5dcbe33a3d2fd10921bf096c6"
]
},
"sort": [
0,
1100.0,
0,
131058,
"659a78ee42f0275af9aeaf17d1e123e7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "13508cea52f811e316117da8943a7d18",
"_score": 1100.0,
"_source": {
"id": "13508cea52f811e316117da8943a7d18",
"autoIncrement": 131057.0
},
"fields": {
"displayGroup": [
"5b0a4e06115535f8742993283ed87b69"
]
},
"sort": [
0,
1100.0,
0,
131057,
"13508cea52f811e316117da8943a7d18"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f913b7070070274cf3ff3f27900c4b6c",
"_score": 1100.0,
"_source": {
"id": "f913b7070070274cf3ff3f27900c4b6c",
"autoIncrement": 131056.0
},
"fields": {
"displayGroup": [
"8971fe4dabdad031617cc85a6dcb4f0a"
]
},
"sort": [
0,
1100.0,
0,
131056,
"f913b7070070274cf3ff3f27900c4b6c"
]
}
]
},
"aggregations": {
"total-count": {
"value": 102
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.06 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":"376d57efd832234650f4f9a4a08bd471"}},{"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"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"multi-farbeKette":{"composite":{"sources":[{"multi-farbeKette.sorting":{"terms":{"field":"attribute_farbeKette","order":"ASC"}}},{"multi-farbeKette.key":{"terms":{"field":"attribute_farbeKette"}}}],"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": "376d57efd832234650f4f9a4a08bd471"
}
},
{
"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"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"multi-farbeKette": {
"composite": {
"sources": [
{
"multi-farbeKette.sorting": {
"terms": {
"field": "attribute_farbeKette",
"order": "ASC"
}
}
},
{
"multi-farbeKette.key": {
"terms": {
"field": "attribute_farbeKette"
}
}
}
],
"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": 102,
"min": 39.0,
"max": 436.0,
"avg": 169.80392156862746,
"sum": 17320.0
},
"rating-exists": {
"doc_count": 102,
"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": "c7e47fd9fd0087797d9c8c0ffb3ec956",
"manufacturer-count-filter.key": "c7e47fd9fd0087797d9c8c0ffb3ec956"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "1bd1b69b11a26dad77696adcb548468e",
"manufacturer-count-filter.key": "1bd1b69b11a26dad77696adcb548468e"
},
"doc_count": 12
},
{
"key": {
"manufacturer-count-filter.sorting": "5e579634c7914d8724257eef08e3e27e",
"manufacturer-count-filter.key": "5e579634c7914d8724257eef08e3e27e"
},
"doc_count": 18
},
{
"key": {
"manufacturer-count-filter.sorting": "c7e47fd9fd0087797d9c8c0ffb3ec956",
"manufacturer-count-filter.key": "c7e47fd9fd0087797d9c8c0ffb3ec956"
},
"doc_count": 72
}
]
},
"bool-reduced": {
"doc_count": 4,
"bool-reduced": {
"value": 4
}
},
"width": {
"count": 72,
"min": 60.0,
"max": 1000.0,
"avg": 91.02777777777777,
"sum": 6554.0
},
"width-stats": {
"doc_count": 72,
"width-stats": {
"count": 72,
"min": 60.0,
"max": 1000.0,
"avg": 91.02777777777777,
"sum": 6554.0
}
},
"height": {
"count": 14,
"min": 450.0,
"max": 1000.0,
"avg": 694.2857142857143,
"sum": 9720.0
},
"height-stats": {
"doc_count": 14,
"height-stats": {
"count": 14,
"min": 450.0,
"max": 1000.0,
"avg": 694.2857142857143,
"sum": 9720.0
}
},
"tiefe": {
"count": 16,
"min": 70.0,
"max": 1300.0,
"avg": 149.375,
"sum": 2390.0
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "wei\u00df\/rot",
"multi-farbe.key": "wei\u00df\/rot"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "Edelstahl",
"multi-farbe.key": "Edelstahl"
},
"doc_count": 37
},
{
"key": {
"multi-farbe.sorting": "RAL 8019 antikbraun",
"multi-farbe.key": "RAL 8019 antikbraun"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "RAL\u00a07016 anthrazitgrau",
"multi-farbe.key": "RAL\u00a07016 anthrazitgrau"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "aluminium\/rot",
"multi-farbe.key": "aluminium\/rot"
},
"doc_count": 10
},
{
"key": {
"multi-farbe.sorting": "edelstahl",
"multi-farbe.key": "edelstahl"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "gelb\/schwarz",
"multi-farbe.key": "gelb\/schwarz"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "orange\/silber",
"multi-farbe.key": "orange\/silber"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "rot\/wei\u00df",
"multi-farbe.key": "rot\/wei\u00df"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "schwarz\/silber",
"multi-farbe.key": "schwarz\/silber"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "verzinkt\/rot",
"multi-farbe.key": "verzinkt\/rot"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "wei\u00df\/rot",
"multi-farbe.key": "wei\u00df\/rot"
},
"doc_count": 14
}
]
},
"multi-farbeKette": {
"buckets": []
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Aluminium",
"multi-material.key": "Aluminium"
},
"doc_count": 17
},
{
"key": {
"multi-material.sorting": "Edelstahl",
"multi-material.key": "Edelstahl"
},
"doc_count": 39
},
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 7
},
{
"key": {
"multi-material.sorting": "Polyurethan",
"multi-material.key": "Polyurethan"
},
"doc_count": 12
},
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 15
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "c7e47fd9fd0087797d9c8c0ffb3ec956",
"doc_count": 72
},
{
"key": "5e579634c7914d8724257eef08e3e27e",
"doc_count": 18
},
{
"key": "1bd1b69b11a26dad77696adcb548468e",
"doc_count": 12
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|