| 1 |
17.87 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":"eaaf9741202be6b0122e0b700dc5ad17"}},{"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":168,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 376,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "3b9f07f097754769f98afac21dcf5169",
"_score": 1100.0,
"_source": {
"id": "3b9f07f097754769f98afac21dcf5169",
"autoIncrement": 114839.0
},
"fields": {
"displayGroup": [
"bba15a9933d80f69dddb23f672f85de4"
]
},
"sort": [
0,
1100.0,
0,
114839,
"3b9f07f097754769f98afac21dcf5169"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ab03b3183fd0e9446679c2002ac41565",
"_score": 1100.0,
"_source": {
"id": "ab03b3183fd0e9446679c2002ac41565",
"autoIncrement": 114838.0
},
"fields": {
"displayGroup": [
"4bdee5a7f8afefe3b60a0ff970485202"
]
},
"sort": [
0,
1100.0,
0,
114838,
"ab03b3183fd0e9446679c2002ac41565"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0f2deedd3002023be643b3120f2b09a5",
"_score": 1100.0,
"_source": {
"id": "0f2deedd3002023be643b3120f2b09a5",
"autoIncrement": 114837.0
},
"fields": {
"displayGroup": [
"3f9618cb631050398d66c20d7d2fcc67"
]
},
"sort": [
0,
1100.0,
0,
114837,
"0f2deedd3002023be643b3120f2b09a5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "586eb19c2c7e6fb8b24f010a206e8db7",
"_score": 1100.0,
"_source": {
"id": "586eb19c2c7e6fb8b24f010a206e8db7",
"autoIncrement": 114836.0
},
"fields": {
"displayGroup": [
"5ff52adf40dfb91d241de0283b555392"
]
},
"sort": [
0,
1100.0,
0,
114836,
"586eb19c2c7e6fb8b24f010a206e8db7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "604d4a5a1ba7c5635d3d55f1385980dc",
"_score": 1100.0,
"_source": {
"id": "604d4a5a1ba7c5635d3d55f1385980dc",
"autoIncrement": 114835.0
},
"fields": {
"displayGroup": [
"a6aadfc16ce6d756477a3fa705b4faa4"
]
},
"sort": [
0,
1100.0,
0,
114835,
"604d4a5a1ba7c5635d3d55f1385980dc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6afcb0d525805d92d0371660c954d24f",
"_score": 1100.0,
"_source": {
"id": "6afcb0d525805d92d0371660c954d24f",
"autoIncrement": 114834.0
},
"fields": {
"displayGroup": [
"6d830b76e8b1291d5e183bc23a596dba"
]
},
"sort": [
0,
1100.0,
0,
114834,
"6afcb0d525805d92d0371660c954d24f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "56eeb46356f343d04eceaf19087ca564",
"_score": 1100.0,
"_source": {
"id": "56eeb46356f343d04eceaf19087ca564",
"autoIncrement": 114833.0
},
"fields": {
"displayGroup": [
"672e87b3eeab8f025b4bff99f16fa3e5"
]
},
"sort": [
0,
1100.0,
0,
114833,
"56eeb46356f343d04eceaf19087ca564"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5bab30ef2c0d203e8355779772b87c32",
"_score": 1100.0,
"_source": {
"id": "5bab30ef2c0d203e8355779772b87c32",
"autoIncrement": 114832.0
},
"fields": {
"displayGroup": [
"7b5920951233f2b43747062450b1d3a1"
]
},
"sort": [
0,
1100.0,
0,
114832,
"5bab30ef2c0d203e8355779772b87c32"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "609fae111433bcf71ed638e047954fa0",
"_score": 1100.0,
"_source": {
"id": "609fae111433bcf71ed638e047954fa0",
"autoIncrement": 114831.0
},
"fields": {
"displayGroup": [
"aa768450baca58a04165b25c6a6153a5"
]
},
"sort": [
0,
1100.0,
0,
114831,
"609fae111433bcf71ed638e047954fa0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "46917ddc780b47d4426918b6003e0fc8",
"_score": 1100.0,
"_source": {
"id": "46917ddc780b47d4426918b6003e0fc8",
"autoIncrement": 114830.0
},
"fields": {
"displayGroup": [
"4a22bc5ba7652014984656e170e421fb"
]
},
"sort": [
0,
1100.0,
0,
114830,
"46917ddc780b47d4426918b6003e0fc8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bf40c36230a6ca3beb855f962ba4eb91",
"_score": 1100.0,
"_source": {
"id": "bf40c36230a6ca3beb855f962ba4eb91",
"autoIncrement": 114829.0
},
"fields": {
"displayGroup": [
"1ee08a3318720678eb5ba5c69db01e7e"
]
},
"sort": [
0,
1100.0,
0,
114829,
"bf40c36230a6ca3beb855f962ba4eb91"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f613c5a6de8a0ab908d36c5df46d06e2",
"_score": 1100.0,
"_source": {
"id": "f613c5a6de8a0ab908d36c5df46d06e2",
"autoIncrement": 114828.0
},
"fields": {
"displayGroup": [
"fdee1e2b5192222e1e6f3a93f04eca8c"
]
},
"sort": [
0,
1100.0,
0,
114828,
"f613c5a6de8a0ab908d36c5df46d06e2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bb2d421c068af6c625807596c0babce3",
"_score": 1100.0,
"_source": {
"id": "bb2d421c068af6c625807596c0babce3",
"autoIncrement": 114827.0
},
"fields": {
"displayGroup": [
"c1582a70958dfe304dd3f8e9727fce69"
]
},
"sort": [
0,
1100.0,
0,
114827,
"bb2d421c068af6c625807596c0babce3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e7bb0f766805ae101fe89368fd92c13f",
"_score": 1100.0,
"_source": {
"id": "e7bb0f766805ae101fe89368fd92c13f",
"autoIncrement": 114826.0
},
"fields": {
"displayGroup": [
"ce359069e502e274108b37cd9f54bb4f"
]
},
"sort": [
0,
1100.0,
0,
114826,
"e7bb0f766805ae101fe89368fd92c13f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cc92277bde157f6114ace2120ed8669e",
"_score": 1100.0,
"_source": {
"id": "cc92277bde157f6114ace2120ed8669e",
"autoIncrement": 114825.0
},
"fields": {
"displayGroup": [
"16fb815a1d52c1b147ab855142ebe6a0"
]
},
"sort": [
0,
1100.0,
0,
114825,
"cc92277bde157f6114ace2120ed8669e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "48a6782926be96aee025d1afbd5a6d3f",
"_score": 1100.0,
"_source": {
"id": "48a6782926be96aee025d1afbd5a6d3f",
"autoIncrement": 114824.0
},
"fields": {
"displayGroup": [
"85772aef817df10a298b3337fb55fc37"
]
},
"sort": [
0,
1100.0,
0,
114824,
"48a6782926be96aee025d1afbd5a6d3f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "479bc2e463251e0a3ae57a852d3664a1",
"_score": 1100.0,
"_source": {
"id": "479bc2e463251e0a3ae57a852d3664a1",
"autoIncrement": 114823.0
},
"fields": {
"displayGroup": [
"164053c693733d2242ce9550e5226ca3"
]
},
"sort": [
0,
1100.0,
0,
114823,
"479bc2e463251e0a3ae57a852d3664a1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f23839be3872269793bd9e61630bee37",
"_score": 1100.0,
"_source": {
"id": "f23839be3872269793bd9e61630bee37",
"autoIncrement": 114822.0
},
"fields": {
"displayGroup": [
"aaf5fd801446fabb9caf4a1c71ea2848"
]
},
"sort": [
0,
1100.0,
0,
114822,
"f23839be3872269793bd9e61630bee37"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "33eca8ed99819cb284b5d2513cd27c0a",
"_score": 1100.0,
"_source": {
"id": "33eca8ed99819cb284b5d2513cd27c0a",
"autoIncrement": 114821.0
},
"fields": {
"displayGroup": [
"37ff2aa0c1b55b2b9dc336c2e325846b"
]
},
"sort": [
0,
1100.0,
0,
114821,
"33eca8ed99819cb284b5d2513cd27c0a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5490d7c0403651392aa8ea603d73f62a",
"_score": 1100.0,
"_source": {
"id": "5490d7c0403651392aa8ea603d73f62a",
"autoIncrement": 114820.0
},
"fields": {
"displayGroup": [
"86e1e909ef7354ef183e64aeed984213"
]
},
"sort": [
0,
1100.0,
0,
114820,
"5490d7c0403651392aa8ea603d73f62a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "50f6cc7fbc91690cf9e6ba512258f1ce",
"_score": 1100.0,
"_source": {
"id": "50f6cc7fbc91690cf9e6ba512258f1ce",
"autoIncrement": 114819.0
},
"fields": {
"displayGroup": [
"2190638061594176da804f0a361ea335"
]
},
"sort": [
0,
1100.0,
0,
114819,
"50f6cc7fbc91690cf9e6ba512258f1ce"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3d5e96f8b9fe6c183cefa13a653baa55",
"_score": 1100.0,
"_source": {
"id": "3d5e96f8b9fe6c183cefa13a653baa55",
"autoIncrement": 114818.0
},
"fields": {
"displayGroup": [
"733711bf1deaa4a9e44162057317fd6a"
]
},
"sort": [
0,
1100.0,
0,
114818,
"3d5e96f8b9fe6c183cefa13a653baa55"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a4038d0333b8311466668d1382f3e06e",
"_score": 1100.0,
"_source": {
"id": "a4038d0333b8311466668d1382f3e06e",
"autoIncrement": 114817.0
},
"fields": {
"displayGroup": [
"7bcc6402527f95fbd1af8761c32d3ea1"
]
},
"sort": [
0,
1100.0,
0,
114817,
"a4038d0333b8311466668d1382f3e06e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "716973ab382aa88e0090a98162aaef21",
"_score": 1100.0,
"_source": {
"id": "716973ab382aa88e0090a98162aaef21",
"autoIncrement": 114816.0
},
"fields": {
"displayGroup": [
"c5c74d780d30d0a0cf29067fb78442e5"
]
},
"sort": [
0,
1100.0,
0,
114816,
"716973ab382aa88e0090a98162aaef21"
]
}
]
},
"aggregations": {
"total-count": {
"value": 376
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.16 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":"eaaf9741202be6b0122e0b700dc5ad17"}},{"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-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"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": "eaaf9741202be6b0122e0b700dc5ad17"
}
},
{
"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-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"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": 376,
"min": 399.0,
"max": 2379.0,
"avg": 956.7712765957447,
"sum": 359746.0
},
"rating-exists": {
"doc_count": 376,
"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": 268
}
]
},
"bool-reduced": {
"doc_count": 24,
"bool-reduced": {
"value": 24
}
},
"width": {
"count": 352,
"min": 1500.0,
"max": 11073.0,
"avg": 2174.096590909091,
"sum": 765282.0
},
"width-stats": {
"doc_count": 352,
"width-stats": {
"count": 352,
"min": 1500.0,
"max": 11073.0,
"avg": 2174.096590909091,
"sum": 765282.0
}
},
"height": {
"count": 352,
"min": 2000.0,
"max": 3000.0,
"avg": 2424.715909090909,
"sum": 853500.0
},
"height-stats": {
"doc_count": 352,
"height-stats": {
"count": 352,
"min": 2000.0,
"max": 3000.0,
"avg": 2424.715909090909,
"sum": 853500.0
}
},
"tiefe": {
"count": 352,
"min": 400.0,
"max": 1000.0,
"avg": 706.8181818181819,
"sum": 248800.0
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 4
}
]
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Weitspannregale Set",
"multi-typModel.key": "Weitspannregale Set"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Weitspannregale Anbaufeld",
"multi-typModel.key": "Weitspannregale Anbaufeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Grundfeld",
"multi-typModel.key": "Weitspannregale Grundfeld"
},
"doc_count": 186
},
{
"key": {
"multi-typModel.sorting": "Weitspannregale Set",
"multi-typModel.key": "Weitspannregale Set"
},
"doc_count": 4
}
]
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "3 St\u00fcck",
"multi-anzahlFachboeden.key": "3 St\u00fcck"
},
"doc_count": 84
},
{
"key": {
"multi-anzahlFachboeden.sorting": "4 St\u00fcck",
"multi-anzahlFachboeden.key": "4 St\u00fcck"
},
"doc_count": 228
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 36
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 268
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|