| 1 |
17.87 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":"7e27bee589ee667a8d333ae23d045a86"}},{"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": 33,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "781cc392935509c498ac1303c4f8015d",
"_score": 100.0,
"_source": {
"id": "781cc392935509c498ac1303c4f8015d",
"autoIncrement": 137398.0
},
"fields": {
"displayGroup": [
"1a094e8167a1079ae203caa9c51afd0e"
]
},
"sort": [
0,
100.0,
0,
137398,
"781cc392935509c498ac1303c4f8015d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ad3826b52827b07fb8cfb4645183d3d4",
"_score": 100.0,
"_source": {
"id": "ad3826b52827b07fb8cfb4645183d3d4",
"autoIncrement": 137397.0
},
"fields": {
"displayGroup": [
"069baea970e445b6a5442207c78c438a"
]
},
"sort": [
0,
100.0,
0,
137397,
"ad3826b52827b07fb8cfb4645183d3d4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bf4d48de92bcc3b6c1c4af2975089074",
"_score": 100.0,
"_source": {
"id": "bf4d48de92bcc3b6c1c4af2975089074",
"autoIncrement": 137396.0
},
"fields": {
"displayGroup": [
"5715c55763db1117de76d9026e2c9b74"
]
},
"sort": [
0,
100.0,
0,
137396,
"bf4d48de92bcc3b6c1c4af2975089074"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "63f1c643956fadba7ddb801b6cbcbbab",
"_score": 100.0,
"_source": {
"id": "63f1c643956fadba7ddb801b6cbcbbab",
"autoIncrement": 137395.0
},
"fields": {
"displayGroup": [
"6a119e32a50da8ed6a371a1594539881"
]
},
"sort": [
0,
100.0,
0,
137395,
"63f1c643956fadba7ddb801b6cbcbbab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4382282923a82ba14004a9623c3cc601",
"_score": 100.0,
"_source": {
"id": "4382282923a82ba14004a9623c3cc601",
"autoIncrement": 133733.0
},
"fields": {
"displayGroup": [
"8abc5dbb7dce30432a55c753c5d4dd01"
]
},
"sort": [
0,
100.0,
0,
133733,
"4382282923a82ba14004a9623c3cc601"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5811ac64b497af1e670aa9f10722ea8a",
"_score": 100.0,
"_source": {
"id": "5811ac64b497af1e670aa9f10722ea8a",
"autoIncrement": 133732.0
},
"fields": {
"displayGroup": [
"a20dff0ad2950046fdb51918da3e4e5d"
]
},
"sort": [
0,
100.0,
0,
133732,
"5811ac64b497af1e670aa9f10722ea8a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ed0a5c45bc08d31fbd0880882a7cce38",
"_score": 100.0,
"_source": {
"id": "ed0a5c45bc08d31fbd0880882a7cce38",
"autoIncrement": 133713.0
},
"fields": {
"displayGroup": [
"74918c996ff9b41c2103ef74e61097cc"
]
},
"sort": [
0,
100.0,
0,
133713,
"ed0a5c45bc08d31fbd0880882a7cce38"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "75ee5cf6fd36c15941b57f63f3f4d2e9",
"_score": 100.0,
"_source": {
"id": "75ee5cf6fd36c15941b57f63f3f4d2e9",
"autoIncrement": 131000.0
},
"fields": {
"displayGroup": [
"cc0500c1d2fafdd3359d0fc021b4a144"
]
},
"sort": [
0,
100.0,
0,
131000,
"75ee5cf6fd36c15941b57f63f3f4d2e9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2418249302d654c678ec51e8f001ca53",
"_score": 100.0,
"_source": {
"id": "2418249302d654c678ec51e8f001ca53",
"autoIncrement": 130999.0
},
"fields": {
"displayGroup": [
"3c9a5d67a0c28321826a900f67c5cd4d"
]
},
"sort": [
0,
100.0,
0,
130999,
"2418249302d654c678ec51e8f001ca53"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9e224d07ea09ba5ba90008f3f3137a54",
"_score": 100.0,
"_source": {
"id": "9e224d07ea09ba5ba90008f3f3137a54",
"autoIncrement": 130998.0
},
"fields": {
"displayGroup": [
"9a7451b73af8110354bfe865f2d50e90"
]
},
"sort": [
0,
100.0,
0,
130998,
"9e224d07ea09ba5ba90008f3f3137a54"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d6e615a283963b5c3465157333a6d617",
"_score": 100.0,
"_source": {
"id": "d6e615a283963b5c3465157333a6d617",
"autoIncrement": 130997.0
},
"fields": {
"displayGroup": [
"9dad55d46cc310d61c3d80ce27923a31"
]
},
"sort": [
0,
100.0,
0,
130997,
"d6e615a283963b5c3465157333a6d617"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ed433fd906adc49ec5b5ca11a21bfd8b",
"_score": 100.0,
"_source": {
"id": "ed433fd906adc49ec5b5ca11a21bfd8b",
"autoIncrement": 130839.0
},
"fields": {
"displayGroup": [
"1e6fed5c3a48a71dffec47d561539fe2"
]
},
"sort": [
0,
100.0,
0,
130839,
"ed433fd906adc49ec5b5ca11a21bfd8b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "497b383f1b39d7eddfd9d941a6879d11",
"_score": 100.0,
"_source": {
"id": "497b383f1b39d7eddfd9d941a6879d11",
"autoIncrement": 130836.0
},
"fields": {
"displayGroup": [
"3dccca7c135d515c666e307217f76f86"
]
},
"sort": [
0,
100.0,
0,
130836,
"497b383f1b39d7eddfd9d941a6879d11"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bf5f58f7f3ae18329a7fe6e3e01b67e8",
"_score": 100.0,
"_source": {
"id": "bf5f58f7f3ae18329a7fe6e3e01b67e8",
"autoIncrement": 130830.0
},
"fields": {
"displayGroup": [
"b7cffb4ef82a8cece96cb6b763794596"
]
},
"sort": [
0,
100.0,
0,
130830,
"bf5f58f7f3ae18329a7fe6e3e01b67e8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1279f2e9425edf22174be736bf845850",
"_score": 100.0,
"_source": {
"id": "1279f2e9425edf22174be736bf845850",
"autoIncrement": 130829.0
},
"fields": {
"displayGroup": [
"5ad113c0b01abaf385fe4b80e3590389"
]
},
"sort": [
0,
100.0,
0,
130829,
"1279f2e9425edf22174be736bf845850"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "92ac93363dec915001cd4e05e0e79bee",
"_score": 100.0,
"_source": {
"id": "92ac93363dec915001cd4e05e0e79bee",
"autoIncrement": 130828.0
},
"fields": {
"displayGroup": [
"af56404e7c3339f4b996c63102806452"
]
},
"sort": [
0,
100.0,
0,
130828,
"92ac93363dec915001cd4e05e0e79bee"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "28614d0f77e81e1c097fbdb92c7f6ac6",
"_score": 100.0,
"_source": {
"id": "28614d0f77e81e1c097fbdb92c7f6ac6",
"autoIncrement": 130827.0
},
"fields": {
"displayGroup": [
"149211e4119c81979e2a941962716227"
]
},
"sort": [
0,
100.0,
0,
130827,
"28614d0f77e81e1c097fbdb92c7f6ac6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1dc58fdc1362df82fbe5caa44c233dc8",
"_score": 100.0,
"_source": {
"id": "1dc58fdc1362df82fbe5caa44c233dc8",
"autoIncrement": 130826.0
},
"fields": {
"displayGroup": [
"baa0b5fe591a9c1f9024dd8eca3beee7"
]
},
"sort": [
0,
100.0,
0,
130826,
"1dc58fdc1362df82fbe5caa44c233dc8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "25b4052a359eb808b0b93a0ea5c2138e",
"_score": 100.0,
"_source": {
"id": "25b4052a359eb808b0b93a0ea5c2138e",
"autoIncrement": 68875.0
},
"fields": {
"displayGroup": [
"d30be64471fbbe025d4884d5f5fc8a85"
]
},
"sort": [
0,
100.0,
0,
68875,
"25b4052a359eb808b0b93a0ea5c2138e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b8c8da5245ed14e57eb342eb04988c57",
"_score": 100.0,
"_source": {
"id": "b8c8da5245ed14e57eb342eb04988c57",
"autoIncrement": 68874.0
},
"fields": {
"displayGroup": [
"8bfdf7bcd0daff8d98fb1eb8693433c9"
]
},
"sort": [
0,
100.0,
0,
68874,
"b8c8da5245ed14e57eb342eb04988c57"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4fdad88a3f950c71d8962cb27c1ce089",
"_score": 100.0,
"_source": {
"id": "4fdad88a3f950c71d8962cb27c1ce089",
"autoIncrement": 68873.0
},
"fields": {
"displayGroup": [
"4e7a9e5f6931068c70400367ee58c8aa"
]
},
"sort": [
0,
100.0,
0,
68873,
"4fdad88a3f950c71d8962cb27c1ce089"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6165cd02fdf6b140c0a9884367cd0ee8",
"_score": 100.0,
"_source": {
"id": "6165cd02fdf6b140c0a9884367cd0ee8",
"autoIncrement": 68872.0
},
"fields": {
"displayGroup": [
"43f30ede7ea2d47dbbf0f938e54c88db"
]
},
"sort": [
0,
100.0,
0,
68872,
"6165cd02fdf6b140c0a9884367cd0ee8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9ede7ddb2ab78325d56e0c39ab64d9b4",
"_score": 100.0,
"_source": {
"id": "9ede7ddb2ab78325d56e0c39ab64d9b4",
"autoIncrement": 62113.0
},
"fields": {
"displayGroup": [
"092551a4a34fd70e5d9e0235a729b71b"
]
},
"sort": [
0,
100.0,
0,
62113,
"9ede7ddb2ab78325d56e0c39ab64d9b4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cb012d3e2ab1fcf36e49cef1bf179396",
"_score": 100.0,
"_source": {
"id": "cb012d3e2ab1fcf36e49cef1bf179396",
"autoIncrement": 62112.0
},
"fields": {
"displayGroup": [
"05ef71857e61b91487ac2523ce1e3b47"
]
},
"sort": [
0,
100.0,
0,
62112,
"cb012d3e2ab1fcf36e49cef1bf179396"
]
}
]
},
"aggregations": {
"total-count": {
"value": 33
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.82 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":"7e27bee589ee667a8d333ae23d045a86"}},{"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-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-staerke":{"stats":{"field":"attribute_staerke"}},"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": "7e27bee589ee667a8d333ae23d045a86"
}
},
{
"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-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-staerke": {
"stats": {
"field": "attribute_staerke"
}
},
"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": 33,
"min": 4.3,
"max": 54.0,
"avg": 26.78181818181818,
"sum": 883.8
},
"rating-exists": {
"doc_count": 33,
"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": "ed3fb06a4fa91e463db6ac5f5ceab274",
"manufacturer-count-filter.key": "ed3fb06a4fa91e463db6ac5f5ceab274"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "695d2657aaaf43c80e55c48a95f558de",
"manufacturer-count-filter.key": "695d2657aaaf43c80e55c48a95f558de"
},
"doc_count": 6
},
{
"key": {
"manufacturer-count-filter.sorting": "b6cfacf21d1d52334816ff0171d31f4d",
"manufacturer-count-filter.key": "b6cfacf21d1d52334816ff0171d31f4d"
},
"doc_count": 15
},
{
"key": {
"manufacturer-count-filter.sorting": "ed3fb06a4fa91e463db6ac5f5ceab274",
"manufacturer-count-filter.key": "ed3fb06a4fa91e463db6ac5f5ceab274"
},
"doc_count": 3
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"width": {
"count": 13,
"min": 500.0,
"max": 1200.0,
"avg": 833.8461538461538,
"sum": 10840.0
},
"width-stats": {
"doc_count": 13,
"width-stats": {
"count": 13,
"min": 500.0,
"max": 1200.0,
"avg": 833.8461538461538,
"sum": 10840.0
}
},
"height": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"height-stats": {
"doc_count": 0,
"height-stats": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
}
},
"tiefe": {
"count": 8,
"min": 60.0,
"max": 60.0,
"avg": 60.0,
"sum": 480.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Schmutzfangmatten",
"multi-typModel.key": "Zubeh\u00f6r Schmutzfangmatten"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Arbeitsplatzmatten",
"multi-typModel.key": "Zubeh\u00f6r Arbeitsplatzmatten"
},
"doc_count": 19
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Bodenroste",
"multi-typModel.key": "Zubeh\u00f6r Bodenroste"
},
"doc_count": 7
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Schmutzfangmatten",
"multi-typModel.key": "Zubeh\u00f6r Schmutzfangmatten"
},
"doc_count": 7
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "schwarz\/gelb",
"multi-farbe.key": "schwarz\/gelb"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "schwarz\/gelb",
"multi-farbe.key": "schwarz\/gelb"
},
"doc_count": 2
}
]
},
"range-staerke": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-material": {
"buckets": []
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "b6cfacf21d1d52334816ff0171d31f4d",
"doc_count": 15
},
{
"key": "695d2657aaaf43c80e55c48a95f558de",
"doc_count": 6
},
{
"key": "ed3fb06a4fa91e463db6ac5f5ceab274",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|