| 1 |
18.51 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":"969e9d8d4509e20ed09840a20f075ec8"}},{"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":216,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 245,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "a97338b63c2093c09debebd0426dbbe4",
"_score": 100.0,
"_source": {
"id": "a97338b63c2093c09debebd0426dbbe4",
"autoIncrement": 27202.0
},
"fields": {
"displayGroup": [
"5d3dd8bd81f8726ae62156af5f9721fc"
]
},
"sort": [
0,
100.0,
0,
27202,
"a97338b63c2093c09debebd0426dbbe4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c327097f68bc534f502d6c0586f7ce02",
"_score": 100.0,
"_source": {
"id": "c327097f68bc534f502d6c0586f7ce02",
"autoIncrement": 27201.0
},
"fields": {
"displayGroup": [
"81d31a3e085c733f0c0000d4ce432a32"
]
},
"sort": [
0,
100.0,
0,
27201,
"c327097f68bc534f502d6c0586f7ce02"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a5d9a6c3f82622a9a36b9f8bf921e9a3",
"_score": 100.0,
"_source": {
"id": "a5d9a6c3f82622a9a36b9f8bf921e9a3",
"autoIncrement": 27200.0
},
"fields": {
"displayGroup": [
"deaf43bb8781384071b407154587e245"
]
},
"sort": [
0,
100.0,
0,
27200,
"a5d9a6c3f82622a9a36b9f8bf921e9a3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8ec25491d18981f8e669a32b246cdba5",
"_score": 100.0,
"_source": {
"id": "8ec25491d18981f8e669a32b246cdba5",
"autoIncrement": 24527.0
},
"fields": {
"displayGroup": [
"1603cbee48321740d595d94e73e711cb"
]
},
"sort": [
0,
100.0,
0,
24527,
"8ec25491d18981f8e669a32b246cdba5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "35a3e936a70e49c097e5a7699545b6a8",
"_score": 100.0,
"_source": {
"id": "35a3e936a70e49c097e5a7699545b6a8",
"autoIncrement": 24516.0
},
"fields": {
"displayGroup": [
"5d6cafdadfe43739f15465fe792e3a75"
]
},
"sort": [
0,
100.0,
0,
24516,
"35a3e936a70e49c097e5a7699545b6a8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4eb6c601347c5b1fbdb07c9016ef6a5e",
"_score": 100.0,
"_source": {
"id": "4eb6c601347c5b1fbdb07c9016ef6a5e",
"autoIncrement": 24505.0
},
"fields": {
"displayGroup": [
"6416adbf6cad2d1a04499d879051b0b3"
]
},
"sort": [
0,
100.0,
0,
24505,
"4eb6c601347c5b1fbdb07c9016ef6a5e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7eb1b34d1b7160726c282bb545b8a56f",
"_score": 100.0,
"_source": {
"id": "7eb1b34d1b7160726c282bb545b8a56f",
"autoIncrement": 24494.0
},
"fields": {
"displayGroup": [
"9024092c589449afe2c4057c0ef04976"
]
},
"sort": [
0,
100.0,
0,
24494,
"7eb1b34d1b7160726c282bb545b8a56f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fb473ec8bfd8e7c9fc337e51428ab6f2",
"_score": 100.0,
"_source": {
"id": "fb473ec8bfd8e7c9fc337e51428ab6f2",
"autoIncrement": 23999.0
},
"fields": {
"displayGroup": [
"1009a940510fc170e46194569be8e7e2"
]
},
"sort": [
0,
100.0,
0,
23999,
"fb473ec8bfd8e7c9fc337e51428ab6f2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b86f882ac1ed0df67a4ed75b24057b68",
"_score": 100.0,
"_source": {
"id": "b86f882ac1ed0df67a4ed75b24057b68",
"autoIncrement": 23988.0
},
"fields": {
"displayGroup": [
"09724326934db9f7da98ccac8be10363"
]
},
"sort": [
0,
100.0,
0,
23988,
"b86f882ac1ed0df67a4ed75b24057b68"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f1f883d45417fb8f3baa6092ac42462e",
"_score": 100.0,
"_source": {
"id": "f1f883d45417fb8f3baa6092ac42462e",
"autoIncrement": 23977.0
},
"fields": {
"displayGroup": [
"ad84e6e01f33933ab8318e114d88b4d7"
]
},
"sort": [
0,
100.0,
0,
23977,
"f1f883d45417fb8f3baa6092ac42462e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "94a2a7f3de4343f17c5ace7e9d4a9f6b",
"_score": 100.0,
"_source": {
"id": "94a2a7f3de4343f17c5ace7e9d4a9f6b",
"autoIncrement": 23966.0
},
"fields": {
"displayGroup": [
"8f032928d9d83d2fa878b324d5bbbb98"
]
},
"sort": [
0,
100.0,
0,
23966,
"94a2a7f3de4343f17c5ace7e9d4a9f6b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b0205265a558207617f0341bc517977a",
"_score": 100.0,
"_source": {
"id": "b0205265a558207617f0341bc517977a",
"autoIncrement": 23955.0
},
"fields": {
"displayGroup": [
"1e74220aabb7ae61de30c6ce692e02f3"
]
},
"sort": [
0,
100.0,
0,
23955,
"b0205265a558207617f0341bc517977a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4d68fa49a52e989f970b6a06a2c069dd",
"_score": 100.0,
"_source": {
"id": "4d68fa49a52e989f970b6a06a2c069dd",
"autoIncrement": 23944.0
},
"fields": {
"displayGroup": [
"8bea1941cd8e216e7a9219902d9fdeb7"
]
},
"sort": [
0,
100.0,
0,
23944,
"4d68fa49a52e989f970b6a06a2c069dd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "90ed9b141c6b521168f15e3a4037cfdc",
"_score": 100.0,
"_source": {
"id": "90ed9b141c6b521168f15e3a4037cfdc",
"autoIncrement": 23933.0
},
"fields": {
"displayGroup": [
"5815a5b3af8a27cf4ff22a1f56adf5a5"
]
},
"sort": [
0,
100.0,
0,
23933,
"90ed9b141c6b521168f15e3a4037cfdc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6697c74f60cef57a6dad17ba3c06605d",
"_score": 100.0,
"_source": {
"id": "6697c74f60cef57a6dad17ba3c06605d",
"autoIncrement": 23922.0
},
"fields": {
"displayGroup": [
"b95d8e4c5d9fa431893f24b7ce906151"
]
},
"sort": [
0,
100.0,
0,
23922,
"6697c74f60cef57a6dad17ba3c06605d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c239895489ae91e2b91b850e6c45d1c1",
"_score": 100.0,
"_source": {
"id": "c239895489ae91e2b91b850e6c45d1c1",
"autoIncrement": 23911.0
},
"fields": {
"displayGroup": [
"fbb749607a46fc6b127fedc0b824b30b"
]
},
"sort": [
0,
100.0,
0,
23911,
"c239895489ae91e2b91b850e6c45d1c1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cc49575253a850d471c1cc9359e3a864",
"_score": 100.0,
"_source": {
"id": "cc49575253a850d471c1cc9359e3a864",
"autoIncrement": 23900.0
},
"fields": {
"displayGroup": [
"1bb1e67a32a2339b518539eb7980a1c8"
]
},
"sort": [
0,
100.0,
0,
23900,
"cc49575253a850d471c1cc9359e3a864"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "661a8edb62db013c3922910d7f847747",
"_score": 100.0,
"_source": {
"id": "661a8edb62db013c3922910d7f847747",
"autoIncrement": 23889.0
},
"fields": {
"displayGroup": [
"18387d4960e02feda6dba155e58c3cd4"
]
},
"sort": [
0,
100.0,
0,
23889,
"661a8edb62db013c3922910d7f847747"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9eead72373ff5323514029e70269f9e0",
"_score": 100.0,
"_source": {
"id": "9eead72373ff5323514029e70269f9e0",
"autoIncrement": 23878.0
},
"fields": {
"displayGroup": [
"cedd2257925d4d456db94ea39297ddd8"
]
},
"sort": [
0,
100.0,
0,
23878,
"9eead72373ff5323514029e70269f9e0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d7635216c4d86bc21e8af87aa48c3bf5",
"_score": 100.0,
"_source": {
"id": "d7635216c4d86bc21e8af87aa48c3bf5",
"autoIncrement": 23867.0
},
"fields": {
"displayGroup": [
"cd7b7747d3adb960f02824dd8ccc1b9f"
]
},
"sort": [
0,
100.0,
0,
23867,
"d7635216c4d86bc21e8af87aa48c3bf5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c10599f1c32ecd60506eb5adc16f8de0",
"_score": 100.0,
"_source": {
"id": "c10599f1c32ecd60506eb5adc16f8de0",
"autoIncrement": 23856.0
},
"fields": {
"displayGroup": [
"a3465c98483e120db434a8d3138d57ea"
]
},
"sort": [
0,
100.0,
0,
23856,
"c10599f1c32ecd60506eb5adc16f8de0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c62d90badd760009fc886ec7bd207567",
"_score": 100.0,
"_source": {
"id": "c62d90badd760009fc886ec7bd207567",
"autoIncrement": 22957.0
},
"fields": {
"displayGroup": [
"fcc3cb63a0f30c8f5c349712f25f2ca5"
]
},
"sort": [
0,
100.0,
0,
22957,
"c62d90badd760009fc886ec7bd207567"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "43048005f3023db445ff97a67790bb79",
"_score": 100.0,
"_source": {
"id": "43048005f3023db445ff97a67790bb79",
"autoIncrement": 22946.0
},
"fields": {
"displayGroup": [
"66c09d5469ee56e23725e1bd0f59ffed"
]
},
"sort": [
0,
100.0,
0,
22946,
"43048005f3023db445ff97a67790bb79"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cb08ea5eca944d8fd1c661bf68d9b509",
"_score": 100.0,
"_source": {
"id": "cb08ea5eca944d8fd1c661bf68d9b509",
"autoIncrement": 22935.0
},
"fields": {
"displayGroup": [
"ef2a2658db15c8e07f484ba5db3ca9d2"
]
},
"sort": [
0,
100.0,
0,
22935,
"cb08ea5eca944d8fd1c661bf68d9b509"
]
}
]
},
"aggregations": {
"total-count": {
"value": 245
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.71 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":"969e9d8d4509e20ed09840a20f075ec8"}},{"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"}}}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-width":{"composite":{"sources":[{"multi-width.sorting":{"terms":{"field":"width","order":"ASC"}}},{"multi-width.key":{"terms":{"field":"width"}}}],"size":"99999"}},"multi-height":{"composite":{"sources":[{"multi-height.sorting":{"terms":{"field":"height","order":"ASC"}}},{"multi-height.key":{"terms":{"field":"height"}}}],"size":"99999"}},"multi-tiefe":{"composite":{"sources":[{"multi-tiefe.sorting":{"terms":{"field":"attribute_tiefe","order":"ASC"}}},{"multi-tiefe.key":{"terms":{"field":"attribute_tiefe"}}}],"size":"99999"}},"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"multi-traglast":{"composite":{"sources":[{"multi-traglast.sorting":{"terms":{"field":"attribute_traglast","order":"ASC"}}},{"multi-traglast.key":{"terms":{"field":"attribute_traglast"}}}],"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": "969e9d8d4509e20ed09840a20f075ec8"
}
},
{
"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"
}
}
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-width": {
"composite": {
"sources": [
{
"multi-width.sorting": {
"terms": {
"field": "width",
"order": "ASC"
}
}
},
{
"multi-width.key": {
"terms": {
"field": "width"
}
}
}
],
"size": "99999"
}
},
"multi-height": {
"composite": {
"sources": [
{
"multi-height.sorting": {
"terms": {
"field": "height",
"order": "ASC"
}
}
},
{
"multi-height.key": {
"terms": {
"field": "height"
}
}
}
],
"size": "99999"
}
},
"multi-tiefe": {
"composite": {
"sources": [
{
"multi-tiefe.sorting": {
"terms": {
"field": "attribute_tiefe",
"order": "ASC"
}
}
},
{
"multi-tiefe.key": {
"terms": {
"field": "attribute_tiefe"
}
}
}
],
"size": "99999"
}
},
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"multi-traglast": {
"composite": {
"sources": [
{
"multi-traglast.sorting": {
"terms": {
"field": "attribute_traglast",
"order": "ASC"
}
}
},
{
"multi-traglast.key": {
"terms": {
"field": "attribute_traglast"
}
}
}
],
"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": 245,
"min": 4.8,
"max": 2349.0,
"avg": 221.4387755102041,
"sum": 54252.5
},
"rating-exists": {
"doc_count": 245,
"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": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "1acbf8858846ac1ca47b6395e9eca5e2",
"manufacturer-count-filter.key": "1acbf8858846ac1ca47b6395e9eca5e2"
},
"doc_count": 6
},
{
"key": {
"manufacturer-count-filter.sorting": "5267ee69add37a0408db89f9cd30c57f",
"manufacturer-count-filter.key": "5267ee69add37a0408db89f9cd30c57f"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 81
},
{
"key": {
"manufacturer-count-filter.sorting": "6702a27cc2ed074813e1d59f22465957",
"manufacturer-count-filter.key": "6702a27cc2ed074813e1d59f22465957"
},
"doc_count": 27
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 17
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke",
"multi-typModel.key": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Palettenregal Trennarme",
"multi-typModel.key": "Palettenregal Trennarme"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Ausrollregale",
"multi-typModel.key": "Zubeh\u00f6r Ausrollregale"
},
"doc_count": 8
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Auszugregale",
"multi-typModel.key": "Zubeh\u00f6r Auszugregale"
},
"doc_count": 73
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 133
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Kabeltrommelregale",
"multi-typModel.key": "Zubeh\u00f6r Kabeltrommelregale"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Reifenregale",
"multi-typModel.key": "Zubeh\u00f6r Reifenregale"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Schlauchregale",
"multi-typModel.key": "Zubeh\u00f6r Schlauchregale"
},
"doc_count": 2
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Wabenregale",
"multi-typModel.key": "Zubeh\u00f6r Wabenregale"
},
"doc_count": 6
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke",
"multi-typModel.key": "Zubeh\u00f6r f\u00fcr Materialschr\u00e4nke"
},
"doc_count": 14
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 1695.0,
"multi-width.key": 1695.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 300.0,
"multi-width.key": 300.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 600.0,
"multi-width.key": 600.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 701.0,
"multi-width.key": 701.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 750.0,
"multi-width.key": 750.0
},
"doc_count": 6
},
{
"key": {
"multi-width.sorting": 800.0,
"multi-width.key": 800.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 805.0,
"multi-width.key": 805.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 870.0,
"multi-width.key": 870.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 875.0,
"multi-width.key": 875.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 890.0,
"multi-width.key": 890.0
},
"doc_count": 21
},
{
"key": {
"multi-width.sorting": 900.0,
"multi-width.key": 900.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 918.0,
"multi-width.key": 918.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 960.0,
"multi-width.key": 960.0
},
"doc_count": 6
},
{
"key": {
"multi-width.sorting": 985.0,
"multi-width.key": 985.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 1005.0,
"multi-width.key": 1005.0
},
"doc_count": 4
},
{
"key": {
"multi-width.sorting": 1010.0,
"multi-width.key": 1010.0
},
"doc_count": 9
},
{
"key": {
"multi-width.sorting": 1090.0,
"multi-width.key": 1090.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 1200.0,
"multi-width.key": 1200.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 1250.0,
"multi-width.key": 1250.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 1260.0,
"multi-width.key": 1260.0
},
"doc_count": 9
},
{
"key": {
"multi-width.sorting": 1285.0,
"multi-width.key": 1285.0
},
"doc_count": 3
},
{
"key": {
"multi-width.sorting": 1290.0,
"multi-width.key": 1290.0
},
"doc_count": 21
},
{
"key": {
"multi-width.sorting": 1400.0,
"multi-width.key": 1400.0
},
"doc_count": 5
},
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 13
},
{
"key": {
"multi-width.sorting": 1695.0,
"multi-width.key": 1695.0
},
"doc_count": 2
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 2600.0,
"multi-height.key": 2600.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 75.0,
"multi-height.key": 75.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 1000.0,
"multi-height.key": 1000.0
},
"doc_count": 4
},
{
"key": {
"multi-height.sorting": 1500.0,
"multi-height.key": 1500.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 1830.0,
"multi-height.key": 1830.0
},
"doc_count": 1
},
{
"key": {
"multi-height.sorting": 1900.0,
"multi-height.key": 1900.0
},
"doc_count": 8
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2200.0,
"multi-height.key": 2200.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2250.0,
"multi-height.key": 2250.0
},
"doc_count": 3
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 9
},
{
"key": {
"multi-height.sorting": 2600.0,
"multi-height.key": 2600.0
},
"doc_count": 3
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 6000.0,
"multi-tiefe.key": 6000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 300.0,
"multi-tiefe.key": 300.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 32
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 27
},
{
"key": {
"multi-tiefe.sorting": 540.0,
"multi-tiefe.key": 540.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 28
},
{
"key": {
"multi-tiefe.sorting": 612.0,
"multi-tiefe.key": 612.0
},
"doc_count": 4
},
{
"key": {
"multi-tiefe.sorting": 750.0,
"multi-tiefe.key": 750.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 8
},
{
"key": {
"multi-tiefe.sorting": 860.0,
"multi-tiefe.key": 860.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 9
},
{
"key": {
"multi-tiefe.sorting": 1060.0,
"multi-tiefe.key": 1060.0
},
"doc_count": 13
},
{
"key": {
"multi-tiefe.sorting": 1260.0,
"multi-tiefe.key": 1260.0
},
"doc_count": 16
},
{
"key": {
"multi-tiefe.sorting": 3000.0,
"multi-tiefe.key": 3000.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 6000.0,
"multi-tiefe.key": 6000.0
},
"doc_count": 2
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 81
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 27
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 17
},
{
"key": "1acbf8858846ac1ca47b6395e9eca5e2",
"doc_count": 6
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 4
}
]
},
"multi-traglast": {
"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": 2
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 81
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 27
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 17
},
{
"key": "1acbf8858846ac1ca47b6395e9eca5e2",
"doc_count": 6
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|