| 1 |
18.39 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":"e6cdc23a13dda43e4083d66bd1b40194"}},{"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": 5,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 34,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "dddc5e896eaf4a65e59fd108fc860f03",
"_score": 1100.0,
"_source": {
"id": "dddc5e896eaf4a65e59fd108fc860f03",
"autoIncrement": 135271.0
},
"fields": {
"displayGroup": [
"f2ba58256a5c09ea05b34a104c251c2a"
]
},
"sort": [
95,
1100.0,
0,
135271,
"dddc5e896eaf4a65e59fd108fc860f03"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0475275715154d21cfcbcddddedbba64",
"_score": 1100.0,
"_source": {
"id": "0475275715154d21cfcbcddddedbba64",
"autoIncrement": 135269.0
},
"fields": {
"displayGroup": [
"1d3d864972432ca089f5271b7c50fd42"
]
},
"sort": [
94,
1100.0,
0,
135269,
"0475275715154d21cfcbcddddedbba64"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "43dce28ebbfd072164a356430845ef0e",
"_score": 1100.0,
"_source": {
"id": "43dce28ebbfd072164a356430845ef0e",
"autoIncrement": 146781.0
},
"fields": {
"displayGroup": [
"dbe700530ba5f012085586c2dedb0260"
]
},
"sort": [
0,
1100.0,
0,
146781,
"43dce28ebbfd072164a356430845ef0e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e39e0afde9b9e90caae6ea234bb608e0",
"_score": 1100.0,
"_source": {
"id": "e39e0afde9b9e90caae6ea234bb608e0",
"autoIncrement": 146780.0
},
"fields": {
"displayGroup": [
"1a43e4c82fcef931fd3a37661dbabfbd"
]
},
"sort": [
0,
1100.0,
0,
146780,
"e39e0afde9b9e90caae6ea234bb608e0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "602bbde90ec7189ce35db5e787529604",
"_score": 1100.0,
"_source": {
"id": "602bbde90ec7189ce35db5e787529604",
"autoIncrement": 139432.0
},
"fields": {
"displayGroup": [
"3cfabac3a87cd09fd785e9b524162fed"
]
},
"sort": [
0,
1100.0,
0,
139432,
"602bbde90ec7189ce35db5e787529604"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8cd5c30e21c9b06df94833c5d89d4ee6",
"_score": 1100.0,
"_source": {
"id": "8cd5c30e21c9b06df94833c5d89d4ee6",
"autoIncrement": 136933.0
},
"fields": {
"displayGroup": [
"b0e37520c580ccfe087dd711ad53ab6f"
]
},
"sort": [
0,
1100.0,
0,
136933,
"8cd5c30e21c9b06df94833c5d89d4ee6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4d8c995080e18ee7f4183eecfe4c716d",
"_score": 1100.0,
"_source": {
"id": "4d8c995080e18ee7f4183eecfe4c716d",
"autoIncrement": 136837.0
},
"fields": {
"displayGroup": [
"08c063c95240fa15be29fb5b7f9f0923"
]
},
"sort": [
0,
1100.0,
0,
136837,
"4d8c995080e18ee7f4183eecfe4c716d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3c1f61f6af269eb1fe8b257f989270b2",
"_score": 1100.0,
"_source": {
"id": "3c1f61f6af269eb1fe8b257f989270b2",
"autoIncrement": 135260.0
},
"fields": {
"displayGroup": [
"18cff5a9891a59560edf9be75d4479f5"
]
},
"sort": [
0,
1100.0,
0,
135260,
"3c1f61f6af269eb1fe8b257f989270b2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1af5260641f80e474903402a3744dfb8",
"_score": 1100.0,
"_source": {
"id": "1af5260641f80e474903402a3744dfb8",
"autoIncrement": 135258.0
},
"fields": {
"displayGroup": [
"18045680faff5c73c69dfa310d19c8cd"
]
},
"sort": [
0,
1100.0,
0,
135258,
"1af5260641f80e474903402a3744dfb8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a05ab3d293d00e15919910714c2d9ced",
"_score": 1100.0,
"_source": {
"id": "a05ab3d293d00e15919910714c2d9ced",
"autoIncrement": 135257.0
},
"fields": {
"displayGroup": [
"f26c1409496b9d4c978de834cc2a8ce3"
]
},
"sort": [
0,
1100.0,
0,
135257,
"a05ab3d293d00e15919910714c2d9ced"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "986e4067aa8ec1abda5baa98277ae0de",
"_score": 1100.0,
"_source": {
"id": "986e4067aa8ec1abda5baa98277ae0de",
"autoIncrement": 135256.0
},
"fields": {
"displayGroup": [
"2c7cc6896a84a493e06f02dfd0300578"
]
},
"sort": [
0,
1100.0,
0,
135256,
"986e4067aa8ec1abda5baa98277ae0de"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e922b417bdd6ffe952bc4bf94ff7f266",
"_score": 1100.0,
"_source": {
"id": "e922b417bdd6ffe952bc4bf94ff7f266",
"autoIncrement": 135255.0
},
"fields": {
"displayGroup": [
"6c52850502ab51df7f7e4f4a2ddd3994"
]
},
"sort": [
0,
1100.0,
0,
135255,
"e922b417bdd6ffe952bc4bf94ff7f266"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c262d40048001a05d66719a5f6ba3b27",
"_score": 1100.0,
"_source": {
"id": "c262d40048001a05d66719a5f6ba3b27",
"autoIncrement": 135254.0
},
"fields": {
"displayGroup": [
"d534c461f723f3b337d6fc89053b2dd1"
]
},
"sort": [
0,
1100.0,
0,
135254,
"c262d40048001a05d66719a5f6ba3b27"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "19b9e67c7028ca45e0c17eedbd624fb1",
"_score": 1100.0,
"_source": {
"id": "19b9e67c7028ca45e0c17eedbd624fb1",
"autoIncrement": 135253.0
},
"fields": {
"displayGroup": [
"ecb167b18b142545826ce310c7f2b070"
]
},
"sort": [
0,
1100.0,
0,
135253,
"19b9e67c7028ca45e0c17eedbd624fb1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ceee96e85e0ed1672c4e304b06d76d70",
"_score": 1100.0,
"_source": {
"id": "ceee96e85e0ed1672c4e304b06d76d70",
"autoIncrement": 135252.0
},
"fields": {
"displayGroup": [
"b537c3a586025e6f9503ca2e4972780b"
]
},
"sort": [
0,
1100.0,
0,
135252,
"ceee96e85e0ed1672c4e304b06d76d70"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e31b6b91cf7659033a6c175156c508a0",
"_score": 1100.0,
"_source": {
"id": "e31b6b91cf7659033a6c175156c508a0",
"autoIncrement": 135250.0
},
"fields": {
"displayGroup": [
"43189cd398d1c45b185ed8346bfdc630"
]
},
"sort": [
0,
1100.0,
0,
135250,
"e31b6b91cf7659033a6c175156c508a0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4574925e62a708e97718efcf661f0203",
"_score": 1100.0,
"_source": {
"id": "4574925e62a708e97718efcf661f0203",
"autoIncrement": 135249.0
},
"fields": {
"displayGroup": [
"0abbe1f0c2955613c517f6eb9e095436"
]
},
"sort": [
0,
1100.0,
0,
135249,
"4574925e62a708e97718efcf661f0203"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "023b956c4603f8636e89ae6f60006d47",
"_score": 1100.0,
"_source": {
"id": "023b956c4603f8636e89ae6f60006d47",
"autoIncrement": 135248.0
},
"fields": {
"displayGroup": [
"ab75b2e0077c9b4bdf844082fb069b15"
]
},
"sort": [
0,
1100.0,
0,
135248,
"023b956c4603f8636e89ae6f60006d47"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "79073827ec59db9a5dfc857275c67b0c",
"_score": 1100.0,
"_source": {
"id": "79073827ec59db9a5dfc857275c67b0c",
"autoIncrement": 132477.0
},
"fields": {
"displayGroup": [
"2d323c67fda143f7ea7505f7730bf55f"
]
},
"sort": [
0,
1100.0,
0,
132477,
"79073827ec59db9a5dfc857275c67b0c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "380fdc642f07a8567ec2e0467af022e2",
"_score": 1100.0,
"_source": {
"id": "380fdc642f07a8567ec2e0467af022e2",
"autoIncrement": 131285.0
},
"fields": {
"displayGroup": [
"0c0d1ea431447a5132ee9cae307ee603"
]
},
"sort": [
0,
1100.0,
0,
131285,
"380fdc642f07a8567ec2e0467af022e2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b6ccc221b040e45bd0a61e57b97943a9",
"_score": 1100.0,
"_source": {
"id": "b6ccc221b040e45bd0a61e57b97943a9",
"autoIncrement": 130820.0
},
"fields": {
"displayGroup": [
"8dd0558be86d69f739fff4f82097bdc9"
]
},
"sort": [
0,
1100.0,
0,
130820,
"b6ccc221b040e45bd0a61e57b97943a9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c91eb0d1bac4665532d3fd1d66a6b591",
"_score": 1100.0,
"_source": {
"id": "c91eb0d1bac4665532d3fd1d66a6b591",
"autoIncrement": 121203.0
},
"fields": {
"displayGroup": [
"93e91d1630206ac6020f21dc1f37fc0d"
]
},
"sort": [
0,
1100.0,
0,
121203,
"c91eb0d1bac4665532d3fd1d66a6b591"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "af8b8f556807b032a2c2706372956b76",
"_score": 1100.0,
"_source": {
"id": "af8b8f556807b032a2c2706372956b76",
"autoIncrement": 119093.0
},
"fields": {
"displayGroup": [
"2f056235fa4509092a3b0bfe45bf8c13"
]
},
"sort": [
0,
1100.0,
0,
119093,
"af8b8f556807b032a2c2706372956b76"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3c05364e48f492a5144bbafe66fa2194",
"_score": 1100.0,
"_source": {
"id": "3c05364e48f492a5144bbafe66fa2194",
"autoIncrement": 119092.0
},
"fields": {
"displayGroup": [
"1ac38d5614d406eec572c47412934a09"
]
},
"sort": [
0,
1100.0,
0,
119092,
"3c05364e48f492a5144bbafe66fa2194"
]
}
]
},
"aggregations": {
"total-count": {
"value": 34
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
13.18 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":"e6cdc23a13dda43e4083d66bd1b40194"}},{"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-radabstand":{"composite":{"sources":[{"multi-radabstand.sorting":{"terms":{"field":"attribute_radabstand","order":"ASC"}}},{"multi-radabstand.key":{"terms":{"field":"attribute_radabstand"}}}],"size":"99999"}},"range-anzahlFahrradaufnahmen":{"stats":{"field":"attribute_anzahlFahrradaufnahmen"}},"multi-befestigungsart":{"composite":{"sources":[{"multi-befestigungsart.sorting":{"terms":{"field":"attribute_befestigungsart","order":"ASC"}}},{"multi-befestigungsart.key":{"terms":{"field":"attribute_befestigungsart"}}}],"size":"99999"}},"multi-material":{"composite":{"sources":[{"multi-material.sorting":{"terms":{"field":"attribute_material","order":"ASC"}}},{"multi-material.key":{"terms":{"field":"attribute_material"}}}],"size":"99999"}},"multi-aufnahmekapazitaet":{"composite":{"sources":[{"multi-aufnahmekapazitaet.sorting":{"terms":{"field":"attribute_aufnahmekapazitaet","order":"ASC"}}},{"multi-aufnahmekapazitaet.key":{"terms":{"field":"attribute_aufnahmekapazitaet"}}}],"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": "e6cdc23a13dda43e4083d66bd1b40194"
}
},
{
"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-radabstand": {
"composite": {
"sources": [
{
"multi-radabstand.sorting": {
"terms": {
"field": "attribute_radabstand",
"order": "ASC"
}
}
},
{
"multi-radabstand.key": {
"terms": {
"field": "attribute_radabstand"
}
}
}
],
"size": "99999"
}
},
"range-anzahlFahrradaufnahmen": {
"stats": {
"field": "attribute_anzahlFahrradaufnahmen"
}
},
"multi-befestigungsart": {
"composite": {
"sources": [
{
"multi-befestigungsart.sorting": {
"terms": {
"field": "attribute_befestigungsart",
"order": "ASC"
}
}
},
{
"multi-befestigungsart.key": {
"terms": {
"field": "attribute_befestigungsart"
}
}
}
],
"size": "99999"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"size": "99999"
}
},
"multi-aufnahmekapazitaet": {
"composite": {
"sources": [
{
"multi-aufnahmekapazitaet.sorting": {
"terms": {
"field": "attribute_aufnahmekapazitaet",
"order": "ASC"
}
}
},
{
"multi-aufnahmekapazitaet.key": {
"terms": {
"field": "attribute_aufnahmekapazitaet"
}
}
}
],
"size": "99999"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 7,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 34,
"min": 52.0,
"max": 822.0,
"avg": 302.21735294117644,
"sum": 10275.39
},
"rating-exists": {
"doc_count": 34,
"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": "ab6a2208365e18d40ae5310cd208c26e",
"manufacturer-count-filter.key": "ab6a2208365e18d40ae5310cd208c26e"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "18e6b17f5ea12a9dfb6ca9b1feb4755c",
"manufacturer-count-filter.key": "18e6b17f5ea12a9dfb6ca9b1feb4755c"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "ab6a2208365e18d40ae5310cd208c26e",
"manufacturer-count-filter.key": "ab6a2208365e18d40ae5310cd208c26e"
},
"doc_count": 26
}
]
},
"bool-reduced": {
"doc_count": 12,
"bool-reduced": {
"value": 12
}
},
"width": {
"count": 32,
"min": 180.0,
"max": 5570.0,
"avg": 1815.0,
"sum": 58080.0
},
"width-stats": {
"doc_count": 32,
"width-stats": {
"count": 32,
"min": 180.0,
"max": 5570.0,
"avg": 1815.0,
"sum": 58080.0
}
},
"height": {
"count": 16,
"min": 800.0,
"max": 1150.0,
"avg": 983.75,
"sum": 15740.0
},
"height-stats": {
"doc_count": 16,
"height-stats": {
"count": 16,
"min": 800.0,
"max": 1150.0,
"avg": 983.75,
"sum": 15740.0
}
},
"tiefe": {
"count": 11,
"min": 800.0,
"max": 800.0,
"avg": 800.0,
"sum": 8800.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Anlehnb\u00fcgel",
"multi-typModel.key": "Anlehnb\u00fcgel"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Anlehnb\u00fcgel",
"multi-typModel.key": "Anlehnb\u00fcgel"
},
"doc_count": 34
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "Edelstahl",
"multi-farbe.key": "Edelstahl"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "RAL 7016 Anthrazitgrau",
"multi-farbe.key": "RAL 7016 Anthrazitgrau"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "feuerverzinkt",
"multi-farbe.key": "feuerverzinkt"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"doc_count": 27
}
]
},
"multi-radabstand": {
"buckets": []
},
"range-anzahlFahrradaufnahmen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-befestigungsart": {
"after_key": {
"multi-befestigungsart.sorting": "zum Einbetonieren",
"multi-befestigungsart.key": "zum Einbetonieren"
},
"buckets": [
{
"key": {
"multi-befestigungsart.sorting": "Bodenbefestigung",
"multi-befestigungsart.key": "Bodenbefestigung"
},
"doc_count": 1
},
{
"key": {
"multi-befestigungsart.sorting": "Freie Aufstellung oder Bodenmontage",
"multi-befestigungsart.key": "Freie Aufstellung oder Bodenmontage"
},
"doc_count": 2
},
{
"key": {
"multi-befestigungsart.sorting": "zum Aufd\u00fcbeln",
"multi-befestigungsart.key": "zum Aufd\u00fcbeln"
},
"doc_count": 19
},
{
"key": {
"multi-befestigungsart.sorting": "zum Einbetonieren",
"multi-befestigungsart.key": "zum Einbetonieren"
},
"doc_count": 8
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahlrohr",
"multi-material.key": "Stahlrohr"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 28
},
{
"key": {
"multi-material.sorting": "Stahlrohr",
"multi-material.key": "Stahlrohr"
},
"doc_count": 2
}
]
},
"multi-aufnahmekapazitaet": {
"buckets": []
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "ab6a2208365e18d40ae5310cd208c26e",
"doc_count": 26
},
{
"key": "18e6b17f5ea12a9dfb6ca9b1feb4755c",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|