| 1 |
19.83 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":"eaaf9741202be6b0122e0b700dc5ad17"}},{"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":240,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 376,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "934bef7bd86ade8b39445928d2a9089b",
"_score": 1100.0,
"_source": {
"id": "934bef7bd86ade8b39445928d2a9089b",
"autoIncrement": 114763.0
},
"fields": {
"displayGroup": [
"2277d69f6a7136a3369ec11436cfd982"
]
},
"sort": [
0,
1100.0,
0,
114763,
"934bef7bd86ade8b39445928d2a9089b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3272c58f1326bd9a250ae4987ea671d3",
"_score": 1100.0,
"_source": {
"id": "3272c58f1326bd9a250ae4987ea671d3",
"autoIncrement": 114762.0
},
"fields": {
"displayGroup": [
"f6637d1a719313b9f126bbd74aec93b7"
]
},
"sort": [
0,
1100.0,
0,
114762,
"3272c58f1326bd9a250ae4987ea671d3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "729d84a6ba57d4d8e7a754dd7e0e9f80",
"_score": 1100.0,
"_source": {
"id": "729d84a6ba57d4d8e7a754dd7e0e9f80",
"autoIncrement": 114761.0
},
"fields": {
"displayGroup": [
"180e9fbb26f9d772a76f274d87a65420"
]
},
"sort": [
0,
1100.0,
0,
114761,
"729d84a6ba57d4d8e7a754dd7e0e9f80"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "32e5714e499654bdd7220cc650c5022e",
"_score": 1100.0,
"_source": {
"id": "32e5714e499654bdd7220cc650c5022e",
"autoIncrement": 114760.0
},
"fields": {
"displayGroup": [
"ac63f968c346b91b061c0fccaa9d8336"
]
},
"sort": [
0,
1100.0,
0,
114760,
"32e5714e499654bdd7220cc650c5022e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a9cb5e50c96d5b9d8e9a8db1ddc9f726",
"_score": 1100.0,
"_source": {
"id": "a9cb5e50c96d5b9d8e9a8db1ddc9f726",
"autoIncrement": 114759.0
},
"fields": {
"displayGroup": [
"5b1e9c46cf82959ed4356edfed227b6a"
]
},
"sort": [
0,
1100.0,
0,
114759,
"a9cb5e50c96d5b9d8e9a8db1ddc9f726"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ba4dc5a31e4dab3de083b2755012cc65",
"_score": 1100.0,
"_source": {
"id": "ba4dc5a31e4dab3de083b2755012cc65",
"autoIncrement": 114758.0
},
"fields": {
"displayGroup": [
"ca12b2b9a2733b3ca19235f1712f064d"
]
},
"sort": [
0,
1100.0,
0,
114758,
"ba4dc5a31e4dab3de083b2755012cc65"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "25bc54f2eb6f7cf114a19d0ca6622488",
"_score": 1100.0,
"_source": {
"id": "25bc54f2eb6f7cf114a19d0ca6622488",
"autoIncrement": 114757.0
},
"fields": {
"displayGroup": [
"0c2d3ac97a1d7d94462e80a0fc934dd9"
]
},
"sort": [
0,
1100.0,
0,
114757,
"25bc54f2eb6f7cf114a19d0ca6622488"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "35395066e5505cc7cb4077e6db5ca744",
"_score": 1100.0,
"_source": {
"id": "35395066e5505cc7cb4077e6db5ca744",
"autoIncrement": 114756.0
},
"fields": {
"displayGroup": [
"55e7718b54842077b528da250227e045"
]
},
"sort": [
0,
1100.0,
0,
114756,
"35395066e5505cc7cb4077e6db5ca744"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3a2bb1b1dd9c4e8b308b1464e961ce05",
"_score": 1100.0,
"_source": {
"id": "3a2bb1b1dd9c4e8b308b1464e961ce05",
"autoIncrement": 114755.0
},
"fields": {
"displayGroup": [
"6a71eec20dcea50359a1af8d5a92884b"
]
},
"sort": [
0,
1100.0,
0,
114755,
"3a2bb1b1dd9c4e8b308b1464e961ce05"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "82fd07127baa9eeaa15180391eea732e",
"_score": 1100.0,
"_source": {
"id": "82fd07127baa9eeaa15180391eea732e",
"autoIncrement": 114754.0
},
"fields": {
"displayGroup": [
"f8ed730ba397bd69e93e3736dff0b79d"
]
},
"sort": [
0,
1100.0,
0,
114754,
"82fd07127baa9eeaa15180391eea732e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a11b65fe3c702654c12d9b732efa7352",
"_score": 1100.0,
"_source": {
"id": "a11b65fe3c702654c12d9b732efa7352",
"autoIncrement": 114753.0
},
"fields": {
"displayGroup": [
"1b661744ea529f51b246bf1629bc0225"
]
},
"sort": [
0,
1100.0,
0,
114753,
"a11b65fe3c702654c12d9b732efa7352"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "94467a56ec1d400afb2d4fafd90440ad",
"_score": 1100.0,
"_source": {
"id": "94467a56ec1d400afb2d4fafd90440ad",
"autoIncrement": 114752.0
},
"fields": {
"displayGroup": [
"7b1d9e72d1af5327affca101c5f62964"
]
},
"sort": [
0,
1100.0,
0,
114752,
"94467a56ec1d400afb2d4fafd90440ad"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b706a06499b263b3eac82bdf1c784d9a",
"_score": 1100.0,
"_source": {
"id": "b706a06499b263b3eac82bdf1c784d9a",
"autoIncrement": 114751.0
},
"fields": {
"displayGroup": [
"3ab273690faa7d9c14d04ebfc10f9d1e"
]
},
"sort": [
0,
1100.0,
0,
114751,
"b706a06499b263b3eac82bdf1c784d9a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e58cadf2ca4a8b054041a4866ae12148",
"_score": 1100.0,
"_source": {
"id": "e58cadf2ca4a8b054041a4866ae12148",
"autoIncrement": 114750.0
},
"fields": {
"displayGroup": [
"4e685bdd4e0c054a74b5424c293164e2"
]
},
"sort": [
0,
1100.0,
0,
114750,
"e58cadf2ca4a8b054041a4866ae12148"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8aa3948800a8cc02391ef1da943a18ab",
"_score": 1100.0,
"_source": {
"id": "8aa3948800a8cc02391ef1da943a18ab",
"autoIncrement": 114749.0
},
"fields": {
"displayGroup": [
"1cf5548a8d7d495008effdd809708964"
]
},
"sort": [
0,
1100.0,
0,
114749,
"8aa3948800a8cc02391ef1da943a18ab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b0e38badc0ba4dca993c408e8e2cf6ed",
"_score": 1100.0,
"_source": {
"id": "b0e38badc0ba4dca993c408e8e2cf6ed",
"autoIncrement": 114748.0
},
"fields": {
"displayGroup": [
"1f69a666f0134a1eb7f14b4250eb89a8"
]
},
"sort": [
0,
1100.0,
0,
114748,
"b0e38badc0ba4dca993c408e8e2cf6ed"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "45560b95436d0dcf2dd87914da0786e6",
"_score": 1100.0,
"_source": {
"id": "45560b95436d0dcf2dd87914da0786e6",
"autoIncrement": 114747.0
},
"fields": {
"displayGroup": [
"655daf997c7db826fe8a4558638d95a7"
]
},
"sort": [
0,
1100.0,
0,
114747,
"45560b95436d0dcf2dd87914da0786e6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0fc3e67e2e57bf25a782353102d57fd2",
"_score": 1100.0,
"_source": {
"id": "0fc3e67e2e57bf25a782353102d57fd2",
"autoIncrement": 114746.0
},
"fields": {
"displayGroup": [
"570b63e88de3a2d446999b7849009112"
]
},
"sort": [
0,
1100.0,
0,
114746,
"0fc3e67e2e57bf25a782353102d57fd2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "50d035665845aec2ee76865c935539a7",
"_score": 1100.0,
"_source": {
"id": "50d035665845aec2ee76865c935539a7",
"autoIncrement": 114745.0
},
"fields": {
"displayGroup": [
"c2d99457e2a89a4129134474f16252e8"
]
},
"sort": [
0,
1100.0,
0,
114745,
"50d035665845aec2ee76865c935539a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "756ed7b6457b7cd3a5b1146856e71719",
"_score": 1100.0,
"_source": {
"id": "756ed7b6457b7cd3a5b1146856e71719",
"autoIncrement": 114744.0
},
"fields": {
"displayGroup": [
"98f09bc60bdf12c352c2d6a87ebb8ebb"
]
},
"sort": [
0,
1100.0,
0,
114744,
"756ed7b6457b7cd3a5b1146856e71719"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7a286e29504484c67df7411809bcdb68",
"_score": 1100.0,
"_source": {
"id": "7a286e29504484c67df7411809bcdb68",
"autoIncrement": 114743.0
},
"fields": {
"displayGroup": [
"d29fcb40ff00993d2716e77e5561a77d"
]
},
"sort": [
0,
1100.0,
0,
114743,
"7a286e29504484c67df7411809bcdb68"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d2ece8825304e5bb3e1c7093e5555a74",
"_score": 1100.0,
"_source": {
"id": "d2ece8825304e5bb3e1c7093e5555a74",
"autoIncrement": 114742.0
},
"fields": {
"displayGroup": [
"c161388caf0c031dd6b917052308c3ac"
]
},
"sort": [
0,
1100.0,
0,
114742,
"d2ece8825304e5bb3e1c7093e5555a74"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7da3ee5f518f3bffe16e037ba190901d",
"_score": 1100.0,
"_source": {
"id": "7da3ee5f518f3bffe16e037ba190901d",
"autoIncrement": 114741.0
},
"fields": {
"displayGroup": [
"5723b317e1941bcdd23d982d6fa605ad"
]
},
"sort": [
0,
1100.0,
0,
114741,
"7da3ee5f518f3bffe16e037ba190901d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7abbe93c5c4c35b816c2bc8d3ae6404a",
"_score": 1100.0,
"_source": {
"id": "7abbe93c5c4c35b816c2bc8d3ae6404a",
"autoIncrement": 114740.0
},
"fields": {
"displayGroup": [
"faacf3006da65d6604738bf7b8f94674"
]
},
"sort": [
0,
1100.0,
0,
114740,
"7abbe93c5c4c35b816c2bc8d3ae6404a"
]
}
]
},
"aggregations": {
"total-count": {
"value": 376
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.37 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":"eaaf9741202be6b0122e0b700dc5ad17"}},{"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-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"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-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"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": "eaaf9741202be6b0122e0b700dc5ad17"
}
},
{
"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-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"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-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"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": 376,
"min": 399.0,
"max": 2379.0,
"avg": 956.7712765957447,
"sum": 359746.0
},
"rating-exists": {
"doc_count": 376,
"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": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 268
}
]
},
"bool-reduced": {
"doc_count": 24,
"bool-reduced": {
"value": 24
}
},
"width": {
"count": 352,
"min": 1500.0,
"max": 11073.0,
"avg": 2174.096590909091,
"sum": 765282.0
},
"width-stats": {
"doc_count": 352,
"width-stats": {
"count": 352,
"min": 1500.0,
"max": 11073.0,
"avg": 2174.096590909091,
"sum": 765282.0
}
},
"height": {
"count": 352,
"min": 2000.0,
"max": 3000.0,
"avg": 2424.715909090909,
"sum": 853500.0
},
"height-stats": {
"doc_count": 352,
"height-stats": {
"count": 352,
"min": 2000.0,
"max": 3000.0,
"avg": 2424.715909090909,
"sum": 853500.0
}
},
"tiefe": {
"count": 352,
"min": 400.0,
"max": 1000.0,
"avg": 706.8181818181819,
"sum": 248800.0
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 4
}
]
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Weitspannregale Set",
"multi-typModel.key": "Weitspannregale Set"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Weitspannregale Anbaufeld",
"multi-typModel.key": "Weitspannregale Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Grundfeld",
"multi-typModel.key": "Weitspannregale Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Set",
"multi-typModel.key": "Weitspannregale Set"
},
"doc_count": 4
}
]
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "3 St\u00fcck",
"multi-anzahlFachboeden.key": "3 St\u00fcck"
},
"doc_count": 84
},
{
"key": {
"multi-anzahlFachboeden.sorting": "4 St\u00fcck",
"multi-anzahlFachboeden.key": "4 St\u00fcck"
},
"doc_count": 228
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 36
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 268
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|