| 1 |
16.59 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":"62dc833447e7e08270ead97ad4ab5417"}},{"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": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 164,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "d457bb2f7e63974fcf6834bb2d3dc36d",
"_score": 1100.0,
"_source": {
"id": "d457bb2f7e63974fcf6834bb2d3dc36d",
"autoIncrement": 95549.0
},
"fields": {
"displayGroup": [
"af02c3fe1f1f7050e2a36f9653f05c87"
]
},
"sort": [
90,
1100.0,
0,
95549,
"d457bb2f7e63974fcf6834bb2d3dc36d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6fac18948377dbbfc85b85c03b42cc98",
"_score": 1100.0,
"_source": {
"id": "6fac18948377dbbfc85b85c03b42cc98",
"autoIncrement": 95547.0
},
"fields": {
"displayGroup": [
"3277dd2548ec43d25633246cf9d5b7e8"
]
},
"sort": [
89,
1100.0,
0,
95547,
"6fac18948377dbbfc85b85c03b42cc98"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6adda52a263dd18b31157ad6c75f4631",
"_score": 1100.0,
"_source": {
"id": "6adda52a263dd18b31157ad6c75f4631",
"autoIncrement": 121833.0
},
"fields": {
"displayGroup": [
"6636188b80f1dface8284b4fe712e3fc"
]
},
"sort": [
88,
1100.0,
0,
121833,
"6adda52a263dd18b31157ad6c75f4631"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ae0a89054060b8692a144b2a9ff77a03",
"_score": 1100.0,
"_source": {
"id": "ae0a89054060b8692a144b2a9ff77a03",
"autoIncrement": 136914.0
},
"fields": {
"displayGroup": [
"37e91abf2aa30177bbdf2815436893f8"
]
},
"sort": [
87,
1100.0,
0,
136914,
"ae0a89054060b8692a144b2a9ff77a03"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "203c5cde6e5873a9b173c6eb84f01b8d",
"_score": 1100.0,
"_source": {
"id": "203c5cde6e5873a9b173c6eb84f01b8d",
"autoIncrement": 136915.0
},
"fields": {
"displayGroup": [
"22a440f578bea1af4c1c9aa96c947133"
]
},
"sort": [
86,
1100.0,
0,
136915,
"203c5cde6e5873a9b173c6eb84f01b8d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a81ab5beff9c0c3d76cbd24c29cb85e9",
"_score": 1100.0,
"_source": {
"id": "a81ab5beff9c0c3d76cbd24c29cb85e9",
"autoIncrement": 137594.0
},
"fields": {
"displayGroup": [
"b09423234e6cbdba8a497f13aaa129b0"
]
},
"sort": [
85,
1100.0,
0,
137594,
"a81ab5beff9c0c3d76cbd24c29cb85e9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4df6fd8c3b52094f42b6492e1836971a",
"_score": 1100.0,
"_source": {
"id": "4df6fd8c3b52094f42b6492e1836971a",
"autoIncrement": 39974.0
},
"fields": {
"displayGroup": [
"8b9c57319abee1a62ae11bc10d80167e"
]
},
"sort": [
83,
1100.0,
0,
39974,
"4df6fd8c3b52094f42b6492e1836971a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7b95a6273a7f7e8180ca6feff0647d3c",
"_score": 1100.0,
"_source": {
"id": "7b95a6273a7f7e8180ca6feff0647d3c",
"autoIncrement": 39973.0
},
"fields": {
"displayGroup": [
"e80c4ca6be26b67f8a87278263e52105"
]
},
"sort": [
82,
1100.0,
0,
39973,
"7b95a6273a7f7e8180ca6feff0647d3c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dd53c61389d67f999d12b03d250c7d12",
"_score": 1100.0,
"_source": {
"id": "dd53c61389d67f999d12b03d250c7d12",
"autoIncrement": 39972.0
},
"fields": {
"displayGroup": [
"231c3ec1b2dbc678441a168220221271"
]
},
"sort": [
81,
1100.0,
0,
39972,
"dd53c61389d67f999d12b03d250c7d12"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8001d7d529d65d533d382620453786e5",
"_score": 1100.0,
"_source": {
"id": "8001d7d529d65d533d382620453786e5",
"autoIncrement": 39971.0
},
"fields": {
"displayGroup": [
"aa38049bceb617d24cbd6288d6959b8f"
]
},
"sort": [
80,
1100.0,
0,
39971,
"8001d7d529d65d533d382620453786e5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e34baaeea8c6eef5b18b08ce9aacd57c",
"_score": 1100.0,
"_source": {
"id": "e34baaeea8c6eef5b18b08ce9aacd57c",
"autoIncrement": 39970.0
},
"fields": {
"displayGroup": [
"541a5d60a5e5aae41fb59a2c1491f979"
]
},
"sort": [
79,
1100.0,
0,
39970,
"e34baaeea8c6eef5b18b08ce9aacd57c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e199e07c571bb49a46aacc2faa7b80b9",
"_score": 1100.0,
"_source": {
"id": "e199e07c571bb49a46aacc2faa7b80b9",
"autoIncrement": 39969.0
},
"fields": {
"displayGroup": [
"81a534ca4e9b6097cbb720347e227406"
]
},
"sort": [
78,
1100.0,
0,
39969,
"e199e07c571bb49a46aacc2faa7b80b9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f5b8707e55f75d8e706d832da14f3123",
"_score": 1100.0,
"_source": {
"id": "f5b8707e55f75d8e706d832da14f3123",
"autoIncrement": 39968.0
},
"fields": {
"displayGroup": [
"442318a70c7cc2b62834e1f0b19d44a4"
]
},
"sort": [
77,
1100.0,
0,
39968,
"f5b8707e55f75d8e706d832da14f3123"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "705847bdccbe535a689e9007430fe658",
"_score": 1100.0,
"_source": {
"id": "705847bdccbe535a689e9007430fe658",
"autoIncrement": 39967.0
},
"fields": {
"displayGroup": [
"ea5934a29bf9ab9c292091700e8281e7"
]
},
"sort": [
76,
1100.0,
0,
39967,
"705847bdccbe535a689e9007430fe658"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "217c1cdb70143665fd3fd18c6a698b1e",
"_score": 1100.0,
"_source": {
"id": "217c1cdb70143665fd3fd18c6a698b1e",
"autoIncrement": 39966.0
},
"fields": {
"displayGroup": [
"84cfac732f0b01cb607b2bc14d8d0398"
]
},
"sort": [
75,
1100.0,
0,
39966,
"217c1cdb70143665fd3fd18c6a698b1e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3523fcc6435ac0866ab75f4aa591edde",
"_score": 1100.0,
"_source": {
"id": "3523fcc6435ac0866ab75f4aa591edde",
"autoIncrement": 39965.0
},
"fields": {
"displayGroup": [
"d3956320904bbe5726d53d48afc5fc2a"
]
},
"sort": [
74,
1100.0,
0,
39965,
"3523fcc6435ac0866ab75f4aa591edde"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "32b9d0934a881a16c1de1d7dba71afbd",
"_score": 1100.0,
"_source": {
"id": "32b9d0934a881a16c1de1d7dba71afbd",
"autoIncrement": 39964.0
},
"fields": {
"displayGroup": [
"760941933b150bf62524a10c1149db9c"
]
},
"sort": [
73,
1100.0,
0,
39964,
"32b9d0934a881a16c1de1d7dba71afbd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d129e733d2e1e1771798d48122692322",
"_score": 1100.0,
"_source": {
"id": "d129e733d2e1e1771798d48122692322",
"autoIncrement": 39963.0
},
"fields": {
"displayGroup": [
"fdd254c3f0b4b44b5825b550695104fb"
]
},
"sort": [
72,
1100.0,
0,
39963,
"d129e733d2e1e1771798d48122692322"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "239fdf623e5ba132bac8a2e515ad024e",
"_score": 1100.0,
"_source": {
"id": "239fdf623e5ba132bac8a2e515ad024e",
"autoIncrement": 39962.0
},
"fields": {
"displayGroup": [
"12751fdf3a0c74e8a7412b3fed9ef4ff"
]
},
"sort": [
71,
1100.0,
0,
39962,
"239fdf623e5ba132bac8a2e515ad024e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bbbee4bdf039ea99178bfcdfe46fbcc1",
"_score": 1100.0,
"_source": {
"id": "bbbee4bdf039ea99178bfcdfe46fbcc1",
"autoIncrement": 39923.0
},
"fields": {
"displayGroup": [
"038581b970698d363826384c57228c32"
]
},
"sort": [
70,
1100.0,
0,
39923,
"bbbee4bdf039ea99178bfcdfe46fbcc1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2f5ec1df0008eff8e521373e2af11c34",
"_score": 1100.0,
"_source": {
"id": "2f5ec1df0008eff8e521373e2af11c34",
"autoIncrement": 39912.0
},
"fields": {
"displayGroup": [
"bb5045d51f0fba4441b723df6558961e"
]
},
"sort": [
69,
1100.0,
0,
39912,
"2f5ec1df0008eff8e521373e2af11c34"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2df3a902d378a565b2749367d8212416",
"_score": 1100.0,
"_source": {
"id": "2df3a902d378a565b2749367d8212416",
"autoIncrement": 39911.0
},
"fields": {
"displayGroup": [
"c4c25d7d385c73f36f554e62eb118e79"
]
},
"sort": [
68,
1100.0,
0,
39911,
"2df3a902d378a565b2749367d8212416"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "24bc6a3391411416f2b3f5622c0d0902",
"_score": 1100.0,
"_source": {
"id": "24bc6a3391411416f2b3f5622c0d0902",
"autoIncrement": 39910.0
},
"fields": {
"displayGroup": [
"6dae13f4804c6ad1dde48a0c6ad186df"
]
},
"sort": [
67,
1100.0,
0,
39910,
"24bc6a3391411416f2b3f5622c0d0902"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9ec2e4b1abe2945a188c3c3219a67977",
"_score": 1100.0,
"_source": {
"id": "9ec2e4b1abe2945a188c3c3219a67977",
"autoIncrement": 39909.0
},
"fields": {
"displayGroup": [
"1b7333f4c8f1369021d8494a035dd927"
]
},
"sort": [
66,
1100.0,
0,
39909,
"9ec2e4b1abe2945a188c3c3219a67977"
]
}
]
},
"aggregations": {
"total-count": {
"value": 164
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.25 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":"62dc833447e7e08270ead97ad4ab5417"}},{"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_rule5b270e597f114fbba683590b4a9cb579_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_rule5b270e597f114fbba683590b4a9cb579_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-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": "62dc833447e7e08270ead97ad4ab5417"
}
},
{
"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_rule5b270e597f114fbba683590b4a9cb579_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_rule5b270e597f114fbba683590b4a9cb579_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-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": 164,
"min": 185.0,
"max": 2971.0,
"avg": 815.614756097561,
"sum": 133760.82
},
"rating-exists": {
"doc_count": 164,
"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": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "2fc223ce6476978f04619d762abe9f3e",
"manufacturer-count-filter.key": "2fc223ce6476978f04619d762abe9f3e"
},
"doc_count": 70
},
{
"key": {
"manufacturer-count-filter.sorting": "6face5c8353d05da0eeacdd4ef058334",
"manufacturer-count-filter.key": "6face5c8353d05da0eeacdd4ef058334"
},
"doc_count": 90
},
{
"key": {
"manufacturer-count-filter.sorting": "7bd063d302bdd813d4944cec5509cfa3",
"manufacturer-count-filter.key": "7bd063d302bdd813d4944cec5509cfa3"
},
"doc_count": 4
}
]
},
"bool-reduced": {
"doc_count": 5,
"bool-reduced": {
"value": 5
}
},
"width": {
"count": 164,
"min": 279.0,
"max": 1350.0,
"avg": 582.2439024390244,
"sum": 95488.0
},
"width-stats": {
"doc_count": 164,
"width-stats": {
"count": 164,
"min": 279.0,
"max": 1350.0,
"avg": 582.2439024390244,
"sum": 95488.0
}
},
"height": {
"count": 163,
"min": 98.0,
"max": 1357.0,
"avg": 908.6687116564417,
"sum": 148113.0
},
"height-stats": {
"doc_count": 163,
"height-stats": {
"count": 163,
"min": 98.0,
"max": 1357.0,
"avg": 908.6687116564417,
"sum": 148113.0
}
},
"tiefe": {
"count": 164,
"min": 380.0,
"max": 960.0,
"avg": 564.170731707317,
"sum": 92524.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Schubladenschr\u00e4nke",
"multi-typModel.key": "Schubladenschr\u00e4nke"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "H\u00e4ngeregistraturschr\u00e4nke",
"multi-typModel.key": "H\u00e4ngeregistraturschr\u00e4nke"
},
"doc_count": 90
},
{
"key": {
"multi-typModel.sorting": "Schubladenschr\u00e4nke",
"multi-typModel.key": "Schubladenschr\u00e4nke"
},
"doc_count": 74
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "RAL 7021 schwarzgrau",
"multi-farbe.key": "RAL 7021 schwarzgrau"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7021 schwarzgrau",
"multi-farbe.key": "RAL 7021 schwarzgrau"
},
"doc_count": 1
}
]
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 150
},
{
"key": {
"multi-material.sorting": "Stahlblech",
"multi-material.key": "Stahlblech"
},
"doc_count": 10
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "6face5c8353d05da0eeacdd4ef058334",
"doc_count": 90
},
{
"key": "2fc223ce6476978f04619d762abe9f3e",
"doc_count": 70
},
{
"key": "7bd063d302bdd813d4944cec5509cfa3",
"doc_count": 4
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|