| 1 |
15.08 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":"3210cb5f2a9e659f2772e277a972dff6"}},{"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": 77,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "143e282de8594141fc372cc55fda1a93",
"_score": 1100.0,
"_source": {
"id": "143e282de8594141fc372cc55fda1a93",
"autoIncrement": 135152.0
},
"fields": {
"displayGroup": [
"617ee3052c2b39468d24850d82959368"
]
},
"sort": [
0,
1100.0,
0,
135152,
"143e282de8594141fc372cc55fda1a93"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7cda2fb3cef5bfa34347cf9fbd2773b5",
"_score": 1100.0,
"_source": {
"id": "7cda2fb3cef5bfa34347cf9fbd2773b5",
"autoIncrement": 135135.0
},
"fields": {
"displayGroup": [
"5286943cf3350a89ad81b9cff82ff39e"
]
},
"sort": [
0,
1100.0,
0,
135135,
"7cda2fb3cef5bfa34347cf9fbd2773b5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d58907757219d8718a641c63cfa6e036",
"_score": 1100.0,
"_source": {
"id": "d58907757219d8718a641c63cfa6e036",
"autoIncrement": 135134.0
},
"fields": {
"displayGroup": [
"8f713ecdfe1340eef3517042feaefff3"
]
},
"sort": [
0,
1100.0,
0,
135134,
"d58907757219d8718a641c63cfa6e036"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9ba35c1115e6dad378758ea401e24ea3",
"_score": 1100.0,
"_source": {
"id": "9ba35c1115e6dad378758ea401e24ea3",
"autoIncrement": 135089.0
},
"fields": {
"displayGroup": [
"265ec65cc021243e2956e863a66b89a1"
]
},
"sort": [
0,
1100.0,
0,
135089,
"9ba35c1115e6dad378758ea401e24ea3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b181070a12fd39914cbbdecdd0dce877",
"_score": 1100.0,
"_source": {
"id": "b181070a12fd39914cbbdecdd0dce877",
"autoIncrement": 135088.0
},
"fields": {
"displayGroup": [
"88b12a48eae129e0d3ed8a16e04d23d9"
]
},
"sort": [
0,
1100.0,
0,
135088,
"b181070a12fd39914cbbdecdd0dce877"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fda8c6b3525642984410850561d106be",
"_score": 1100.0,
"_source": {
"id": "fda8c6b3525642984410850561d106be",
"autoIncrement": 135087.0
},
"fields": {
"displayGroup": [
"da045aff5d3c9d212c7c421308c4acf0"
]
},
"sort": [
0,
1100.0,
0,
135087,
"fda8c6b3525642984410850561d106be"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "01e726d98a675743159bcd9e67e95a81",
"_score": 1100.0,
"_source": {
"id": "01e726d98a675743159bcd9e67e95a81",
"autoIncrement": 135086.0
},
"fields": {
"displayGroup": [
"c9952c01a806b538ad2d0c4a096b4ad5"
]
},
"sort": [
0,
1100.0,
0,
135086,
"01e726d98a675743159bcd9e67e95a81"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7aa8aac0520cfe17514b777ee1f6f8f8",
"_score": 1100.0,
"_source": {
"id": "7aa8aac0520cfe17514b777ee1f6f8f8",
"autoIncrement": 135085.0
},
"fields": {
"displayGroup": [
"c91335d7efdd5a26aee1f32dfb642645"
]
},
"sort": [
0,
1100.0,
0,
135085,
"7aa8aac0520cfe17514b777ee1f6f8f8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8afb536a163bd8eb5b49ff053ddbb5cd",
"_score": 1100.0,
"_source": {
"id": "8afb536a163bd8eb5b49ff053ddbb5cd",
"autoIncrement": 135084.0
},
"fields": {
"displayGroup": [
"47534cab993aa2c0f71ada712e9c98bb"
]
},
"sort": [
0,
1100.0,
0,
135084,
"8afb536a163bd8eb5b49ff053ddbb5cd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6549cd669f5a6b9d5b2a3693de374107",
"_score": 1100.0,
"_source": {
"id": "6549cd669f5a6b9d5b2a3693de374107",
"autoIncrement": 135083.0
},
"fields": {
"displayGroup": [
"4cc66fa3b38788a862b944f317383638"
]
},
"sort": [
0,
1100.0,
0,
135083,
"6549cd669f5a6b9d5b2a3693de374107"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7f13725b4c2906d55a51a53d168f9c1f",
"_score": 1100.0,
"_source": {
"id": "7f13725b4c2906d55a51a53d168f9c1f",
"autoIncrement": 135082.0
},
"fields": {
"displayGroup": [
"24ca1b9a8a3120e82312bea416bdca8e"
]
},
"sort": [
0,
1100.0,
0,
135082,
"7f13725b4c2906d55a51a53d168f9c1f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "abee024424a045db1bbf3f367ac860c4",
"_score": 1100.0,
"_source": {
"id": "abee024424a045db1bbf3f367ac860c4",
"autoIncrement": 135081.0
},
"fields": {
"displayGroup": [
"0d68987fc2f9184e050c36d3e8ffbac4"
]
},
"sort": [
0,
1100.0,
0,
135081,
"abee024424a045db1bbf3f367ac860c4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "746ed139e4ee54eae2396031c4a109f8",
"_score": 1100.0,
"_source": {
"id": "746ed139e4ee54eae2396031c4a109f8",
"autoIncrement": 135080.0
},
"fields": {
"displayGroup": [
"eb73c85b7ba52b341375ab6e26468780"
]
},
"sort": [
0,
1100.0,
0,
135080,
"746ed139e4ee54eae2396031c4a109f8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5683a78f64e3c8738c795c1b05aef3c1",
"_score": 1100.0,
"_source": {
"id": "5683a78f64e3c8738c795c1b05aef3c1",
"autoIncrement": 135079.0
},
"fields": {
"displayGroup": [
"481c4ce7f06aaf76b85475b1350a6c20"
]
},
"sort": [
0,
1100.0,
0,
135079,
"5683a78f64e3c8738c795c1b05aef3c1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "013ee6ed22f53af482f882feda4a5dff",
"_score": 1100.0,
"_source": {
"id": "013ee6ed22f53af482f882feda4a5dff",
"autoIncrement": 135078.0
},
"fields": {
"displayGroup": [
"8246e083048b5d4cdebeb9123e995746"
]
},
"sort": [
0,
1100.0,
0,
135078,
"013ee6ed22f53af482f882feda4a5dff"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5dbbfae4784279c10daaf2d0814e6551",
"_score": 1100.0,
"_source": {
"id": "5dbbfae4784279c10daaf2d0814e6551",
"autoIncrement": 135077.0
},
"fields": {
"displayGroup": [
"070ac01dbff2acf47e989f7f3baad14c"
]
},
"sort": [
0,
1100.0,
0,
135077,
"5dbbfae4784279c10daaf2d0814e6551"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "87a188d9f7b648a5b63a143570b3c480",
"_score": 1100.0,
"_source": {
"id": "87a188d9f7b648a5b63a143570b3c480",
"autoIncrement": 135076.0
},
"fields": {
"displayGroup": [
"1665de50cd4508860b973f5b6b44cea5"
]
},
"sort": [
0,
1100.0,
0,
135076,
"87a188d9f7b648a5b63a143570b3c480"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6029db82921bb8035b02c161e8860800",
"_score": 1100.0,
"_source": {
"id": "6029db82921bb8035b02c161e8860800",
"autoIncrement": 135075.0
},
"fields": {
"displayGroup": [
"6cb1d4d6b2be4ebd7a52633019f2d83b"
]
},
"sort": [
0,
1100.0,
0,
135075,
"6029db82921bb8035b02c161e8860800"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5ca7d46508dd0171c6bfec76072a0c1d",
"_score": 1100.0,
"_source": {
"id": "5ca7d46508dd0171c6bfec76072a0c1d",
"autoIncrement": 135074.0
},
"fields": {
"displayGroup": [
"b3c4764b230a41d484329458fce34a61"
]
},
"sort": [
0,
1100.0,
0,
135074,
"5ca7d46508dd0171c6bfec76072a0c1d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4a0ccbf1ad1ed9d81e73a01c56b827b9",
"_score": 1100.0,
"_source": {
"id": "4a0ccbf1ad1ed9d81e73a01c56b827b9",
"autoIncrement": 135073.0
},
"fields": {
"displayGroup": [
"eae2f5d4ab1204f1e3b30cf864cff882"
]
},
"sort": [
0,
1100.0,
0,
135073,
"4a0ccbf1ad1ed9d81e73a01c56b827b9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1b89a7b8869e2fb4f669bf354a62895a",
"_score": 1100.0,
"_source": {
"id": "1b89a7b8869e2fb4f669bf354a62895a",
"autoIncrement": 135072.0
},
"fields": {
"displayGroup": [
"9473a7449d5bdd4ef87207e7caea870d"
]
},
"sort": [
0,
1100.0,
0,
135072,
"1b89a7b8869e2fb4f669bf354a62895a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "22b9b822ad9fb705d47cc57abe4ef0db",
"_score": 1100.0,
"_source": {
"id": "22b9b822ad9fb705d47cc57abe4ef0db",
"autoIncrement": 135071.0
},
"fields": {
"displayGroup": [
"6cba173b7b8d9575d153af347d04b02b"
]
},
"sort": [
0,
1100.0,
0,
135071,
"22b9b822ad9fb705d47cc57abe4ef0db"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bcc906c7508188629f8c0c1318f2a8b3",
"_score": 1100.0,
"_source": {
"id": "bcc906c7508188629f8c0c1318f2a8b3",
"autoIncrement": 135070.0
},
"fields": {
"displayGroup": [
"240a28df9a61771325a55b34cccd87af"
]
},
"sort": [
0,
1100.0,
0,
135070,
"bcc906c7508188629f8c0c1318f2a8b3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3f3583ac161d4f0446df21eee59b6c9a",
"_score": 1100.0,
"_source": {
"id": "3f3583ac161d4f0446df21eee59b6c9a",
"autoIncrement": 135069.0
},
"fields": {
"displayGroup": [
"a218547ea543d1254fb47116072a0b04"
]
},
"sort": [
0,
1100.0,
0,
135069,
"3f3583ac161d4f0446df21eee59b6c9a"
]
}
]
},
"aggregations": {
"total-count": {
"value": 77
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
10.78 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":"3210cb5f2a9e659f2772e277a972dff6"}},{"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-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": "3210cb5f2a9e659f2772e277a972dff6"
}
},
{
"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-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": 77,
"min": 2.3,
"max": 35.5,
"avg": 8.980519480519481,
"sum": 691.5
},
"rating-exists": {
"doc_count": 77,
"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": "c3a426735eefdce4df6537fb4b7ae301",
"manufacturer-count-filter.key": "c3a426735eefdce4df6537fb4b7ae301"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "339b2f19a3f2821963c7d2b0ca441bd2",
"manufacturer-count-filter.key": "339b2f19a3f2821963c7d2b0ca441bd2"
},
"doc_count": 3
},
{
"key": {
"manufacturer-count-filter.sorting": "c3a426735eefdce4df6537fb4b7ae301",
"manufacturer-count-filter.key": "c3a426735eefdce4df6537fb4b7ae301"
},
"doc_count": 74
}
]
},
"bool-reduced": {
"doc_count": 1,
"bool-reduced": {
"value": 1
}
},
"width": {
"count": 77,
"min": 20.0,
"max": 430.0,
"avg": 230.7792207792208,
"sum": 17770.0
},
"width-stats": {
"doc_count": 77,
"width-stats": {
"count": 77,
"min": 20.0,
"max": 430.0,
"avg": 230.7792207792208,
"sum": 17770.0
}
},
"height": {
"count": 20,
"min": 60.0,
"max": 400.0,
"avg": 215.5,
"sum": 4310.0
},
"height-stats": {
"doc_count": 20,
"height-stats": {
"count": 20,
"min": 60.0,
"max": 400.0,
"avg": 215.5,
"sum": 4310.0
}
},
"tiefe": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Verbotskennzeichnung",
"multi-typModel.key": "Verbotskennzeichnung"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Bodenmarkieraufkleber",
"multi-typModel.key": "Bodenmarkieraufkleber"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Sicherheitsbeschilderung",
"multi-typModel.key": "Sicherheitsbeschilderung"
},
"doc_count": 10
},
{
"key": {
"multi-typModel.sorting": "Verbotskennzeichnung",
"multi-typModel.key": "Verbotskennzeichnung"
},
"doc_count": 64
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "PVC",
"multi-material.key": "PVC"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Aluminium",
"multi-material.key": "Aluminium"
},
"doc_count": 26
},
{
"key": {
"multi-material.sorting": "Folie",
"multi-material.key": "Folie"
},
"doc_count": 31
},
{
"key": {
"multi-material.sorting": "Folie langnachleuchtend",
"multi-material.key": "Folie langnachleuchtend"
},
"doc_count": 2
},
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 13
},
{
"key": {
"multi-material.sorting": "Magnetfolie",
"multi-material.key": "Magnetfolie"
},
"doc_count": 2
},
{
"key": {
"multi-material.sorting": "PVC",
"multi-material.key": "PVC"
},
"doc_count": 3
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "c3a426735eefdce4df6537fb4b7ae301",
"doc_count": 74
},
{
"key": "339b2f19a3f2821963c7d2b0ca441bd2",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|