| 1 |
15.78 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":"c17ec2c17e92c5ab07439911654e9a4f"}},{"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": 72,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "8e82c3309f018f7f2da6cc523ae3ee69",
"_score": 1100.0,
"_source": {
"id": "8e82c3309f018f7f2da6cc523ae3ee69",
"autoIncrement": 171175.0
},
"fields": {
"displayGroup": [
"d8c57d6cf3521b9ae62e24b93eb86a4e"
]
},
"sort": [
0,
1100.0,
0,
171175,
"8e82c3309f018f7f2da6cc523ae3ee69"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d2e582a24606e80476c986ad8d1ea93d",
"_score": 1100.0,
"_source": {
"id": "d2e582a24606e80476c986ad8d1ea93d",
"autoIncrement": 147302.0
},
"fields": {
"displayGroup": [
"3de39f6ffb5666bb45c2d47a6a5b2ec7"
]
},
"sort": [
0,
1100.0,
0,
147302,
"d2e582a24606e80476c986ad8d1ea93d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a98ffd87ee8099ff455634aa9d14f33f",
"_score": 1100.0,
"_source": {
"id": "a98ffd87ee8099ff455634aa9d14f33f",
"autoIncrement": 147301.0
},
"fields": {
"displayGroup": [
"7b7298411d65d46e1464aa0081caf331"
]
},
"sort": [
0,
1100.0,
0,
147301,
"a98ffd87ee8099ff455634aa9d14f33f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9238a541c7782a6e9017582c6719a854",
"_score": 1100.0,
"_source": {
"id": "9238a541c7782a6e9017582c6719a854",
"autoIncrement": 147300.0
},
"fields": {
"displayGroup": [
"b517ffa2001a84427529deffda47040b"
]
},
"sort": [
0,
1100.0,
0,
147300,
"9238a541c7782a6e9017582c6719a854"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fcbcf70f8dbfbfac4bbcbf5c1b5bd2b9",
"_score": 1100.0,
"_source": {
"id": "fcbcf70f8dbfbfac4bbcbf5c1b5bd2b9",
"autoIncrement": 146779.0
},
"fields": {
"displayGroup": [
"493c282aa37d14f40d5e598538994d71"
]
},
"sort": [
0,
1100.0,
0,
146779,
"fcbcf70f8dbfbfac4bbcbf5c1b5bd2b9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "468020e375ffd7ed554ebbebd4a407d3",
"_score": 1100.0,
"_source": {
"id": "468020e375ffd7ed554ebbebd4a407d3",
"autoIncrement": 146778.0
},
"fields": {
"displayGroup": [
"67548e604aa5dbc787478e0131512298"
]
},
"sort": [
0,
1100.0,
0,
146778,
"468020e375ffd7ed554ebbebd4a407d3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f3e82c2519b6c76af1de1bdce3e99241",
"_score": 1100.0,
"_source": {
"id": "f3e82c2519b6c76af1de1bdce3e99241",
"autoIncrement": 146777.0
},
"fields": {
"displayGroup": [
"b40485c26330a04d904303df90005bbb"
]
},
"sort": [
0,
1100.0,
0,
146777,
"f3e82c2519b6c76af1de1bdce3e99241"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f3c154cecdd9dd516dd6e5988613bfd8",
"_score": 1100.0,
"_source": {
"id": "f3c154cecdd9dd516dd6e5988613bfd8",
"autoIncrement": 146776.0
},
"fields": {
"displayGroup": [
"1d0e097f344b5939cde418af197224e6"
]
},
"sort": [
0,
1100.0,
0,
146776,
"f3c154cecdd9dd516dd6e5988613bfd8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5c6b09d57847f058f85c4a2a02fd386b",
"_score": 1100.0,
"_source": {
"id": "5c6b09d57847f058f85c4a2a02fd386b",
"autoIncrement": 146775.0
},
"fields": {
"displayGroup": [
"6e723a5ba9c7af8a9575f96bbbdaa3f5"
]
},
"sort": [
0,
1100.0,
0,
146775,
"5c6b09d57847f058f85c4a2a02fd386b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b9a0c35a5ca9b7e8a0f855a05fb2ad68",
"_score": 1100.0,
"_source": {
"id": "b9a0c35a5ca9b7e8a0f855a05fb2ad68",
"autoIncrement": 146774.0
},
"fields": {
"displayGroup": [
"39c721f25d77256cbcfbf555f64750b0"
]
},
"sort": [
0,
1100.0,
0,
146774,
"b9a0c35a5ca9b7e8a0f855a05fb2ad68"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d916a6eb832693bd4e2f11f573fb0397",
"_score": 1100.0,
"_source": {
"id": "d916a6eb832693bd4e2f11f573fb0397",
"autoIncrement": 146773.0
},
"fields": {
"displayGroup": [
"ee8bd56869bd62e6c81591e34f37d178"
]
},
"sort": [
0,
1100.0,
0,
146773,
"d916a6eb832693bd4e2f11f573fb0397"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a430a6ee01a2993ea794d574c28819b6",
"_score": 1100.0,
"_source": {
"id": "a430a6ee01a2993ea794d574c28819b6",
"autoIncrement": 146772.0
},
"fields": {
"displayGroup": [
"c7486dc0ff1ffd0b7751158bdc8f076f"
]
},
"sort": [
0,
1100.0,
0,
146772,
"a430a6ee01a2993ea794d574c28819b6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ca85996585d24031aa8286e9f90b8fad",
"_score": 1100.0,
"_source": {
"id": "ca85996585d24031aa8286e9f90b8fad",
"autoIncrement": 146771.0
},
"fields": {
"displayGroup": [
"3483f4d552e06202c7c375e8615b3fb3"
]
},
"sort": [
0,
1100.0,
0,
146771,
"ca85996585d24031aa8286e9f90b8fad"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4981640015e0c59c3f3aa5e05106009b",
"_score": 1100.0,
"_source": {
"id": "4981640015e0c59c3f3aa5e05106009b",
"autoIncrement": 146770.0
},
"fields": {
"displayGroup": [
"b94d8c29f52079f78d2f71c66a0689ba"
]
},
"sort": [
0,
1100.0,
0,
146770,
"4981640015e0c59c3f3aa5e05106009b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9cc654146f3feaf0d198d169d25072f3",
"_score": 1100.0,
"_source": {
"id": "9cc654146f3feaf0d198d169d25072f3",
"autoIncrement": 146769.0
},
"fields": {
"displayGroup": [
"b6a2e8dbd1aff5383d24c6566aff738e"
]
},
"sort": [
0,
1100.0,
0,
146769,
"9cc654146f3feaf0d198d169d25072f3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6000bafc321839844ca8ca96e4d03a4c",
"_score": 1100.0,
"_source": {
"id": "6000bafc321839844ca8ca96e4d03a4c",
"autoIncrement": 146768.0
},
"fields": {
"displayGroup": [
"d8789add98fe3e3e7b829d1523415515"
]
},
"sort": [
0,
1100.0,
0,
146768,
"6000bafc321839844ca8ca96e4d03a4c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0a8731814056214354c4d9b0a7929ad7",
"_score": 1100.0,
"_source": {
"id": "0a8731814056214354c4d9b0a7929ad7",
"autoIncrement": 139431.0
},
"fields": {
"displayGroup": [
"da2885151f90db12fbac1f150b8c9c50"
]
},
"sort": [
0,
1100.0,
0,
139431,
"0a8731814056214354c4d9b0a7929ad7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "30b9edba5a165021813a785c6f068228",
"_score": 1100.0,
"_source": {
"id": "30b9edba5a165021813a785c6f068228",
"autoIncrement": 139430.0
},
"fields": {
"displayGroup": [
"d3c1cd77d2976383ce09e7e482155215"
]
},
"sort": [
0,
1100.0,
0,
139430,
"30b9edba5a165021813a785c6f068228"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3c5700063f3a5b8e6792ae200dc4f027",
"_score": 1100.0,
"_source": {
"id": "3c5700063f3a5b8e6792ae200dc4f027",
"autoIncrement": 139429.0
},
"fields": {
"displayGroup": [
"08153627dfd9d5523f3eaba3bfb62477"
]
},
"sort": [
0,
1100.0,
0,
139429,
"3c5700063f3a5b8e6792ae200dc4f027"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "57264802dfa79a9674bd9fea93376411",
"_score": 1100.0,
"_source": {
"id": "57264802dfa79a9674bd9fea93376411",
"autoIncrement": 136843.0
},
"fields": {
"displayGroup": [
"b694239919136c5804240c1fbbc7fecd"
]
},
"sort": [
0,
1100.0,
0,
136843,
"57264802dfa79a9674bd9fea93376411"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5c7550c1b0371c19e572c15e73582750",
"_score": 1100.0,
"_source": {
"id": "5c7550c1b0371c19e572c15e73582750",
"autoIncrement": 136842.0
},
"fields": {
"displayGroup": [
"1aa601bd273b7b457df76a064db78fe0"
]
},
"sort": [
0,
1100.0,
0,
136842,
"5c7550c1b0371c19e572c15e73582750"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1efe6809475afb20b04cfbce0756474a",
"_score": 1100.0,
"_source": {
"id": "1efe6809475afb20b04cfbce0756474a",
"autoIncrement": 135221.0
},
"fields": {
"displayGroup": [
"8e6580606fefe1eb9da547dd12cfb962"
]
},
"sort": [
0,
1100.0,
0,
135221,
"1efe6809475afb20b04cfbce0756474a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e78cb17c9b8ddd6294321dfab37f5826",
"_score": 1100.0,
"_source": {
"id": "e78cb17c9b8ddd6294321dfab37f5826",
"autoIncrement": 135220.0
},
"fields": {
"displayGroup": [
"dc4a5d6715f7a4c56020a45e60aa49ee"
]
},
"sort": [
0,
1100.0,
0,
135220,
"e78cb17c9b8ddd6294321dfab37f5826"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "04478ef4d3d73daf31656c1c9caf6d76",
"_score": 1100.0,
"_source": {
"id": "04478ef4d3d73daf31656c1c9caf6d76",
"autoIncrement": 132300.0
},
"fields": {
"displayGroup": [
"566965092cf8dafba9dd533bdbe7a1f7"
]
},
"sort": [
0,
1100.0,
0,
132300,
"04478ef4d3d73daf31656c1c9caf6d76"
]
}
]
},
"aggregations": {
"total-count": {
"value": 72
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.11 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":"c17ec2c17e92c5ab07439911654e9a4f"}},{"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": "c17ec2c17e92c5ab07439911654e9a4f"
}
},
{
"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": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 72,
"min": 50.0,
"max": 1481.0,
"avg": 275.5416666666667,
"sum": 19839.0
},
"rating-exists": {
"doc_count": 72,
"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": 6
},
{
"key": {
"manufacturer-count-filter.sorting": "ab6a2208365e18d40ae5310cd208c26e",
"manufacturer-count-filter.key": "ab6a2208365e18d40ae5310cd208c26e"
},
"doc_count": 18
}
]
},
"bool-reduced": {
"doc_count": 2,
"bool-reduced": {
"value": 2
}
},
"width": {
"count": 54,
"min": 600.0,
"max": 3240.0,
"avg": 1638.037037037037,
"sum": 88454.0
},
"width-stats": {
"doc_count": 54,
"width-stats": {
"count": 54,
"min": 600.0,
"max": 3240.0,
"avg": 1638.037037037037,
"sum": 88454.0
}
},
"height": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"height-stats": {
"doc_count": 0,
"height-stats": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
}
},
"tiefe": {
"count": 1,
"min": 944.0,
"max": 944.0,
"avg": 944.0,
"sum": 944.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "B\u00fcgelst\u00e4nder",
"multi-typModel.key": "B\u00fcgelst\u00e4nder"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Anlehnb\u00fcgel",
"multi-typModel.key": "Anlehnb\u00fcgel"
},
"doc_count": 15
},
{
"key": {
"multi-typModel.sorting": "Anlehnst\u00e4nder",
"multi-typModel.key": "Anlehnst\u00e4nder"
},
"doc_count": 10
},
{
"key": {
"multi-typModel.sorting": "B\u00fcgelst\u00e4nder",
"multi-typModel.key": "B\u00fcgelst\u00e4nder"
},
"doc_count": 47
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "feuerverzinkt",
"multi-farbe.key": "feuerverzinkt"
},
"doc_count": 18
},
{
"key": {
"multi-farbe.sorting": "verzinkt",
"multi-farbe.key": "verzinkt"
},
"doc_count": 54
}
]
},
"multi-radabstand": {
"after_key": {
"multi-radabstand.sorting": "540 mm",
"multi-radabstand.key": "540 mm"
},
"buckets": [
{
"key": {
"multi-radabstand.sorting": "350 mm",
"multi-radabstand.key": "350 mm"
},
"doc_count": 29
},
{
"key": {
"multi-radabstand.sorting": "390 mm",
"multi-radabstand.key": "390 mm"
},
"doc_count": 4
},
{
"key": {
"multi-radabstand.sorting": "500 mm",
"multi-radabstand.key": "500 mm"
},
"doc_count": 25
},
{
"key": {
"multi-radabstand.sorting": "540 mm",
"multi-radabstand.key": "540 mm"
},
"doc_count": 6
}
]
},
"range-anzahlFahrradaufnahmen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-befestigungsart": {
"after_key": {
"multi-befestigungsart.sorting": "zur Wandbefestigung",
"multi-befestigungsart.key": "zur Wandbefestigung"
},
"buckets": [
{
"key": {
"multi-befestigungsart.sorting": "Bodenbefestigung",
"multi-befestigungsart.key": "Bodenbefestigung"
},
"doc_count": 18
},
{
"key": {
"multi-befestigungsart.sorting": "zum Anschrauben",
"multi-befestigungsart.key": "zum Anschrauben"
},
"doc_count": 8
},
{
"key": {
"multi-befestigungsart.sorting": "zum Aufduebeln",
"multi-befestigungsart.key": "zum Aufduebeln"
},
"doc_count": 3
},
{
"key": {
"multi-befestigungsart.sorting": "zum Aufd\u00fcbeln",
"multi-befestigungsart.key": "zum Aufd\u00fcbeln"
},
"doc_count": 27
},
{
"key": {
"multi-befestigungsart.sorting": "zum Einbetonieren",
"multi-befestigungsart.key": "zum Einbetonieren"
},
"doc_count": 5
},
{
"key": {
"multi-befestigungsart.sorting": "zur Wandbefestigung",
"multi-befestigungsart.key": "zur Wandbefestigung"
},
"doc_count": 5
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl, verzinkt",
"multi-material.key": "Stahl, verzinkt"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 64
},
{
"key": {
"multi-material.sorting": "Stahl, verzinkt",
"multi-material.key": "Stahl, verzinkt"
},
"doc_count": 2
}
]
},
"multi-aufnahmekapazitaet": {
"buckets": []
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "ab6a2208365e18d40ae5310cd208c26e",
"doc_count": 18
},
{
"key": "18e6b17f5ea12a9dfb6ca9b1feb4755c",
"doc_count": 6
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|