| 1 |
15.18 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":"4de77179c6c61ec69662e2f6ab2bf227"}},{"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": 49,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "35188309b508a442bdb63946a01b9e77",
"_score": 1100.0,
"_source": {
"id": "35188309b508a442bdb63946a01b9e77",
"autoIncrement": 147776.0
},
"fields": {
"displayGroup": [
"41f081d730cf6d50f790a2da6065b466"
]
},
"sort": [
0,
1100.0,
0,
147776,
"35188309b508a442bdb63946a01b9e77"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "38972dad21078ee0e111d6cd4b3782fe",
"_score": 1100.0,
"_source": {
"id": "38972dad21078ee0e111d6cd4b3782fe",
"autoIncrement": 121312.0
},
"fields": {
"displayGroup": [
"bf410e9a7c977348cec46f5964284c0f"
]
},
"sort": [
0,
1100.0,
0,
121312,
"38972dad21078ee0e111d6cd4b3782fe"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c7fb8e085dfb5ad1cb46cbcd77dcaa32",
"_score": 1100.0,
"_source": {
"id": "c7fb8e085dfb5ad1cb46cbcd77dcaa32",
"autoIncrement": 118988.0
},
"fields": {
"displayGroup": [
"36c7f40a7e2e56ce02a5e8bfc8d55a3d"
]
},
"sort": [
0,
1100.0,
0,
118988,
"c7fb8e085dfb5ad1cb46cbcd77dcaa32"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6f8a24b7af7afada429b98f482bc6748",
"_score": 1100.0,
"_source": {
"id": "6f8a24b7af7afada429b98f482bc6748",
"autoIncrement": 72593.0
},
"fields": {
"displayGroup": [
"0a954f5388485ce5e80f7297a41c1872"
]
},
"sort": [
0,
1100.0,
0,
72593,
"6f8a24b7af7afada429b98f482bc6748"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "142bf53c6c360f625db608613d16abcb",
"_score": 1100.0,
"_source": {
"id": "142bf53c6c360f625db608613d16abcb",
"autoIncrement": 72592.0
},
"fields": {
"displayGroup": [
"3f74a8417fb8f1fad4e843e3bc2ef710"
]
},
"sort": [
0,
1100.0,
0,
72592,
"142bf53c6c360f625db608613d16abcb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "658a804a324a7d50c97e4c1d51b23aff",
"_score": 1100.0,
"_source": {
"id": "658a804a324a7d50c97e4c1d51b23aff",
"autoIncrement": 72591.0
},
"fields": {
"displayGroup": [
"56a5ccb24f00963516517ca72f02ee2e"
]
},
"sort": [
0,
1100.0,
0,
72591,
"658a804a324a7d50c97e4c1d51b23aff"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b05783e1313d96504382f6eb71cc466f",
"_score": 1100.0,
"_source": {
"id": "b05783e1313d96504382f6eb71cc466f",
"autoIncrement": 72590.0
},
"fields": {
"displayGroup": [
"6f136e745ac7004db5575a8db320a094"
]
},
"sort": [
0,
1100.0,
0,
72590,
"b05783e1313d96504382f6eb71cc466f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1f002eb880c329d790d8fd0c03cf73a3",
"_score": 1100.0,
"_source": {
"id": "1f002eb880c329d790d8fd0c03cf73a3",
"autoIncrement": 72589.0
},
"fields": {
"displayGroup": [
"8117d564df59e8f65bd99f938bbb69bd"
]
},
"sort": [
0,
1100.0,
0,
72589,
"1f002eb880c329d790d8fd0c03cf73a3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ad877730a59c1dcb1aaca61ec499a138",
"_score": 1100.0,
"_source": {
"id": "ad877730a59c1dcb1aaca61ec499a138",
"autoIncrement": 72588.0
},
"fields": {
"displayGroup": [
"7b6679be643670872a70bce1606f2bf2"
]
},
"sort": [
0,
1100.0,
0,
72588,
"ad877730a59c1dcb1aaca61ec499a138"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6fd789485be056f9bc91b4fafe55175f",
"_score": 1100.0,
"_source": {
"id": "6fd789485be056f9bc91b4fafe55175f",
"autoIncrement": 72587.0
},
"fields": {
"displayGroup": [
"f86a0736bb9670163c9b5e175b76c1ca"
]
},
"sort": [
0,
1100.0,
0,
72587,
"6fd789485be056f9bc91b4fafe55175f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "35e531dbb431509a1610213fb071cfba",
"_score": 1100.0,
"_source": {
"id": "35e531dbb431509a1610213fb071cfba",
"autoIncrement": 72586.0
},
"fields": {
"displayGroup": [
"19df3321f2e89ef8d180d2821f972e50"
]
},
"sort": [
0,
1100.0,
0,
72586,
"35e531dbb431509a1610213fb071cfba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dac9f1f49060d598a1a56af0da07a33c",
"_score": 1100.0,
"_source": {
"id": "dac9f1f49060d598a1a56af0da07a33c",
"autoIncrement": 72585.0
},
"fields": {
"displayGroup": [
"4a079a37664a2eda663548429c15780a"
]
},
"sort": [
0,
1100.0,
0,
72585,
"dac9f1f49060d598a1a56af0da07a33c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fe4faf7a2a029f09d1e89a0f1a7399ee",
"_score": 1100.0,
"_source": {
"id": "fe4faf7a2a029f09d1e89a0f1a7399ee",
"autoIncrement": 72494.0
},
"fields": {
"displayGroup": [
"396b48b0956cdb33f77cd31f4895495a"
]
},
"sort": [
0,
1100.0,
0,
72494,
"fe4faf7a2a029f09d1e89a0f1a7399ee"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d038e1552ae63f3fe5fb0c685bfa9203",
"_score": 1100.0,
"_source": {
"id": "d038e1552ae63f3fe5fb0c685bfa9203",
"autoIncrement": 72493.0
},
"fields": {
"displayGroup": [
"b54dbf033709cfcbb4675858511f9c20"
]
},
"sort": [
0,
1100.0,
0,
72493,
"d038e1552ae63f3fe5fb0c685bfa9203"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f4d0520a5b1afd2721e71429c4a7e04c",
"_score": 1100.0,
"_source": {
"id": "f4d0520a5b1afd2721e71429c4a7e04c",
"autoIncrement": 72492.0
},
"fields": {
"displayGroup": [
"f0568d06648257dd6926d9955008b3dc"
]
},
"sort": [
0,
1100.0,
0,
72492,
"f4d0520a5b1afd2721e71429c4a7e04c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ed7f7f18181b062c1409450564813745",
"_score": 1100.0,
"_source": {
"id": "ed7f7f18181b062c1409450564813745",
"autoIncrement": 72491.0
},
"fields": {
"displayGroup": [
"81c68262f0836aa5460de34d6949ce30"
]
},
"sort": [
0,
1100.0,
0,
72491,
"ed7f7f18181b062c1409450564813745"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8718b496c8692d9d0a2de17e8f2ab6a8",
"_score": 1100.0,
"_source": {
"id": "8718b496c8692d9d0a2de17e8f2ab6a8",
"autoIncrement": 72490.0
},
"fields": {
"displayGroup": [
"250a6f96bba576e882dccac5852bed0a"
]
},
"sort": [
0,
1100.0,
0,
72490,
"8718b496c8692d9d0a2de17e8f2ab6a8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cc4d5b904d27385e7baa1cacc69e0904",
"_score": 1100.0,
"_source": {
"id": "cc4d5b904d27385e7baa1cacc69e0904",
"autoIncrement": 72489.0
},
"fields": {
"displayGroup": [
"13e358856df68cf4e654f1772a12669a"
]
},
"sort": [
0,
1100.0,
0,
72489,
"cc4d5b904d27385e7baa1cacc69e0904"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "978d0e1e9c6508c925978a87b297e0da",
"_score": 1100.0,
"_source": {
"id": "978d0e1e9c6508c925978a87b297e0da",
"autoIncrement": 72488.0
},
"fields": {
"displayGroup": [
"6a00a4406e50dbad997c06b233e0b118"
]
},
"sort": [
0,
1100.0,
0,
72488,
"978d0e1e9c6508c925978a87b297e0da"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "795fbe2cba5ced7d3e015f0475b4cf2b",
"_score": 1100.0,
"_source": {
"id": "795fbe2cba5ced7d3e015f0475b4cf2b",
"autoIncrement": 72487.0
},
"fields": {
"displayGroup": [
"6548d9a7416989298fc80edaa478d17e"
]
},
"sort": [
0,
1100.0,
0,
72487,
"795fbe2cba5ced7d3e015f0475b4cf2b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "16ba5b7d645104bf51f3a5271a409f2c",
"_score": 1100.0,
"_source": {
"id": "16ba5b7d645104bf51f3a5271a409f2c",
"autoIncrement": 72486.0
},
"fields": {
"displayGroup": [
"5ea722f8ddd96bc7176b94d870d7e5ee"
]
},
"sort": [
0,
1100.0,
0,
72486,
"16ba5b7d645104bf51f3a5271a409f2c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1998cc63ba4097ce422bb30abd17904f",
"_score": 1100.0,
"_source": {
"id": "1998cc63ba4097ce422bb30abd17904f",
"autoIncrement": 72485.0
},
"fields": {
"displayGroup": [
"63e0b33fe90e76c8b7ca15672c012d7d"
]
},
"sort": [
0,
1100.0,
0,
72485,
"1998cc63ba4097ce422bb30abd17904f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b8dc0628a8303123a66c4bf03e00bec1",
"_score": 1100.0,
"_source": {
"id": "b8dc0628a8303123a66c4bf03e00bec1",
"autoIncrement": 70940.0
},
"fields": {
"displayGroup": [
"dfec8e1fe750a0df1456fc67f55bdd2f"
]
},
"sort": [
0,
1100.0,
0,
70940,
"b8dc0628a8303123a66c4bf03e00bec1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1bd132cc11fec4e804a5e99c9b5ea7cc",
"_score": 1100.0,
"_source": {
"id": "1bd132cc11fec4e804a5e99c9b5ea7cc",
"autoIncrement": 70938.0
},
"fields": {
"displayGroup": [
"10d762f1a926b494a2520b76e0c258de"
]
},
"sort": [
0,
1100.0,
0,
70938,
"1bd132cc11fec4e804a5e99c9b5ea7cc"
]
}
]
},
"aggregations": {
"total-count": {
"value": 49
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
10.69 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":"4de77179c6c61ec69662e2f6ab2bf227"}},{"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"}},"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": "4de77179c6c61ec69662e2f6ab2bf227"
}
},
{
"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"
}
},
"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": 5,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 49,
"min": 33.0,
"max": 242.0,
"avg": 124.34693877551021,
"sum": 6093.0
},
"rating-exists": {
"doc_count": 49,
"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": "d6f4440b8633f973d33c78928bdac2e1",
"manufacturer-count-filter.key": "d6f4440b8633f973d33c78928bdac2e1"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "2e30356d97a7f9b781e52c96f19f58e3",
"manufacturer-count-filter.key": "2e30356d97a7f9b781e52c96f19f58e3"
},
"doc_count": 20
},
{
"key": {
"manufacturer-count-filter.sorting": "5f3a897d0545c96e4d639d12b4e1dedb",
"manufacturer-count-filter.key": "5f3a897d0545c96e4d639d12b4e1dedb"
},
"doc_count": 17
},
{
"key": {
"manufacturer-count-filter.sorting": "d6f4440b8633f973d33c78928bdac2e1",
"manufacturer-count-filter.key": "d6f4440b8633f973d33c78928bdac2e1"
},
"doc_count": 11
}
]
},
"bool-reduced": {
"doc_count": 3,
"bool-reduced": {
"value": 3
}
},
"width": {
"count": 9,
"min": 15.0,
"max": 180.0,
"avg": 151.66666666666666,
"sum": 1365.0
},
"width-stats": {
"doc_count": 9,
"width-stats": {
"count": 9,
"min": 15.0,
"max": 180.0,
"avg": 151.66666666666666,
"sum": 1365.0
}
},
"height": {
"count": 39,
"min": 16.0,
"max": 825.0,
"avg": 258.7435897435897,
"sum": 10091.0
},
"height-stats": {
"doc_count": 39,
"height-stats": {
"count": 39,
"min": 16.0,
"max": 825.0,
"avg": 258.7435897435897,
"sum": 10091.0
}
},
"tiefe": {
"count": 6,
"min": 12.0,
"max": 150.0,
"avg": 127.0,
"sum": 762.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Wandascher",
"multi-typModel.key": "Wandascher"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Standascher",
"multi-typModel.key": "Standascher"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Wandascher",
"multi-typModel.key": "Wandascher"
},
"doc_count": 47
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "Edelstahl",
"multi-farbe.key": "Edelstahl"
},
"doc_count": 11
},
{
"key": {
"multi-farbe.sorting": "Edelstahl\/matt",
"multi-farbe.key": "Edelstahl\/matt"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "Edelstahl\/poliert",
"multi-farbe.key": "Edelstahl\/poliert"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "anthrazit",
"multi-farbe.key": "anthrazit"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "anthrazit-eisenglimmer",
"multi-farbe.key": "anthrazit-eisenglimmer"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "anthrazitgrau",
"multi-farbe.key": "anthrazitgrau"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "antiksilber",
"multi-farbe.key": "antiksilber"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "enzianblau",
"multi-farbe.key": "enzianblau"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "feuerrot",
"multi-farbe.key": "feuerrot"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "graphit",
"multi-farbe.key": "graphit"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "kobaltblau",
"multi-farbe.key": "kobaltblau"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "moosgr\u00fcn",
"multi-farbe.key": "moosgr\u00fcn"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "neusilber",
"multi-farbe.key": "neusilber"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "rot",
"multi-farbe.key": "rot"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "silber",
"multi-farbe.key": "silber"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"doc_count": 1
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Edelstahl",
"multi-material.key": "Edelstahl"
},
"doc_count": 13
},
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 36
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "2e30356d97a7f9b781e52c96f19f58e3",
"doc_count": 20
},
{
"key": "5f3a897d0545c96e4d639d12b4e1dedb",
"doc_count": 17
},
{
"key": "d6f4440b8633f973d33c78928bdac2e1",
"doc_count": 11
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|