| 1 |
18.93 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":"dd97f75c4a294d07593ae14c7b5a9095"}},{"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":648,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 6,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 930,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "285d8f0368563ea42d9eb561e63e75ce",
"_score": 1100.0,
"_source": {
"id": "285d8f0368563ea42d9eb561e63e75ce",
"autoIncrement": 138764.0
},
"fields": {
"displayGroup": [
"90e13d2a7278c6bf0cf5e74327315890"
]
},
"sort": [
0,
1100.0,
0,
138764,
"285d8f0368563ea42d9eb561e63e75ce"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4dcf26c1ea681061c6559e695ad5850d",
"_score": 1100.0,
"_source": {
"id": "4dcf26c1ea681061c6559e695ad5850d",
"autoIncrement": 138763.0
},
"fields": {
"displayGroup": [
"1f8c3d284b9c8ec195f09b6560eaf636"
]
},
"sort": [
0,
1100.0,
0,
138763,
"4dcf26c1ea681061c6559e695ad5850d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "87221f65c801932f6a548d6714fdbae7",
"_score": 1100.0,
"_source": {
"id": "87221f65c801932f6a548d6714fdbae7",
"autoIncrement": 138762.0
},
"fields": {
"displayGroup": [
"c1f81126504b94204044d74e2a2b74c3"
]
},
"sort": [
0,
1100.0,
0,
138762,
"87221f65c801932f6a548d6714fdbae7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4b81d75cca58abf0a517786dab7d3d0c",
"_score": 1100.0,
"_source": {
"id": "4b81d75cca58abf0a517786dab7d3d0c",
"autoIncrement": 138761.0
},
"fields": {
"displayGroup": [
"28378900c8be048a68544ee4164e3110"
]
},
"sort": [
0,
1100.0,
0,
138761,
"4b81d75cca58abf0a517786dab7d3d0c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a9f33cf113606acd23dcdae32e40b85a",
"_score": 1100.0,
"_source": {
"id": "a9f33cf113606acd23dcdae32e40b85a",
"autoIncrement": 138760.0
},
"fields": {
"displayGroup": [
"e7d65dbf748b393ad4aa73ec4b9c71c1"
]
},
"sort": [
0,
1100.0,
0,
138760,
"a9f33cf113606acd23dcdae32e40b85a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "546cd27d021ec4301c31d221bff7aeb7",
"_score": 1100.0,
"_source": {
"id": "546cd27d021ec4301c31d221bff7aeb7",
"autoIncrement": 138759.0
},
"fields": {
"displayGroup": [
"fb400dd32c13b72b7d93b9c939686bce"
]
},
"sort": [
0,
1100.0,
0,
138759,
"546cd27d021ec4301c31d221bff7aeb7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d4e68d9abfecd54fcef272c3133f798c",
"_score": 1100.0,
"_source": {
"id": "d4e68d9abfecd54fcef272c3133f798c",
"autoIncrement": 138758.0
},
"fields": {
"displayGroup": [
"d4d17834bc8e90933b653896944ff5cf"
]
},
"sort": [
0,
1100.0,
0,
138758,
"d4e68d9abfecd54fcef272c3133f798c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "864619d254007e2b2e42d7ce567ef464",
"_score": 1100.0,
"_source": {
"id": "864619d254007e2b2e42d7ce567ef464",
"autoIncrement": 138757.0
},
"fields": {
"displayGroup": [
"8d2e9ba1b74b2902cffeb600a0d02e3b"
]
},
"sort": [
0,
1100.0,
0,
138757,
"864619d254007e2b2e42d7ce567ef464"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "81c0efd5388ed9c30617f18f86cb8c2e",
"_score": 1100.0,
"_source": {
"id": "81c0efd5388ed9c30617f18f86cb8c2e",
"autoIncrement": 138756.0
},
"fields": {
"displayGroup": [
"de870c139bd9a08b5337edd98f398ed8"
]
},
"sort": [
0,
1100.0,
0,
138756,
"81c0efd5388ed9c30617f18f86cb8c2e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "35ca64884fe00e630bbed8140edaef2b",
"_score": 1100.0,
"_source": {
"id": "35ca64884fe00e630bbed8140edaef2b",
"autoIncrement": 138755.0
},
"fields": {
"displayGroup": [
"cc2348e83f794944a672f8666323f8f9"
]
},
"sort": [
0,
1100.0,
0,
138755,
"35ca64884fe00e630bbed8140edaef2b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ab554abe7a751e4b89ac98971327e9b8",
"_score": 1100.0,
"_source": {
"id": "ab554abe7a751e4b89ac98971327e9b8",
"autoIncrement": 138754.0
},
"fields": {
"displayGroup": [
"a4035a8a2701f9118e581e7ad76d4b2b"
]
},
"sort": [
0,
1100.0,
0,
138754,
"ab554abe7a751e4b89ac98971327e9b8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "af760fe4201f06446eeef3a1579d842e",
"_score": 1100.0,
"_source": {
"id": "af760fe4201f06446eeef3a1579d842e",
"autoIncrement": 138753.0
},
"fields": {
"displayGroup": [
"a8472acf652e0a145d0a2193ea8ab9bf"
]
},
"sort": [
0,
1100.0,
0,
138753,
"af760fe4201f06446eeef3a1579d842e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e5342b497924553116232c0a169aadf6",
"_score": 1100.0,
"_source": {
"id": "e5342b497924553116232c0a169aadf6",
"autoIncrement": 138752.0
},
"fields": {
"displayGroup": [
"278a913557ed4071f90b786ceeee0a27"
]
},
"sort": [
0,
1100.0,
0,
138752,
"e5342b497924553116232c0a169aadf6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6b1faf7536d17d023df30969f471c29d",
"_score": 1100.0,
"_source": {
"id": "6b1faf7536d17d023df30969f471c29d",
"autoIncrement": 138751.0
},
"fields": {
"displayGroup": [
"11ed9a46e64aae06075ea27975788686"
]
},
"sort": [
0,
1100.0,
0,
138751,
"6b1faf7536d17d023df30969f471c29d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d3ce64b56bda2823da3090c1f753ff2f",
"_score": 1100.0,
"_source": {
"id": "d3ce64b56bda2823da3090c1f753ff2f",
"autoIncrement": 138750.0
},
"fields": {
"displayGroup": [
"849644d56daa904fa1d6d66a956eaf67"
]
},
"sort": [
0,
1100.0,
0,
138750,
"d3ce64b56bda2823da3090c1f753ff2f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4c649f664a6de31213725ce369aecb05",
"_score": 1100.0,
"_source": {
"id": "4c649f664a6de31213725ce369aecb05",
"autoIncrement": 138749.0
},
"fields": {
"displayGroup": [
"b078096c1299fedf4a034c6a2c6a1110"
]
},
"sort": [
0,
1100.0,
0,
138749,
"4c649f664a6de31213725ce369aecb05"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4d70a722c02d79a8b3f24f8c3798bf6f",
"_score": 1100.0,
"_source": {
"id": "4d70a722c02d79a8b3f24f8c3798bf6f",
"autoIncrement": 138748.0
},
"fields": {
"displayGroup": [
"0a68f264990fbcdf71af317de9f39841"
]
},
"sort": [
0,
1100.0,
0,
138748,
"4d70a722c02d79a8b3f24f8c3798bf6f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c415667d4dbed4cdfae27c6b48508006",
"_score": 1100.0,
"_source": {
"id": "c415667d4dbed4cdfae27c6b48508006",
"autoIncrement": 138747.0
},
"fields": {
"displayGroup": [
"5b7a0158983d270e74852f59a13740cb"
]
},
"sort": [
0,
1100.0,
0,
138747,
"c415667d4dbed4cdfae27c6b48508006"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9ae5f360c649d72b139cbb593f9fd280",
"_score": 1100.0,
"_source": {
"id": "9ae5f360c649d72b139cbb593f9fd280",
"autoIncrement": 138746.0
},
"fields": {
"displayGroup": [
"ac086230a35fa0f3fe299db3242ac12b"
]
},
"sort": [
0,
1100.0,
0,
138746,
"9ae5f360c649d72b139cbb593f9fd280"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "595611f69c3f1675b2d09f6990612604",
"_score": 1100.0,
"_source": {
"id": "595611f69c3f1675b2d09f6990612604",
"autoIncrement": 138745.0
},
"fields": {
"displayGroup": [
"2cfe3019adf52f68db47f6294a67c812"
]
},
"sort": [
0,
1100.0,
0,
138745,
"595611f69c3f1675b2d09f6990612604"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2f3e4e21617e5f68ca096a6aba276ada",
"_score": 1100.0,
"_source": {
"id": "2f3e4e21617e5f68ca096a6aba276ada",
"autoIncrement": 138744.0
},
"fields": {
"displayGroup": [
"ce80edd94304221ca49d7500f7a592d5"
]
},
"sort": [
0,
1100.0,
0,
138744,
"2f3e4e21617e5f68ca096a6aba276ada"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3dfa5209def7aa908b870fed100a6c50",
"_score": 1100.0,
"_source": {
"id": "3dfa5209def7aa908b870fed100a6c50",
"autoIncrement": 138743.0
},
"fields": {
"displayGroup": [
"f4922765f9a0227e0a71ae00eb7af28a"
]
},
"sort": [
0,
1100.0,
0,
138743,
"3dfa5209def7aa908b870fed100a6c50"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "895bf4734f76b6fe5a1ae93242098c5b",
"_score": 1100.0,
"_source": {
"id": "895bf4734f76b6fe5a1ae93242098c5b",
"autoIncrement": 138742.0
},
"fields": {
"displayGroup": [
"224cb4113b72c311fc4995e89b582fd2"
]
},
"sort": [
0,
1100.0,
0,
138742,
"895bf4734f76b6fe5a1ae93242098c5b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8c3cf01d26c1caa75ae828078994e2b3",
"_score": 1100.0,
"_source": {
"id": "8c3cf01d26c1caa75ae828078994e2b3",
"autoIncrement": 138741.0
},
"fields": {
"displayGroup": [
"d36a3dfb559db17ccf315398226f8c83"
]
},
"sort": [
0,
1100.0,
0,
138741,
"8c3cf01d26c1caa75ae828078994e2b3"
]
}
]
},
"aggregations": {
"total-count": {
"value": 930
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.41 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":"dd97f75c4a294d07593ae14c7b5a9095"}},{"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"}},"multi-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-traglastKragarm":{"composite":{"sources":[{"multi-traglastKragarm.sorting":{"terms":{"field":"attribute_traglastKragarm","order":"ASC"}}},{"multi-traglastKragarm.key":{"terms":{"field":"attribute_traglastKragarm"}}}],"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": "dd97f75c4a294d07593ae14c7b5a9095"
}
},
{
"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"
}
},
"multi-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-traglastKragarm": {
"composite": {
"sources": [
{
"multi-traglastKragarm.sorting": {
"terms": {
"field": "attribute_traglastKragarm",
"order": "ASC"
}
}
},
{
"multi-traglastKragarm.key": {
"terms": {
"field": "attribute_traglastKragarm"
}
}
}
],
"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": 930,
"min": 2.0,
"max": 10384.0,
"avg": 2620.9079462365594,
"sum": 2437444.39
},
"rating-exists": {
"doc_count": 930,
"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": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 930
}
]
},
"bool-reduced": {
"doc_count": 1,
"bool-reduced": {
"value": 1
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Kragarmregale",
"multi-typModel.key": "Zubeh\u00f6r Kragarmregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Kragarmregal KARL light",
"multi-typModel.key": "Kragarmregal KARL light"
},
"doc_count": 4
},
{
"key": {
"multi-typModel.sorting": "Kragarmregal KARL basic",
"multi-typModel.key": "Kragarmregal KARL basic"
},
"doc_count": 864
},
{
"key": {
"multi-typModel.sorting": "Kragarmregal KARL heavy",
"multi-typModel.key": "Kragarmregal KARL heavy"
},
"doc_count": 48
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Kragarmregale",
"multi-typModel.key": "Zubeh\u00f6r Kragarmregale"
},
"doc_count": 14
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 7591.0,
"multi-width.key": 7591.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 108
},
{
"key": {
"multi-width.sorting": 1064.0,
"multi-width.key": 1064.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 1250.0,
"multi-width.key": 1250.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1280.0,
"multi-width.key": 1280.0
},
"doc_count": 36
},
{
"key": {
"multi-width.sorting": 1305.0,
"multi-width.key": 1305.0
},
"doc_count": 2
},
{
"key": {
"multi-width.sorting": 1344.0,
"multi-width.key": 1344.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 1591.0,
"multi-width.key": 1591.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 2064.0,
"multi-width.key": 2064.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 2624.0,
"multi-width.key": 2624.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 3064.0,
"multi-width.key": 3064.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 3091.0,
"multi-width.key": 3091.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 3904.0,
"multi-width.key": 3904.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 4064.0,
"multi-width.key": 4064.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 4591.0,
"multi-width.key": 4591.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 5064.0,
"multi-width.key": 5064.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 5184.0,
"multi-width.key": 5184.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 6091.0,
"multi-width.key": 6091.0
},
"doc_count": 8
},
{
"key": {
"multi-width.sorting": 6464.0,
"multi-width.key": 6464.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 7591.0,
"multi-width.key": 7591.0
},
"doc_count": 8
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 4000.0,
"multi-height.key": 4000.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 292
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 288
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 288
},
{
"key": {
"multi-height.sorting": 3500.0,
"multi-height.key": 3500.0
},
"doc_count": 24
},
{
"key": {
"multi-height.sorting": 4000.0,
"multi-height.key": 4000.0
},
"doc_count": 24
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 2580.0,
"multi-tiefe.key": 2580.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 520.0,
"multi-tiefe.key": 520.0
},
"doc_count": 72
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 620.0,
"multi-tiefe.key": 620.0
},
"doc_count": 73
},
{
"key": {
"multi-tiefe.sorting": 720.0,
"multi-tiefe.key": 720.0
},
"doc_count": 72
},
{
"key": {
"multi-tiefe.sorting": 920.0,
"multi-tiefe.key": 920.0
},
"doc_count": 144
},
{
"key": {
"multi-tiefe.sorting": 1120.0,
"multi-tiefe.key": 1120.0
},
"doc_count": 144
},
{
"key": {
"multi-tiefe.sorting": 1200.0,
"multi-tiefe.key": 1200.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 1240.0,
"multi-tiefe.key": 1240.0
},
"doc_count": 2
},
{
"key": {
"multi-tiefe.sorting": 1320.0,
"multi-tiefe.key": 1320.0
},
"doc_count": 144
},
{
"key": {
"multi-tiefe.sorting": 1380.0,
"multi-tiefe.key": 1380.0
},
"doc_count": 24
},
{
"key": {
"multi-tiefe.sorting": 1720.0,
"multi-tiefe.key": 1720.0
},
"doc_count": 72
},
{
"key": {
"multi-tiefe.sorting": 2120.0,
"multi-tiefe.key": 2120.0
},
"doc_count": 72
},
{
"key": {
"multi-tiefe.sorting": 2520.0,
"multi-tiefe.key": 2520.0
},
"doc_count": 72
},
{
"key": {
"multi-tiefe.sorting": 2580.0,
"multi-tiefe.key": 2580.0
},
"doc_count": 24
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Zubeh\u00f6r",
"multi-regalausfuehrung.key": "Zubeh\u00f6r"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 154
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 2
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundregal",
"multi-regalausfuehrung.key": "Grundregal"
},
"doc_count": 152
},
{
"key": {
"multi-regalausfuehrung.sorting": "Regalreihe",
"multi-regalausfuehrung.key": "Regalreihe"
},
"doc_count": 608
},
{
"key": {
"multi-regalausfuehrung.sorting": "Zubeh\u00f6r",
"multi-regalausfuehrung.key": "Zubeh\u00f6r"
},
"doc_count": 1
}
]
},
"multi-traglastKragarm": {
"after_key": {
"multi-traglastKragarm.sorting": 1100.0,
"multi-traglastKragarm.key": 1100.0
},
"buckets": [
{
"key": {
"multi-traglastKragarm.sorting": 200.0,
"multi-traglastKragarm.key": 200.0
},
"doc_count": 4
},
{
"key": {
"multi-traglastKragarm.sorting": 370.0,
"multi-traglastKragarm.key": 370.0
},
"doc_count": 144
},
{
"key": {
"multi-traglastKragarm.sorting": 450.0,
"multi-traglastKragarm.key": 450.0
},
"doc_count": 144
},
{
"key": {
"multi-traglastKragarm.sorting": 550.0,
"multi-traglastKragarm.key": 550.0
},
"doc_count": 144
},
{
"key": {
"multi-traglastKragarm.sorting": 730.0,
"multi-traglastKragarm.key": 730.0
},
"doc_count": 104
},
{
"key": {
"multi-traglastKragarm.sorting": 740.0,
"multi-traglastKragarm.key": 740.0
},
"doc_count": 40
},
{
"key": {
"multi-traglastKragarm.sorting": 800.0,
"multi-traglastKragarm.key": 800.0
},
"doc_count": 49
},
{
"key": {
"multi-traglastKragarm.sorting": 870.0,
"multi-traglastKragarm.key": 870.0
},
"doc_count": 144
},
{
"key": {
"multi-traglastKragarm.sorting": 1100.0,
"multi-traglastKragarm.key": 1100.0
},
"doc_count": 144
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 930
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|