| 1 |
18.21 ms |
Request:
{"index":"staging-67_product","search_type":"query_then_fetch","track_total_hits":true,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"62dc833447e7e08270ead97ad4ab5417"}},{"exists":{"field":"displayGroup"}}]}}],"should":[{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea07ad57e59841906b9dac1ae23"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea3242c77a3ad7aaa686586f79c"]}}}}]}},"boost":150.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018fe3229d5677949c032d1a4983f006"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["f4e67c126b4e4b4f8b4f4b8295613b5b"]}}}}]}},"boost":1000.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["15706c7290284128acdcdc0aa07bda52"]}}}}]}},"boost":400.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["a33aa3f47e2147c9be62a08216f92c1c"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["e3d0223b8cfd4edb8b5581ae7e9ab5cf"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["62000891305f4ae4837e16e336cf2868"]}}}}]}},"boost":200.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["9222eeebbd984a1fbba6521d6c03bc43"]}}}}]}},"boost":250.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["cb292e1aaf854891a0d4e2fca32dd02f"]}}}}]}},"boost":100.0}}]}},"sort":[{"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.acris_search_sorting_relevance":{"unmapped_type":"integer","missing":0,"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":120,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 164,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "20b9010d05add51a4aab3412eb181c91",
"_score": 1100.0,
"_source": {
"id": "20b9010d05add51a4aab3412eb181c91",
"autoIncrement": 30510.0
},
"fields": {
"displayGroup": [
"d86ef921228883adbaebf7edb82ba43e"
]
},
"sort": [
0,
1100.0,
0,
30510,
"20b9010d05add51a4aab3412eb181c91"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "454f94692cba9042b5f64e81ff576ba6",
"_score": 1100.0,
"_source": {
"id": "454f94692cba9042b5f64e81ff576ba6",
"autoIncrement": 30509.0
},
"fields": {
"displayGroup": [
"78e4e55fb64dbf0124735ef0b9af5f07"
]
},
"sort": [
0,
1100.0,
0,
30509,
"454f94692cba9042b5f64e81ff576ba6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6594960f8be16e21cb8adbb05f23022c",
"_score": 1100.0,
"_source": {
"id": "6594960f8be16e21cb8adbb05f23022c",
"autoIncrement": 30508.0
},
"fields": {
"displayGroup": [
"421b1e28d6273822a27776eaf8724702"
]
},
"sort": [
0,
1100.0,
0,
30508,
"6594960f8be16e21cb8adbb05f23022c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "31d0c410307cd567ef1428229ebff0af",
"_score": 1100.0,
"_source": {
"id": "31d0c410307cd567ef1428229ebff0af",
"autoIncrement": 30507.0
},
"fields": {
"displayGroup": [
"2fc3e8cc000766b4defa8cc603b15bd3"
]
},
"sort": [
0,
1100.0,
0,
30507,
"31d0c410307cd567ef1428229ebff0af"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f99ec28ad75c1faca7b62e734b7b55aa",
"_score": 1100.0,
"_source": {
"id": "f99ec28ad75c1faca7b62e734b7b55aa",
"autoIncrement": 30506.0
},
"fields": {
"displayGroup": [
"f2dba1236998bab5a544770b398a97eb"
]
},
"sort": [
0,
1100.0,
0,
30506,
"f99ec28ad75c1faca7b62e734b7b55aa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b1b1c1c8ad9d323a0d1a0b5765085c4c",
"_score": 1100.0,
"_source": {
"id": "b1b1c1c8ad9d323a0d1a0b5765085c4c",
"autoIncrement": 30505.0
},
"fields": {
"displayGroup": [
"2f1f575df5da246b18ddcccd6f81368b"
]
},
"sort": [
0,
1100.0,
0,
30505,
"b1b1c1c8ad9d323a0d1a0b5765085c4c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "72e206ee6510ec7c7adbb1f15158cfda",
"_score": 1100.0,
"_source": {
"id": "72e206ee6510ec7c7adbb1f15158cfda",
"autoIncrement": 30504.0
},
"fields": {
"displayGroup": [
"b10dda767865c7feaed091aef6393b87"
]
},
"sort": [
0,
1100.0,
0,
30504,
"72e206ee6510ec7c7adbb1f15158cfda"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fffcf768f0df52a1cd1003d0e1a332fb",
"_score": 1100.0,
"_source": {
"id": "fffcf768f0df52a1cd1003d0e1a332fb",
"autoIncrement": 30501.0
},
"fields": {
"displayGroup": [
"8d951c14086af7445be265f1816cb56e"
]
},
"sort": [
0,
1100.0,
0,
30501,
"fffcf768f0df52a1cd1003d0e1a332fb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4f5382b904b9067a7fa152773927cdb0",
"_score": 1100.0,
"_source": {
"id": "4f5382b904b9067a7fa152773927cdb0",
"autoIncrement": 30500.0
},
"fields": {
"displayGroup": [
"07b6e65060d3be79624641d15d44a8c1"
]
},
"sort": [
0,
1100.0,
0,
30500,
"4f5382b904b9067a7fa152773927cdb0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8dc75d132f2cfc9d30d07dcc310d5596",
"_score": 1100.0,
"_source": {
"id": "8dc75d132f2cfc9d30d07dcc310d5596",
"autoIncrement": 30499.0
},
"fields": {
"displayGroup": [
"d9f5a2734558f3f924089807260ffa3f"
]
},
"sort": [
0,
1100.0,
0,
30499,
"8dc75d132f2cfc9d30d07dcc310d5596"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "63f695ae11ef721e2169c55a154aa1bc",
"_score": 1100.0,
"_source": {
"id": "63f695ae11ef721e2169c55a154aa1bc",
"autoIncrement": 30498.0
},
"fields": {
"displayGroup": [
"89b1f6142dcafcb6dc004b659b6394ca"
]
},
"sort": [
0,
1100.0,
0,
30498,
"63f695ae11ef721e2169c55a154aa1bc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7128ce9d2a58c2330d33dfc3b501f0ef",
"_score": 1100.0,
"_source": {
"id": "7128ce9d2a58c2330d33dfc3b501f0ef",
"autoIncrement": 30497.0
},
"fields": {
"displayGroup": [
"c3541f925107fe15802d5b24174fde46"
]
},
"sort": [
0,
1100.0,
0,
30497,
"7128ce9d2a58c2330d33dfc3b501f0ef"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "942ce89852686088c5332014d400cd2d",
"_score": 1100.0,
"_source": {
"id": "942ce89852686088c5332014d400cd2d",
"autoIncrement": 30496.0
},
"fields": {
"displayGroup": [
"a4e54a0f62ff85d9d33c910b7d1c4b65"
]
},
"sort": [
0,
1100.0,
0,
30496,
"942ce89852686088c5332014d400cd2d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "da5ef55e5bac1e6ed760034306a78583",
"_score": 1100.0,
"_source": {
"id": "da5ef55e5bac1e6ed760034306a78583",
"autoIncrement": 30495.0
},
"fields": {
"displayGroup": [
"3d428602b44e2b52ab8f03f6c9d8b00b"
]
},
"sort": [
0,
1100.0,
0,
30495,
"da5ef55e5bac1e6ed760034306a78583"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d62f46502507df202f9bc44fd3b3c22d",
"_score": 1100.0,
"_source": {
"id": "d62f46502507df202f9bc44fd3b3c22d",
"autoIncrement": 30494.0
},
"fields": {
"displayGroup": [
"efe23aa409e5e2801437b1553cb072e5"
]
},
"sort": [
0,
1100.0,
0,
30494,
"d62f46502507df202f9bc44fd3b3c22d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4421ebf34513684f476af117560b73aa",
"_score": 1100.0,
"_source": {
"id": "4421ebf34513684f476af117560b73aa",
"autoIncrement": 30492.0
},
"fields": {
"displayGroup": [
"ad96563ae7033ae8623c8f3b97b68b1e"
]
},
"sort": [
0,
1100.0,
0,
30492,
"4421ebf34513684f476af117560b73aa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "edf5d1a737af672e6a6f4b772b9fdc9c",
"_score": 1100.0,
"_source": {
"id": "edf5d1a737af672e6a6f4b772b9fdc9c",
"autoIncrement": 30487.0
},
"fields": {
"displayGroup": [
"f7d67aa3b4d40e0777ad513d2f0806dc"
]
},
"sort": [
0,
1100.0,
0,
30487,
"edf5d1a737af672e6a6f4b772b9fdc9c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "46d00cef65e5a4e8d1e9e2b7f37eb59b",
"_score": 1100.0,
"_source": {
"id": "46d00cef65e5a4e8d1e9e2b7f37eb59b",
"autoIncrement": 30485.0
},
"fields": {
"displayGroup": [
"349b7ae366e26fb19f5683164ac9c366"
]
},
"sort": [
0,
1100.0,
0,
30485,
"46d00cef65e5a4e8d1e9e2b7f37eb59b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c2d41a3d2ddb37204c87ce1547007b2b",
"_score": 1100.0,
"_source": {
"id": "c2d41a3d2ddb37204c87ce1547007b2b",
"autoIncrement": 30483.0
},
"fields": {
"displayGroup": [
"4119653730f8b394b7bc45bbb4454be8"
]
},
"sort": [
0,
1100.0,
0,
30483,
"c2d41a3d2ddb37204c87ce1547007b2b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b3ccf7feb253de0422bfdbd1cfe95ff7",
"_score": 1100.0,
"_source": {
"id": "b3ccf7feb253de0422bfdbd1cfe95ff7",
"autoIncrement": 30481.0
},
"fields": {
"displayGroup": [
"9214e40427488c28a437dac112d83dd9"
]
},
"sort": [
0,
1100.0,
0,
30481,
"b3ccf7feb253de0422bfdbd1cfe95ff7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e7d7ecd08ab1b1f95fb590bdaf4b7eb5",
"_score": 1100.0,
"_source": {
"id": "e7d7ecd08ab1b1f95fb590bdaf4b7eb5",
"autoIncrement": 18251.0
},
"fields": {
"displayGroup": [
"0d06f4792ac7aea884ae914dad12b71a"
]
},
"sort": [
0,
1100.0,
0,
18251,
"e7d7ecd08ab1b1f95fb590bdaf4b7eb5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "79db906a516abbc958532b4c7abc3e9b",
"_score": 1100.0,
"_source": {
"id": "79db906a516abbc958532b4c7abc3e9b",
"autoIncrement": 18249.0
},
"fields": {
"displayGroup": [
"b0153479ca5c275625c36f2ffea96df0"
]
},
"sort": [
0,
1100.0,
0,
18249,
"79db906a516abbc958532b4c7abc3e9b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9879d7047c6f5844e52182f1e9e51ef4",
"_score": 1100.0,
"_source": {
"id": "9879d7047c6f5844e52182f1e9e51ef4",
"autoIncrement": 18247.0
},
"fields": {
"displayGroup": [
"252e94173cf1b4b76b43ee59888a5a70"
]
},
"sort": [
0,
1100.0,
0,
18247,
"9879d7047c6f5844e52182f1e9e51ef4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eec4f1ec6d9a1301752c267390aec668",
"_score": 1100.0,
"_source": {
"id": "eec4f1ec6d9a1301752c267390aec668",
"autoIncrement": 18245.0
},
"fields": {
"displayGroup": [
"2054580ecaa3c7ae40869456bec23bb9"
]
},
"sort": [
0,
1100.0,
0,
18245,
"eec4f1ec6d9a1301752c267390aec668"
]
}
]
},
"aggregations": {
"total-count": {
"value": 164
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.75 ms |
Request:
{"index":"staging-67_product","track_total_hits":false,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"62dc833447e7e08270ead97ad4ab5417"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"price":{"stats":{"script":{"source":"double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n","lang":"painless","params":{"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1}],"decimals":100,"round":true,"multiplier":100.0}}}},"rating-exists":{"filter":{"range":{"ratingAverage":{"gte":0.0}}},"aggregations":{"rating":{"max":{"field":"ratingAverage"}}}},"shipping-free-filter":{"filter":{"term":{"shippingFree":true}},"aggregations":{"shipping-free":{"max":{"field":"shippingFree"}}}},"properties":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"width":{"stats":{"field":"width"}},"width-stats":{"filter":{"range":{"width":{"gt":0.0}}},"aggregations":{"width-stats":{"stats":{"field":"width"}}}},"height":{"stats":{"field":"height"}},"height-stats":{"filter":{"range":{"height":{"gt":0.0}}},"aggregations":{"height-stats":{"stats":{"field":"height"}}}},"tiefe":{"stats":{"field":"attribute_tiefe"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"multi-material":{"composite":{"sources":[{"multi-material.sorting":{"terms":{"field":"attribute_material","order":"ASC"}}},{"multi-material.key":{"terms":{"field":"attribute_material"}}}],"size":"99999"}},"manufacturer-count":{"terms":{"field":"manufacturerId","size":10000}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
POST http://localhost:9200/staging-67_product/_search?track_total_hits=0&search_type=query_then_fetch
Accept: application/json
Content-Type: application/json
{
"query": {
"bool": {
"filter": [
{
"bool": {
"must": [
{
"bool": {
"must": [
{
"term": {
"active": true
}
},
{
"range": {
"visibility_132e445c03814d67ac47c04afb6d5d99": {
"gte": 30
}
}
}
]
}
},
{
"term": {
"categoryTree": "62dc833447e7e08270ead97ad4ab5417"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"price": {
"stats": {
"script": {
"source": "double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n",
"lang": "painless",
"params": {
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
}
],
"decimals": 100,
"round": true,
"multiplier": 100.0
}
}
}
},
"rating-exists": {
"filter": {
"range": {
"ratingAverage": {
"gte": 0.0
}
}
},
"aggregations": {
"rating": {
"max": {
"field": "ratingAverage"
}
}
}
},
"shipping-free-filter": {
"filter": {
"term": {
"shippingFree": true
}
},
"aggregations": {
"shipping-free": {
"max": {
"field": "shippingFree"
}
}
}
},
"properties": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule5b270e597f114fbba683590b4a9cb579_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"width": {
"stats": {
"field": "width"
}
},
"width-stats": {
"filter": {
"range": {
"width": {
"gt": 0.0
}
}
},
"aggregations": {
"width-stats": {
"stats": {
"field": "width"
}
}
}
},
"height": {
"stats": {
"field": "height"
}
},
"height-stats": {
"filter": {
"range": {
"height": {
"gt": 0.0
}
}
},
"aggregations": {
"height-stats": {
"stats": {
"field": "height"
}
}
}
},
"tiefe": {
"stats": {
"field": "attribute_tiefe"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 164,
"min": 185.0,
"max": 2971.0,
"avg": 815.614756097561,
"sum": 133760.82
},
"rating-exists": {
"doc_count": 164,
"rating": {
"value": 0.0
}
},
"shipping-free-filter": {
"doc_count": 0,
"shipping-free": {
"value": null
}
},
"properties": {
"doc_count": 0,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"options": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"manufacturer-count-filter": {
"after_key": {
"manufacturer-count-filter.sorting": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "2fc223ce6476978f04619d762abe9f3e",
"manufacturer-count-filter.key": "2fc223ce6476978f04619d762abe9f3e"
},
"doc_count": 70
},
{
"key": {
"manufacturer-count-filter.sorting": "6face5c8353d05da0eeacdd4ef058334",
"manufacturer-count-filter.key": "6face5c8353d05da0eeacdd4ef058334"
},
"doc_count": 90
},
{
"key": {
"manufacturer-count-filter.sorting": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"doc_count": 4
}
]
},
"bool-reduced": {
"doc_count": 5,
"bool-reduced": {
"value": 5
}
},
"width": {
"count": 164,
"min": 279.0,
"max": 1350.0,
"avg": 582.2439024390244,
"sum": 95488.0
},
"width-stats": {
"doc_count": 164,
"width-stats": {
"count": 164,
"min": 279.0,
"max": 1350.0,
"avg": 582.2439024390244,
"sum": 95488.0
}
},
"height": {
"count": 163,
"min": 98.0,
"max": 1357.0,
"avg": 908.6687116564417,
"sum": 148113.0
},
"height-stats": {
"doc_count": 163,
"height-stats": {
"count": 163,
"min": 98.0,
"max": 1357.0,
"avg": 908.6687116564417,
"sum": 148113.0
}
},
"tiefe": {
"count": 164,
"min": 380.0,
"max": 960.0,
"avg": 564.170731707317,
"sum": 92524.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Schubladenschr\u00e4nke",
"multi-typModel.key": "Schubladenschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "H\u00e4ngeregistraturschr\u00e4nke",
"multi-typModel.key": "H\u00e4ngeregistraturschr\u00e4nke"
},
"doc_count": 90
},
{
"key": {
"multi-typModel.sorting": "Schubladenschr\u00e4nke",
"multi-typModel.key": "Schubladenschr\u00e4nke"
},
"doc_count": 74
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "RAL 7021 schwarzgrau",
"multi-farbe.key": "RAL 7021 schwarzgrau"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7021 schwarzgrau",
"multi-farbe.key": "RAL 7021 schwarzgrau"
},
"doc_count": 1
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 150
},
{
"key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"doc_count": 10
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "6face5c8353d05da0eeacdd4ef058334",
"doc_count": 90
},
{
"key": "2fc223ce6476978f04619d762abe9f3e",
"doc_count": 70
},
{
"key": "7bd063d302bdd813d4944cec5509cfa3",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|