| 1 |
18.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":"c7e554079c9470408efcf23bf8efb40e"}},{"exists":{"field":"displayGroup"}}]}}],"should":[{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea07ad57e59841906b9dac1ae23"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea3242c77a3ad7aaa686586f79c"]}}}}]}},"boost":150.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018fe3229d5677949c032d1a4983f006"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["f4e67c126b4e4b4f8b4f4b8295613b5b"]}}}}]}},"boost":1000.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["15706c7290284128acdcdc0aa07bda52"]}}}}]}},"boost":400.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["a33aa3f47e2147c9be62a08216f92c1c"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["e3d0223b8cfd4edb8b5581ae7e9ab5cf"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["62000891305f4ae4837e16e336cf2868"]}}}}]}},"boost":200.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["9222eeebbd984a1fbba6521d6c03bc43"]}}}}]}},"boost":250.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["cb292e1aaf854891a0d4e2fca32dd02f"]}}}}]}},"boost":100.0}}]}},"sort":[{"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.acris_search_sorting_relevance":{"unmapped_type":"integer","missing":0,"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":24,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 132,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "5b5527518306d188878ce7e08b197925",
"_score": 1100.0,
"_source": {
"id": "5b5527518306d188878ce7e08b197925",
"autoIncrement": 139395.0
},
"fields": {
"displayGroup": [
"9f861d97ccb154ea4c38ff1a6fe098fe"
]
},
"sort": [
0,
1100.0,
0,
139395,
"5b5527518306d188878ce7e08b197925"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d4d6ba60bd5d5d14e202ee6a4449dad0",
"_score": 1100.0,
"_source": {
"id": "d4d6ba60bd5d5d14e202ee6a4449dad0",
"autoIncrement": 139394.0
},
"fields": {
"displayGroup": [
"24f12488775ba0d40907c5e928a624e7"
]
},
"sort": [
0,
1100.0,
0,
139394,
"d4d6ba60bd5d5d14e202ee6a4449dad0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "33a62df1882d8f87c32d9f6279db9124",
"_score": 1100.0,
"_source": {
"id": "33a62df1882d8f87c32d9f6279db9124",
"autoIncrement": 139393.0
},
"fields": {
"displayGroup": [
"40de3c20b5d86ae8893ea87a309af3b5"
]
},
"sort": [
0,
1100.0,
0,
139393,
"33a62df1882d8f87c32d9f6279db9124"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4581dc699c8ebaaeef3561571bf86a54",
"_score": 1100.0,
"_source": {
"id": "4581dc699c8ebaaeef3561571bf86a54",
"autoIncrement": 139392.0
},
"fields": {
"displayGroup": [
"e54cb7d0fa9d287d9c400b2f666a9cc3"
]
},
"sort": [
0,
1100.0,
0,
139392,
"4581dc699c8ebaaeef3561571bf86a54"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "016fbb969cdc1ecc87139413a8411c8c",
"_score": 1100.0,
"_source": {
"id": "016fbb969cdc1ecc87139413a8411c8c",
"autoIncrement": 139391.0
},
"fields": {
"displayGroup": [
"c60d62da3948e0ee9934bc5f9f87b53c"
]
},
"sort": [
0,
1100.0,
0,
139391,
"016fbb969cdc1ecc87139413a8411c8c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d1cf7c570172a72ca4f8af11ae826ec4",
"_score": 1100.0,
"_source": {
"id": "d1cf7c570172a72ca4f8af11ae826ec4",
"autoIncrement": 139390.0
},
"fields": {
"displayGroup": [
"7d20777659d511dddcb19464eca1c453"
]
},
"sort": [
0,
1100.0,
0,
139390,
"d1cf7c570172a72ca4f8af11ae826ec4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d11f228517777dfc0634c620eb1c29ce",
"_score": 1100.0,
"_source": {
"id": "d11f228517777dfc0634c620eb1c29ce",
"autoIncrement": 139389.0
},
"fields": {
"displayGroup": [
"50217f1ea594ad365297499e7bd2dbf2"
]
},
"sort": [
0,
1100.0,
0,
139389,
"d11f228517777dfc0634c620eb1c29ce"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6d94e5be54b75bea253db342b68b8145",
"_score": 1100.0,
"_source": {
"id": "6d94e5be54b75bea253db342b68b8145",
"autoIncrement": 139388.0
},
"fields": {
"displayGroup": [
"61b26bf6b008959886dbbdd451bc1416"
]
},
"sort": [
0,
1100.0,
0,
139388,
"6d94e5be54b75bea253db342b68b8145"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ed8d416ff51a15b5bfbad78489aa08d5",
"_score": 1100.0,
"_source": {
"id": "ed8d416ff51a15b5bfbad78489aa08d5",
"autoIncrement": 139387.0
},
"fields": {
"displayGroup": [
"06ca412837d7e87e4fe7bcbb48b674cd"
]
},
"sort": [
0,
1100.0,
0,
139387,
"ed8d416ff51a15b5bfbad78489aa08d5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "61d15499225ae49edd3a3dcaa728abcb",
"_score": 1100.0,
"_source": {
"id": "61d15499225ae49edd3a3dcaa728abcb",
"autoIncrement": 139386.0
},
"fields": {
"displayGroup": [
"971e7368daffbd8cf7c7f72c05369d1e"
]
},
"sort": [
0,
1100.0,
0,
139386,
"61d15499225ae49edd3a3dcaa728abcb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c81d0a43ec1ec335feb507a56baf9d58",
"_score": 1100.0,
"_source": {
"id": "c81d0a43ec1ec335feb507a56baf9d58",
"autoIncrement": 139385.0
},
"fields": {
"displayGroup": [
"208a99ddee0278d01496945aaa7dc05f"
]
},
"sort": [
0,
1100.0,
0,
139385,
"c81d0a43ec1ec335feb507a56baf9d58"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "80fe1c8254c4392172a64595d2810fd4",
"_score": 1100.0,
"_source": {
"id": "80fe1c8254c4392172a64595d2810fd4",
"autoIncrement": 139384.0
},
"fields": {
"displayGroup": [
"bff4384c86287d55d73f3c6028c559d5"
]
},
"sort": [
0,
1100.0,
0,
139384,
"80fe1c8254c4392172a64595d2810fd4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9f7b74a9763f2871419a817bfc32ca5a",
"_score": 1100.0,
"_source": {
"id": "9f7b74a9763f2871419a817bfc32ca5a",
"autoIncrement": 131097.0
},
"fields": {
"displayGroup": [
"79a6a4da2124dd1820a341dd8e1a1135"
]
},
"sort": [
0,
1100.0,
0,
131097,
"9f7b74a9763f2871419a817bfc32ca5a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9343d8dd3f31b4dd904742b32c803545",
"_score": 1100.0,
"_source": {
"id": "9343d8dd3f31b4dd904742b32c803545",
"autoIncrement": 131096.0
},
"fields": {
"displayGroup": [
"791bc4869ef3503567af1db620df67b3"
]
},
"sort": [
0,
1100.0,
0,
131096,
"9343d8dd3f31b4dd904742b32c803545"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "20d8143855b2a22299cfe362c2b4c03a",
"_score": 1100.0,
"_source": {
"id": "20d8143855b2a22299cfe362c2b4c03a",
"autoIncrement": 131095.0
},
"fields": {
"displayGroup": [
"84ce98529f02b10349368ec96a4a043c"
]
},
"sort": [
0,
1100.0,
0,
131095,
"20d8143855b2a22299cfe362c2b4c03a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c6a4af69dcce34e9352ef868e6bb63c9",
"_score": 1100.0,
"_source": {
"id": "c6a4af69dcce34e9352ef868e6bb63c9",
"autoIncrement": 130651.0
},
"fields": {
"displayGroup": [
"1c1b7ab3089e6195896577b311fc1b63"
]
},
"sort": [
0,
1100.0,
0,
130651,
"c6a4af69dcce34e9352ef868e6bb63c9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5c8a4d6ecaef9e9cbd098c6457ca3bbe",
"_score": 1100.0,
"_source": {
"id": "5c8a4d6ecaef9e9cbd098c6457ca3bbe",
"autoIncrement": 130650.0
},
"fields": {
"displayGroup": [
"7aa817a3a70bcec16cd91ed9f67c751e"
]
},
"sort": [
0,
1100.0,
0,
130650,
"5c8a4d6ecaef9e9cbd098c6457ca3bbe"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "327abcd943adbb48f259503400282efd",
"_score": 1100.0,
"_source": {
"id": "327abcd943adbb48f259503400282efd",
"autoIncrement": 130649.0
},
"fields": {
"displayGroup": [
"be0993a82f6105d9ac59e0483a20e583"
]
},
"sort": [
0,
1100.0,
0,
130649,
"327abcd943adbb48f259503400282efd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b4cf1583d307928b89b5a0678b09b14c",
"_score": 1100.0,
"_source": {
"id": "b4cf1583d307928b89b5a0678b09b14c",
"autoIncrement": 130648.0
},
"fields": {
"displayGroup": [
"01db1d5104749727cfa5e671d099ee01"
]
},
"sort": [
0,
1100.0,
0,
130648,
"b4cf1583d307928b89b5a0678b09b14c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d3b91763a4c6a4d1b5060eb520f43c89",
"_score": 1100.0,
"_source": {
"id": "d3b91763a4c6a4d1b5060eb520f43c89",
"autoIncrement": 29893.0
},
"fields": {
"displayGroup": [
"8d41aead0d0ca563ccf30a8679896954"
]
},
"sort": [
0,
1100.0,
0,
29893,
"d3b91763a4c6a4d1b5060eb520f43c89"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b58778959954d46492772bcee28e7e2d",
"_score": 1100.0,
"_source": {
"id": "b58778959954d46492772bcee28e7e2d",
"autoIncrement": 29892.0
},
"fields": {
"displayGroup": [
"7d241657ff7d92168698a4c22b48596f"
]
},
"sort": [
0,
1100.0,
0,
29892,
"b58778959954d46492772bcee28e7e2d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "aabfc854445d6061625cdac62f5b1bdb",
"_score": 1100.0,
"_source": {
"id": "aabfc854445d6061625cdac62f5b1bdb",
"autoIncrement": 29891.0
},
"fields": {
"displayGroup": [
"cf096fc9272397f16c7512644e7b2cc3"
]
},
"sort": [
0,
1100.0,
0,
29891,
"aabfc854445d6061625cdac62f5b1bdb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e959a01de34792f8dca2518f2d078097",
"_score": 1100.0,
"_source": {
"id": "e959a01de34792f8dca2518f2d078097",
"autoIncrement": 29890.0
},
"fields": {
"displayGroup": [
"c8fb5fdf31dde0d384a3e169e750362e"
]
},
"sort": [
0,
1100.0,
0,
29890,
"e959a01de34792f8dca2518f2d078097"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "010b8e0caef92de5ea92aaf5da485d4e",
"_score": 1100.0,
"_source": {
"id": "010b8e0caef92de5ea92aaf5da485d4e",
"autoIncrement": 29889.0
},
"fields": {
"displayGroup": [
"3c065d258fb791934adcac383f0b0ba7"
]
},
"sort": [
0,
1100.0,
0,
29889,
"010b8e0caef92de5ea92aaf5da485d4e"
]
}
]
},
"aggregations": {
"total-count": {
"value": 132
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.71 ms |
Request:
{"index":"staging-67_product","track_total_hits":false,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"c7e554079c9470408efcf23bf8efb40e"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"price":{"stats":{"script":{"source":"double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n","lang":"painless","params":{"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1}],"decimals":100,"round":true,"multiplier":100.0}}}},"rating-exists":{"filter":{"range":{"ratingAverage":{"gte":0.0}}},"aggregations":{"rating":{"max":{"field":"ratingAverage"}}}},"shipping-free-filter":{"filter":{"term":{"shippingFree":true}},"aggregations":{"shipping-free":{"max":{"field":"shippingFree"}}}},"properties":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"width":{"stats":{"field":"width"}},"width-stats":{"filter":{"range":{"width":{"gt":0.0}}},"aggregations":{"width-stats":{"stats":{"field":"width"}}}},"height":{"stats":{"field":"height"}},"height-stats":{"filter":{"range":{"height":{"gt":0.0}}},"aggregations":{"height-stats":{"stats":{"field":"height"}}}},"tiefe":{"stats":{"field":"attribute_tiefe"}},"range-anzahlSchubladen":{"stats":{"field":"attribute_anzahlSchubladen"}},"multi-ausfuehrungWerkbankplatte":{"composite":{"sources":[{"multi-ausfuehrungWerkbankplatte.sorting":{"terms":{"field":"attribute_ausfuehrungWerkbankplatte","order":"ASC"}}},{"multi-ausfuehrungWerkbankplatte.key":{"terms":{"field":"attribute_ausfuehrungWerkbankplatte"}}}],"size":"99999"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"range-traglast":{"stats":{"field":"attribute_traglast"}},"multi-anzahlTueren":{"composite":{"sources":[{"multi-anzahlTueren.sorting":{"terms":{"field":"attribute_anzahlTueren","order":"ASC"}}},{"multi-anzahlTueren.key":{"terms":{"field":"attribute_anzahlTueren"}}}],"size":"99999"}},"manufacturer-count":{"terms":{"field":"manufacturerId","size":10000}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
POST http://localhost:9200/staging-67_product/_search?track_total_hits=0&search_type=query_then_fetch
Accept: application/json
Content-Type: application/json
{
"query": {
"bool": {
"filter": [
{
"bool": {
"must": [
{
"bool": {
"must": [
{
"term": {
"active": true
}
},
{
"range": {
"visibility_132e445c03814d67ac47c04afb6d5d99": {
"gte": 30
}
}
}
]
}
},
{
"term": {
"categoryTree": "c7e554079c9470408efcf23bf8efb40e"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"price": {
"stats": {
"script": {
"source": "double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n",
"lang": "painless",
"params": {
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
}
],
"decimals": 100,
"round": true,
"multiplier": 100.0
}
}
}
},
"rating-exists": {
"filter": {
"range": {
"ratingAverage": {
"gte": 0.0
}
}
},
"aggregations": {
"rating": {
"max": {
"field": "ratingAverage"
}
}
}
},
"shipping-free-filter": {
"filter": {
"term": {
"shippingFree": true
}
},
"aggregations": {
"shipping-free": {
"max": {
"field": "shippingFree"
}
}
}
},
"properties": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"width": {
"stats": {
"field": "width"
}
},
"width-stats": {
"filter": {
"range": {
"width": {
"gt": 0.0
}
}
},
"aggregations": {
"width-stats": {
"stats": {
"field": "width"
}
}
}
},
"height": {
"stats": {
"field": "height"
}
},
"height-stats": {
"filter": {
"range": {
"height": {
"gt": 0.0
}
}
},
"aggregations": {
"height-stats": {
"stats": {
"field": "height"
}
}
}
},
"tiefe": {
"stats": {
"field": "attribute_tiefe"
}
},
"range-anzahlSchubladen": {
"stats": {
"field": "attribute_anzahlSchubladen"
}
},
"multi-ausfuehrungWerkbankplatte": {
"composite": {
"sources": [
{
"multi-ausfuehrungWerkbankplatte.sorting": {
"terms": {
"field": "attribute_ausfuehrungWerkbankplatte",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungWerkbankplatte.key": {
"terms": {
"field": "attribute_ausfuehrungWerkbankplatte"
}
}
}
],
"size": "99999"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"range-traglast": {
"stats": {
"field": "attribute_traglast"
}
},
"multi-anzahlTueren": {
"composite": {
"sources": [
{
"multi-anzahlTueren.sorting": {
"terms": {
"field": "attribute_anzahlTueren",
"order": "ASC"
}
}
},
{
"multi-anzahlTueren.key": {
"terms": {
"field": "attribute_anzahlTueren"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 132,
"min": 266.0,
"max": 4758.0,
"avg": 1650.778409090909,
"sum": 217902.75
},
"rating-exists": {
"doc_count": 132,
"rating": {
"value": 0.0
}
},
"shipping-free-filter": {
"doc_count": 0,
"shipping-free": {
"value": null
}
},
"properties": {
"doc_count": 0,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"options": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"manufacturer-count-filter": {
"after_key": {
"manufacturer-count-filter.sorting": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "46b2f43cba12702078b4e0d3bfdae2bc",
"manufacturer-count-filter.key": "46b2f43cba12702078b4e0d3bfdae2bc"
},
"doc_count": 92
},
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 14
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "d784d3a73624983fdf4a1370019f096b",
"manufacturer-count-filter.key": "d784d3a73624983fdf4a1370019f096b"
},
"doc_count": 8
},
{
"key": {
"manufacturer-count-filter.sorting": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"doc_count": 14
}
]
},
"bool-reduced": {
"doc_count": 92,
"bool-reduced": {
"value": 92
}
},
"width": {
"count": 128,
"min": 500.0,
"max": 3000.0,
"avg": 1427.734375,
"sum": 182750.0
},
"width-stats": {
"doc_count": 128,
"width-stats": {
"count": 128,
"min": 500.0,
"max": 3000.0,
"avg": 1427.734375,
"sum": 182750.0
}
},
"height": {
"count": 127,
"min": 1000.0,
"max": 1770.0,
"avg": 1175.9448818897638,
"sum": 149345.0
},
"height-stats": {
"doc_count": 127,
"height-stats": {
"count": 127,
"min": 1000.0,
"max": 1770.0,
"avg": 1175.9448818897638,
"sum": 149345.0
}
},
"tiefe": {
"count": 128,
"min": 500.0,
"max": 1000.0,
"avg": 761.171875,
"sum": 97430.0
},
"range-anzahlSchubladen": {
"count": 8,
"min": 1.0,
"max": 3.0,
"avg": 2.0,
"sum": 16.0
},
"multi-ausfuehrungWerkbankplatte": {
"after_key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Multiplex",
"multi-ausfuehrungWerkbankplatte.key": "Multiplex"
},
"buckets": [
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Buche",
"multi-ausfuehrungWerkbankplatte.key": "Buche"
},
"doc_count": 6
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Buche-Riegel",
"multi-ausfuehrungWerkbankplatte.key": "Buche-Riegel"
},
"doc_count": 34
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "EGB-Melaminharzbeschichtet (ESD)",
"multi-ausfuehrungWerkbankplatte.key": "EGB-Melaminharzbeschichtet (ESD)"
},
"doc_count": 12
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Hartlaminat",
"multi-ausfuehrungWerkbankplatte.key": "Hartlaminat"
},
"doc_count": 14
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Melaminharzbeschichtet",
"multi-ausfuehrungWerkbankplatte.key": "Melaminharzbeschichtet"
},
"doc_count": 24
},
{
"key": {
"multi-ausfuehrungWerkbankplatte.sorting": "Multiplex",
"multi-ausfuehrungWerkbankplatte.key": "Multiplex"
},
"doc_count": 20
}
]
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Werkstatteinrichtungen",
"multi-typModel.key": "Werkstatteinrichtungen"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Arbeitsplatzsysteme",
"multi-typModel.key": "Arbeitsplatzsysteme"
},
"doc_count": 40
},
{
"key": {
"multi-typModel.sorting": "Packtische",
"multi-typModel.key": "Packtische"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Werkb\u00e4nke ohne Unterbau",
"multi-typModel.key": "Werkb\u00e4nke ohne Unterbau"
},
"doc_count": 68
},
{
"key": {
"multi-typModel.sorting": "Werkb\u00e4nke ohne Unterbau, nur F\u00fc\u00dfe",
"multi-typModel.key": "Werkb\u00e4nke ohne Unterbau, nur F\u00fc\u00dfe"
},
"doc_count": 14
},
{
"key": {
"multi-typModel.sorting": "Werkstatteinrichtungen",
"multi-typModel.key": "Werkstatteinrichtungen"
},
"doc_count": 6
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau",
"multi-farbe.key": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7035 lichtgrau",
"multi-farbe.key": "RAL 7035 lichtgrau"
},
"doc_count": 96
},
{
"key": {
"multi-farbe.sorting": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau",
"multi-farbe.key": "RAL\u00a07035 lichtgrau \/\u00a0RAL 5013 kobaltblau"
},
"doc_count": 8
}
]
},
"range-traglast": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-anzahlTueren": {
"buckets": []
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "46b2f43cba12702078b4e0d3bfdae2bc",
"doc_count": 92
},
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 14
},
{
"key": "e92077b923fe7f60b3b5ea31cceb8c2a",
"doc_count": 14
},
{
"key": "d784d3a73624983fdf4a1370019f096b",
"doc_count": 8
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|