| 1 |
15.23 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":"41dcd6c01bb81c63b7c948a2e5ebc8ab"}},{"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": 87,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "ddea5c1b1f62301db654dfcfa332171e",
"_score": 1300.0,
"_source": {
"id": "ddea5c1b1f62301db654dfcfa332171e",
"autoIncrement": 123864.0
},
"fields": {
"displayGroup": [
"1692d39c2e91370dbfd0bd185615e683"
]
},
"sort": [
0,
1300.0,
0,
123864,
"ddea5c1b1f62301db654dfcfa332171e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "995fddf61fe5c7e4da8937197e56c305",
"_score": 1300.0,
"_source": {
"id": "995fddf61fe5c7e4da8937197e56c305",
"autoIncrement": 123863.0
},
"fields": {
"displayGroup": [
"7f5d86d9a654d839d2094ae2e092353c"
]
},
"sort": [
0,
1300.0,
0,
123863,
"995fddf61fe5c7e4da8937197e56c305"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "41f913935b3e22b789e30b4876fb08f0",
"_score": 1300.0,
"_source": {
"id": "41f913935b3e22b789e30b4876fb08f0",
"autoIncrement": 123862.0
},
"fields": {
"displayGroup": [
"e3f9d767d3aea23530ac7dccbeb0b3bf"
]
},
"sort": [
0,
1300.0,
0,
123862,
"41f913935b3e22b789e30b4876fb08f0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6dc5e871726000b8420855fc94e05374",
"_score": 1300.0,
"_source": {
"id": "6dc5e871726000b8420855fc94e05374",
"autoIncrement": 123861.0
},
"fields": {
"displayGroup": [
"852945f1a5c95f02dda49b8fe5e7e9e0"
]
},
"sort": [
0,
1300.0,
0,
123861,
"6dc5e871726000b8420855fc94e05374"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3566b3081b865ad2bb330e45a9706d23",
"_score": 1300.0,
"_source": {
"id": "3566b3081b865ad2bb330e45a9706d23",
"autoIncrement": 123860.0
},
"fields": {
"displayGroup": [
"86cb77d41259381e6f4c648445810d0d"
]
},
"sort": [
0,
1300.0,
0,
123860,
"3566b3081b865ad2bb330e45a9706d23"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dadaa762d4a2ac20ce3168143559a566",
"_score": 1300.0,
"_source": {
"id": "dadaa762d4a2ac20ce3168143559a566",
"autoIncrement": 123859.0
},
"fields": {
"displayGroup": [
"7a9914b78a949c1f9c42f85d69657ec2"
]
},
"sort": [
0,
1300.0,
0,
123859,
"dadaa762d4a2ac20ce3168143559a566"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "24ed898e72b3d2450c022e4a0f5c8fb2",
"_score": 1300.0,
"_source": {
"id": "24ed898e72b3d2450c022e4a0f5c8fb2",
"autoIncrement": 123858.0
},
"fields": {
"displayGroup": [
"0d2cdfd016356fff387e28c6efb18ede"
]
},
"sort": [
0,
1300.0,
0,
123858,
"24ed898e72b3d2450c022e4a0f5c8fb2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9ea6de7d2b030f084205b83bc8511acb",
"_score": 1300.0,
"_source": {
"id": "9ea6de7d2b030f084205b83bc8511acb",
"autoIncrement": 123857.0
},
"fields": {
"displayGroup": [
"e74e8ddecd13b13c3224805d3c49370d"
]
},
"sort": [
0,
1300.0,
0,
123857,
"9ea6de7d2b030f084205b83bc8511acb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f4fcc9545e87137033a290a263f5ff09",
"_score": 1300.0,
"_source": {
"id": "f4fcc9545e87137033a290a263f5ff09",
"autoIncrement": 123856.0
},
"fields": {
"displayGroup": [
"bb20fa75b3a5474ebed5381a40f5cc11"
]
},
"sort": [
0,
1300.0,
0,
123856,
"f4fcc9545e87137033a290a263f5ff09"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f397db2711303c01c0ed91fd372557b1",
"_score": 1300.0,
"_source": {
"id": "f397db2711303c01c0ed91fd372557b1",
"autoIncrement": 81780.0
},
"fields": {
"displayGroup": [
"8abb199e2af1ce054243b8041c035f60"
]
},
"sort": [
0,
1300.0,
0,
81780,
"f397db2711303c01c0ed91fd372557b1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "39b6e5473f8bd0e7686fd12519d02919",
"_score": 1300.0,
"_source": {
"id": "39b6e5473f8bd0e7686fd12519d02919",
"autoIncrement": 81779.0
},
"fields": {
"displayGroup": [
"05105fa58fac2d65a8ecd96b75f50143"
]
},
"sort": [
0,
1300.0,
0,
81779,
"39b6e5473f8bd0e7686fd12519d02919"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5d10748da68595fa0987532c1a4bbd71",
"_score": 1300.0,
"_source": {
"id": "5d10748da68595fa0987532c1a4bbd71",
"autoIncrement": 81778.0
},
"fields": {
"displayGroup": [
"edf860dba7d7521b4c789c66e3a918a8"
]
},
"sort": [
0,
1300.0,
0,
81778,
"5d10748da68595fa0987532c1a4bbd71"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c29ba8c303aa0eef34979f28f9a6907f",
"_score": 1300.0,
"_source": {
"id": "c29ba8c303aa0eef34979f28f9a6907f",
"autoIncrement": 81777.0
},
"fields": {
"displayGroup": [
"f2a6516795e4f6b4e8b030345e70467e"
]
},
"sort": [
0,
1300.0,
0,
81777,
"c29ba8c303aa0eef34979f28f9a6907f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6044c1bfa8703519ca4f420897e45650",
"_score": 1300.0,
"_source": {
"id": "6044c1bfa8703519ca4f420897e45650",
"autoIncrement": 81776.0
},
"fields": {
"displayGroup": [
"d5b3339afdfdf27e75c05e6d67e464ec"
]
},
"sort": [
0,
1300.0,
0,
81776,
"6044c1bfa8703519ca4f420897e45650"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5edffde394606fee2e5e9b50c1d94b43",
"_score": 1300.0,
"_source": {
"id": "5edffde394606fee2e5e9b50c1d94b43",
"autoIncrement": 81775.0
},
"fields": {
"displayGroup": [
"002e03df8a18ee96411c0d90013d8c04"
]
},
"sort": [
0,
1300.0,
0,
81775,
"5edffde394606fee2e5e9b50c1d94b43"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3c2f57365ff260becda7b1a139c244bf",
"_score": 1300.0,
"_source": {
"id": "3c2f57365ff260becda7b1a139c244bf",
"autoIncrement": 81774.0
},
"fields": {
"displayGroup": [
"ed50634305b3c57fe6caa3639052643b"
]
},
"sort": [
0,
1300.0,
0,
81774,
"3c2f57365ff260becda7b1a139c244bf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "439f31f228333f7f96c71af88d8fd5c2",
"_score": 1300.0,
"_source": {
"id": "439f31f228333f7f96c71af88d8fd5c2",
"autoIncrement": 81773.0
},
"fields": {
"displayGroup": [
"82ea54ef5e01f98d1dc65e16ee452bf1"
]
},
"sort": [
0,
1300.0,
0,
81773,
"439f31f228333f7f96c71af88d8fd5c2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dcd0aa739f98d3806122d0b942a54612",
"_score": 1300.0,
"_source": {
"id": "dcd0aa739f98d3806122d0b942a54612",
"autoIncrement": 81772.0
},
"fields": {
"displayGroup": [
"36cb71c3b3f233deea9352afae0513da"
]
},
"sort": [
0,
1300.0,
0,
81772,
"dcd0aa739f98d3806122d0b942a54612"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b01b356a52454eb3bfb9d480175efba3",
"_score": 1300.0,
"_source": {
"id": "b01b356a52454eb3bfb9d480175efba3",
"autoIncrement": 81771.0
},
"fields": {
"displayGroup": [
"3db6e233438bb862ffb4169cbc81a27c"
]
},
"sort": [
0,
1300.0,
0,
81771,
"b01b356a52454eb3bfb9d480175efba3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6bb58893b633aad8fbb8f6cc4204b970",
"_score": 1300.0,
"_source": {
"id": "6bb58893b633aad8fbb8f6cc4204b970",
"autoIncrement": 81770.0
},
"fields": {
"displayGroup": [
"1ad76fd56fe182edcad36e67b361d9fd"
]
},
"sort": [
0,
1300.0,
0,
81770,
"6bb58893b633aad8fbb8f6cc4204b970"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0d584cab2ac1eb2f7ced77956b3d4dd3",
"_score": 1300.0,
"_source": {
"id": "0d584cab2ac1eb2f7ced77956b3d4dd3",
"autoIncrement": 81769.0
},
"fields": {
"displayGroup": [
"434955e34e591bc9803e773b837290c8"
]
},
"sort": [
0,
1300.0,
0,
81769,
"0d584cab2ac1eb2f7ced77956b3d4dd3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "006eeda48f74b32c4066d0884bf0328e",
"_score": 1300.0,
"_source": {
"id": "006eeda48f74b32c4066d0884bf0328e",
"autoIncrement": 81768.0
},
"fields": {
"displayGroup": [
"f70beaa9498072e1aabed5fb4720a0fb"
]
},
"sort": [
0,
1300.0,
0,
81768,
"006eeda48f74b32c4066d0884bf0328e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2ffc5cc6b520db00931a1490e59fae6f",
"_score": 1300.0,
"_source": {
"id": "2ffc5cc6b520db00931a1490e59fae6f",
"autoIncrement": 81767.0
},
"fields": {
"displayGroup": [
"ebe7e0a4ae823ebed1e6b8cefab8227f"
]
},
"sort": [
0,
1300.0,
0,
81767,
"2ffc5cc6b520db00931a1490e59fae6f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "59c45c6c9a5a32a1912eea10456d4118",
"_score": 1300.0,
"_source": {
"id": "59c45c6c9a5a32a1912eea10456d4118",
"autoIncrement": 81766.0
},
"fields": {
"displayGroup": [
"2f3c566be1b1f83bedb8e76df73d96a1"
]
},
"sort": [
0,
1300.0,
0,
81766,
"59c45c6c9a5a32a1912eea10456d4118"
]
}
]
},
"aggregations": {
"total-count": {
"value": 87
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
4.91 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":"41dcd6c01bb81c63b7c948a2e5ebc8ab"}},{"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-bodenausfuehrung":{"composite":{"sources":[{"multi-bodenausfuehrung.sorting":{"terms":{"field":"attribute_bodenausfuehrung","order":"ASC"}}},{"multi-bodenausfuehrung.key":{"terms":{"field":"attribute_bodenausfuehrung"}}}],"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": "41dcd6c01bb81c63b7c948a2e5ebc8ab"
}
},
{
"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-bodenausfuehrung": {
"composite": {
"sources": [
{
"multi-bodenausfuehrung.sorting": {
"terms": {
"field": "attribute_bodenausfuehrung",
"order": "ASC"
}
}
},
{
"multi-bodenausfuehrung.key": {
"terms": {
"field": "attribute_bodenausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 87,
"min": 1527.0,
"max": 23107.0,
"avg": 6682.35632183908,
"sum": 581365.0
},
"rating-exists": {
"doc_count": 87,
"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": "c884e5c4f25a29a8d955ea476772c02c",
"manufacturer-count-filter.key": "c884e5c4f25a29a8d955ea476772c02c"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "c884e5c4f25a29a8d955ea476772c02c",
"manufacturer-count-filter.key": "c884e5c4f25a29a8d955ea476772c02c"
},
"doc_count": 87
}
]
},
"bool-reduced": {
"doc_count": 1,
"bool-reduced": {
"value": 1
}
},
"width": {
"count": 87,
"min": 1290.0,
"max": 5940.0,
"avg": 3587.1264367816093,
"sum": 312080.0
},
"width-stats": {
"doc_count": 87,
"width-stats": {
"count": 87,
"min": 1290.0,
"max": 5940.0,
"avg": 3587.1264367816093,
"sum": 312080.0
}
},
"height": {
"count": 87,
"min": 1300.0,
"max": 2365.0,
"avg": 2048.1609195402298,
"sum": 178190.0
},
"height-stats": {
"doc_count": 87,
"height-stats": {
"count": 87,
"min": 1300.0,
"max": 2365.0,
"avg": 2048.1609195402298,
"sum": 178190.0
}
},
"tiefe": {
"count": 87,
"min": 855.0,
"max": 6350.0,
"avg": 3209.1954022988507,
"sum": 279200.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Material-Lagerdepots",
"multi-typModel.key": "Material-Lagerdepots"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Material-Lagercontainer",
"multi-typModel.key": "Material-Lagercontainer"
},
"doc_count": 81
},
{
"key": {
"multi-typModel.sorting": "Material-Lagerdepots",
"multi-typModel.key": "Material-Lagerdepots"
},
"doc_count": 6
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 9002 grauwei\u00df",
"multi-farbe.key": "RAL 9002 grauwei\u00df"
},
"doc_count": 24
},
{
"key": {
"multi-farbe.sorting": "nach Vorgabe",
"multi-farbe.key": "nach Vorgabe"
},
"doc_count": 12
},
{
"key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"doc_count": 51
}
]
},
"multi-bodenausfuehrung": {
"buckets": []
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 87
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "c884e5c4f25a29a8d955ea476772c02c",
"doc_count": 87
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|