| 1 |
15.54 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":"07b459106e817025ff7c0577bed18344"}},{"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":48,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 106,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "173bdc7727307a57379890e6d6c4e650",
"_score": 1100.0,
"_source": {
"id": "173bdc7727307a57379890e6d6c4e650",
"autoIncrement": 44872.0
},
"fields": {
"displayGroup": [
"ba6625af864f871d8e8066159690d3ab"
]
},
"sort": [
0,
1100.0,
0,
44872,
"173bdc7727307a57379890e6d6c4e650"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "56151a909def29087ccb72a3e54a7bc7",
"_score": 1100.0,
"_source": {
"id": "56151a909def29087ccb72a3e54a7bc7",
"autoIncrement": 44871.0
},
"fields": {
"displayGroup": [
"8f182a05058222aef14839a74750309f"
]
},
"sort": [
0,
1100.0,
0,
44871,
"56151a909def29087ccb72a3e54a7bc7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4eedf0625dbff120cc69eff8dc70145b",
"_score": 1100.0,
"_source": {
"id": "4eedf0625dbff120cc69eff8dc70145b",
"autoIncrement": 44575.0
},
"fields": {
"displayGroup": [
"8450a27ecb1ee3f86778626a21c7670d"
]
},
"sort": [
0,
1100.0,
0,
44575,
"4eedf0625dbff120cc69eff8dc70145b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "693c76ed9dc749b1c659d8ec5e925f1a",
"_score": 1100.0,
"_source": {
"id": "693c76ed9dc749b1c659d8ec5e925f1a",
"autoIncrement": 44574.0
},
"fields": {
"displayGroup": [
"36419ddc4b35ef71b1dc0bf3b3aa3497"
]
},
"sort": [
0,
1100.0,
0,
44574,
"693c76ed9dc749b1c659d8ec5e925f1a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "372e70fb846f0eee50004bfc4690499c",
"_score": 1100.0,
"_source": {
"id": "372e70fb846f0eee50004bfc4690499c",
"autoIncrement": 44573.0
},
"fields": {
"displayGroup": [
"db5354570dec68d5015ae99d09e85059"
]
},
"sort": [
0,
1100.0,
0,
44573,
"372e70fb846f0eee50004bfc4690499c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "568f3abaceff2486ac2c1be2fc9616a1",
"_score": 1100.0,
"_source": {
"id": "568f3abaceff2486ac2c1be2fc9616a1",
"autoIncrement": 44572.0
},
"fields": {
"displayGroup": [
"88e6155f37c3d5c80f43fc143bef4ce5"
]
},
"sort": [
0,
1100.0,
0,
44572,
"568f3abaceff2486ac2c1be2fc9616a1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "419bc590838f67f769ace1a9d9ef2090",
"_score": 1100.0,
"_source": {
"id": "419bc590838f67f769ace1a9d9ef2090",
"autoIncrement": 44571.0
},
"fields": {
"displayGroup": [
"dd99bf78f31c6aeb7ab412c74857ef5e"
]
},
"sort": [
0,
1100.0,
0,
44571,
"419bc590838f67f769ace1a9d9ef2090"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0ab404c91d2659a2cecfb923f70da104",
"_score": 1100.0,
"_source": {
"id": "0ab404c91d2659a2cecfb923f70da104",
"autoIncrement": 44570.0
},
"fields": {
"displayGroup": [
"122252f7cc4327e895219fbd99e02a1f"
]
},
"sort": [
0,
1100.0,
0,
44570,
"0ab404c91d2659a2cecfb923f70da104"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7ddb2cc77c7c4d9ed2620ea2f0d7382c",
"_score": 1100.0,
"_source": {
"id": "7ddb2cc77c7c4d9ed2620ea2f0d7382c",
"autoIncrement": 44569.0
},
"fields": {
"displayGroup": [
"e6e45f60be1255afb2ef331881d1f6c6"
]
},
"sort": [
0,
1100.0,
0,
44569,
"7ddb2cc77c7c4d9ed2620ea2f0d7382c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "df73800d3e402c3d006091a1181821ed",
"_score": 1100.0,
"_source": {
"id": "df73800d3e402c3d006091a1181821ed",
"autoIncrement": 44566.0
},
"fields": {
"displayGroup": [
"ccb799f5626c2f22e967b703b739ea66"
]
},
"sort": [
0,
1100.0,
0,
44566,
"df73800d3e402c3d006091a1181821ed"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "651471b56f1df17a897cebf3ac017330",
"_score": 1100.0,
"_source": {
"id": "651471b56f1df17a897cebf3ac017330",
"autoIncrement": 44407.0
},
"fields": {
"displayGroup": [
"2e29e461e9eeb0d07c7026eb1ac48e27"
]
},
"sort": [
0,
1100.0,
0,
44407,
"651471b56f1df17a897cebf3ac017330"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "53f901e8beb9811b2bb37ed45f4e9f8f",
"_score": 1100.0,
"_source": {
"id": "53f901e8beb9811b2bb37ed45f4e9f8f",
"autoIncrement": 44406.0
},
"fields": {
"displayGroup": [
"fe147bab186963057719154a16129d37"
]
},
"sort": [
0,
1100.0,
0,
44406,
"53f901e8beb9811b2bb37ed45f4e9f8f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a97e69066ae9dbdea7534000a4c9cffa",
"_score": 1100.0,
"_source": {
"id": "a97e69066ae9dbdea7534000a4c9cffa",
"autoIncrement": 44405.0
},
"fields": {
"displayGroup": [
"8363390210d0f592ce3bb4b1e1f42758"
]
},
"sort": [
0,
1100.0,
0,
44405,
"a97e69066ae9dbdea7534000a4c9cffa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6d1c39c1a529731305ca1770046b37a7",
"_score": 1100.0,
"_source": {
"id": "6d1c39c1a529731305ca1770046b37a7",
"autoIncrement": 44404.0
},
"fields": {
"displayGroup": [
"e7b9c7fcbb074564408647c3d0b162dc"
]
},
"sort": [
0,
1100.0,
0,
44404,
"6d1c39c1a529731305ca1770046b37a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "47b429ee0fc91fb5a4ae90afe476655e",
"_score": 1100.0,
"_source": {
"id": "47b429ee0fc91fb5a4ae90afe476655e",
"autoIncrement": 44403.0
},
"fields": {
"displayGroup": [
"d2b7c1da7e83cdd44ecb47230d1df851"
]
},
"sort": [
0,
1100.0,
0,
44403,
"47b429ee0fc91fb5a4ae90afe476655e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8dad52f15f8d3ef18d432b0404110192",
"_score": 1100.0,
"_source": {
"id": "8dad52f15f8d3ef18d432b0404110192",
"autoIncrement": 44402.0
},
"fields": {
"displayGroup": [
"31cde3824c584fd5fac58503b28824a4"
]
},
"sort": [
0,
1100.0,
0,
44402,
"8dad52f15f8d3ef18d432b0404110192"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9a2a1212678dddc139c502c94920906c",
"_score": 1100.0,
"_source": {
"id": "9a2a1212678dddc139c502c94920906c",
"autoIncrement": 44337.0
},
"fields": {
"displayGroup": [
"d8aa01fb1aa330843277ca1ac1cd67ee"
]
},
"sort": [
0,
1100.0,
0,
44337,
"9a2a1212678dddc139c502c94920906c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f37a253f18f638087aabd4f16c2153a2",
"_score": 1100.0,
"_source": {
"id": "f37a253f18f638087aabd4f16c2153a2",
"autoIncrement": 44336.0
},
"fields": {
"displayGroup": [
"0aa8d74252a1b663fda3c13a4226f3a4"
]
},
"sort": [
0,
1100.0,
0,
44336,
"f37a253f18f638087aabd4f16c2153a2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d1c8df9a7cf3453de08ccc7997a4c6e6",
"_score": 1100.0,
"_source": {
"id": "d1c8df9a7cf3453de08ccc7997a4c6e6",
"autoIncrement": 44335.0
},
"fields": {
"displayGroup": [
"8291cae0613b1a82762560b7add016f4"
]
},
"sort": [
0,
1100.0,
0,
44335,
"d1c8df9a7cf3453de08ccc7997a4c6e6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8d3cd38c986555f80943935ee954d3a0",
"_score": 1100.0,
"_source": {
"id": "8d3cd38c986555f80943935ee954d3a0",
"autoIncrement": 44268.0
},
"fields": {
"displayGroup": [
"9c2333af2401469fba6ca8b9884eb170"
]
},
"sort": [
0,
1100.0,
0,
44268,
"8d3cd38c986555f80943935ee954d3a0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "15c644ed2ac03d3b6933052f86b6ba5b",
"_score": 1100.0,
"_source": {
"id": "15c644ed2ac03d3b6933052f86b6ba5b",
"autoIncrement": 44267.0
},
"fields": {
"displayGroup": [
"f5d1bb579d7058f781ee1fa9a8d63e28"
]
},
"sort": [
0,
1100.0,
0,
44267,
"15c644ed2ac03d3b6933052f86b6ba5b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "27adabf49aa495a230763f403a6f3028",
"_score": 1100.0,
"_source": {
"id": "27adabf49aa495a230763f403a6f3028",
"autoIncrement": 44253.0
},
"fields": {
"displayGroup": [
"ec44c79d3b383e162a6a29703d69e268"
]
},
"sort": [
0,
1100.0,
0,
44253,
"27adabf49aa495a230763f403a6f3028"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4078d50001d71dc5d350f86485991af6",
"_score": 1100.0,
"_source": {
"id": "4078d50001d71dc5d350f86485991af6",
"autoIncrement": 44252.0
},
"fields": {
"displayGroup": [
"21374085f29f4f7e2147a7194112b8f5"
]
},
"sort": [
0,
1100.0,
0,
44252,
"4078d50001d71dc5d350f86485991af6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b288830dead09e9b8d141215bacfeb73",
"_score": 1100.0,
"_source": {
"id": "b288830dead09e9b8d141215bacfeb73",
"autoIncrement": 44251.0
},
"fields": {
"displayGroup": [
"7f1a79eec987185c348d037fb27535e8"
]
},
"sort": [
0,
1100.0,
0,
44251,
"b288830dead09e9b8d141215bacfeb73"
]
}
]
},
"aggregations": {
"total-count": {
"value": 106
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.80 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":"07b459106e817025ff7c0577bed18344"}},{"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-materialBehaelter":{"composite":{"sources":[{"multi-materialBehaelter.sorting":{"terms":{"field":"attribute_materialBehaelter","order":"ASC"}}},{"multi-materialBehaelter.key":{"terms":{"field":"attribute_materialBehaelter"}}}],"size":"99999"}},"multi-behaelterfarbe":{"composite":{"sources":[{"multi-behaelterfarbe.sorting":{"terms":{"field":"attribute_behaelterfarbe","order":"ASC"}}},{"multi-behaelterfarbe.key":{"terms":{"field":"attribute_behaelterfarbe"}}}],"size":"99999"}},"range-behaeltervolumen":{"stats":{"field":"attribute_behaeltervolumen"}},"range-gewichtCa":{"stats":{"field":"attribute_gewichtCa"}},"bool-deckel":{"filter":{"term":{"attribute_deckel":"true"}},"aggregations":{"bool-deckel-count":{"value_count":{"field":"id"}}}},"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": "07b459106e817025ff7c0577bed18344"
}
},
{
"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-materialBehaelter": {
"composite": {
"sources": [
{
"multi-materialBehaelter.sorting": {
"terms": {
"field": "attribute_materialBehaelter",
"order": "ASC"
}
}
},
{
"multi-materialBehaelter.key": {
"terms": {
"field": "attribute_materialBehaelter"
}
}
}
],
"size": "99999"
}
},
"multi-behaelterfarbe": {
"composite": {
"sources": [
{
"multi-behaelterfarbe.sorting": {
"terms": {
"field": "attribute_behaelterfarbe",
"order": "ASC"
}
}
},
{
"multi-behaelterfarbe.key": {
"terms": {
"field": "attribute_behaelterfarbe"
}
}
}
],
"size": "99999"
}
},
"range-behaeltervolumen": {
"stats": {
"field": "attribute_behaeltervolumen"
}
},
"range-gewichtCa": {
"stats": {
"field": "attribute_gewichtCa"
}
},
"bool-deckel": {
"filter": {
"term": {
"attribute_deckel": "true"
}
},
"aggregations": {
"bool-deckel-count": {
"value_count": {
"field": "id"
}
}
}
},
"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": 106,
"min": 0.0,
"max": 849.0,
"avg": 323.97169811320754,
"sum": 34341.0
},
"rating-exists": {
"doc_count": 106,
"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": "e1330782b3097373dd5b64609bbdc363",
"manufacturer-count-filter.key": "e1330782b3097373dd5b64609bbdc363"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "002101f8725e5c78d9f30d87f3fa4c87",
"manufacturer-count-filter.key": "002101f8725e5c78d9f30d87f3fa4c87"
},
"doc_count": 27
},
{
"key": {
"manufacturer-count-filter.sorting": "3bb7d1a75e4b1caaecfd4c5223b756f7",
"manufacturer-count-filter.key": "3bb7d1a75e4b1caaecfd4c5223b756f7"
},
"doc_count": 3
},
{
"key": {
"manufacturer-count-filter.sorting": "e1330782b3097373dd5b64609bbdc363",
"manufacturer-count-filter.key": "e1330782b3097373dd5b64609bbdc363"
},
"doc_count": 16
}
]
},
"bool-reduced": {
"doc_count": 4,
"bool-reduced": {
"value": 4
}
},
"width": {
"count": 92,
"min": 124.0,
"max": 2160.0,
"avg": 1086.1304347826087,
"sum": 99924.0
},
"width-stats": {
"doc_count": 92,
"width-stats": {
"count": 92,
"min": 124.0,
"max": 2160.0,
"avg": 1086.1304347826087,
"sum": 99924.0
}
},
"height": {
"count": 92,
"min": 97.0,
"max": 1180.0,
"avg": 629.1847826086956,
"sum": 57885.0
},
"height-stats": {
"doc_count": 92,
"height-stats": {
"count": 92,
"min": 97.0,
"max": 1180.0,
"avg": 629.1847826086956,
"sum": 57885.0
}
},
"tiefe": {
"count": 79,
"min": 84.0,
"max": 1000.0,
"avg": 738.0886075949367,
"sum": 58309.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Stapelbeh\u00e4lter",
"multi-typModel.key": "Stapelbeh\u00e4lter"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Gitterboxen",
"multi-typModel.key": "Gitterboxen"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Palettenboxen",
"multi-typModel.key": "Palettenboxen"
},
"doc_count": 66
},
{
"key": {
"multi-typModel.sorting": "Stapelbeh\u00e4lter",
"multi-typModel.key": "Stapelbeh\u00e4lter"
},
"doc_count": 37
}
]
},
"multi-materialBehaelter": {
"buckets": []
},
"multi-behaelterfarbe": {
"buckets": []
},
"range-behaeltervolumen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"range-gewichtCa": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"bool-deckel": {
"doc_count": 4,
"bool-deckel-count": {
"value": 4
}
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "002101f8725e5c78d9f30d87f3fa4c87",
"doc_count": 27
},
{
"key": "e1330782b3097373dd5b64609bbdc363",
"doc_count": 16
},
{
"key": "3bb7d1a75e4b1caaecfd4c5223b756f7",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|