| 1 |
14.94 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":"376d57efd832234650f4f9a4a08bd471"}},{"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":24,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 102,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "c1b0a8f0437c41aa74fcc3b377599177",
"_score": 1100.0,
"_source": {
"id": "c1b0a8f0437c41aa74fcc3b377599177",
"autoIncrement": 131055.0
},
"fields": {
"displayGroup": [
"e74649b185a7d2a5179ff72fe8792fca"
]
},
"sort": [
0,
1100.0,
0,
131055,
"c1b0a8f0437c41aa74fcc3b377599177"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6482b1791fa9940caf12b0bb6be11c85",
"_score": 1100.0,
"_source": {
"id": "6482b1791fa9940caf12b0bb6be11c85",
"autoIncrement": 131054.0
},
"fields": {
"displayGroup": [
"52aff12b26ce80ef0afab70c6154027e"
]
},
"sort": [
0,
1100.0,
0,
131054,
"6482b1791fa9940caf12b0bb6be11c85"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cc3b8610246ab5498aa412b8ede84f88",
"_score": 1100.0,
"_source": {
"id": "cc3b8610246ab5498aa412b8ede84f88",
"autoIncrement": 131053.0
},
"fields": {
"displayGroup": [
"5b3cf80f59a25ead5a83353b698181c2"
]
},
"sort": [
0,
1100.0,
0,
131053,
"cc3b8610246ab5498aa412b8ede84f88"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "97ebb4a364cb0b88468cd8c42bfd8224",
"_score": 1100.0,
"_source": {
"id": "97ebb4a364cb0b88468cd8c42bfd8224",
"autoIncrement": 130764.0
},
"fields": {
"displayGroup": [
"93e564ce644cd20fb1ba0bb44ba61441"
]
},
"sort": [
0,
1100.0,
0,
130764,
"97ebb4a364cb0b88468cd8c42bfd8224"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "db30c85ca1634a5e0eff016b84fbb1a0",
"_score": 1100.0,
"_source": {
"id": "db30c85ca1634a5e0eff016b84fbb1a0",
"autoIncrement": 130763.0
},
"fields": {
"displayGroup": [
"32217e6b6e287e3ba3aede8b2c5222ba"
]
},
"sort": [
0,
1100.0,
0,
130763,
"db30c85ca1634a5e0eff016b84fbb1a0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "90de21380fe99c0ddab09092075b596c",
"_score": 1100.0,
"_source": {
"id": "90de21380fe99c0ddab09092075b596c",
"autoIncrement": 130762.0
},
"fields": {
"displayGroup": [
"eb6b17f9f3dc91a197c1f5360d4090ac"
]
},
"sort": [
0,
1100.0,
0,
130762,
"90de21380fe99c0ddab09092075b596c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "575ccad14124d0d7617e6fb80f4f7dc5",
"_score": 1100.0,
"_source": {
"id": "575ccad14124d0d7617e6fb80f4f7dc5",
"autoIncrement": 130761.0
},
"fields": {
"displayGroup": [
"100c08923c9c0cd17e70bd60ba988fd7"
]
},
"sort": [
0,
1100.0,
0,
130761,
"575ccad14124d0d7617e6fb80f4f7dc5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "03e101dcad51a53fd0f18cdc6a9ebd9b",
"_score": 1100.0,
"_source": {
"id": "03e101dcad51a53fd0f18cdc6a9ebd9b",
"autoIncrement": 130760.0
},
"fields": {
"displayGroup": [
"9c60c09cc2a5de31dbb1c584f54ca791"
]
},
"sort": [
0,
1100.0,
0,
130760,
"03e101dcad51a53fd0f18cdc6a9ebd9b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9a3bcd9420bcafb6904f54c7c066ed61",
"_score": 1100.0,
"_source": {
"id": "9a3bcd9420bcafb6904f54c7c066ed61",
"autoIncrement": 130759.0
},
"fields": {
"displayGroup": [
"a183031eea60a6767c36a6dd0d6c9ed6"
]
},
"sort": [
0,
1100.0,
0,
130759,
"9a3bcd9420bcafb6904f54c7c066ed61"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1e91427fccd6ae98ad376590da28e8fb",
"_score": 1100.0,
"_source": {
"id": "1e91427fccd6ae98ad376590da28e8fb",
"autoIncrement": 130758.0
},
"fields": {
"displayGroup": [
"390dfc0f058f9320a7ba2e650305c360"
]
},
"sort": [
0,
1100.0,
0,
130758,
"1e91427fccd6ae98ad376590da28e8fb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d2a946e46270bbd17d896b9261ebf545",
"_score": 1100.0,
"_source": {
"id": "d2a946e46270bbd17d896b9261ebf545",
"autoIncrement": 130757.0
},
"fields": {
"displayGroup": [
"61fa213848f141cf200edddd0b14c327"
]
},
"sort": [
0,
1100.0,
0,
130757,
"d2a946e46270bbd17d896b9261ebf545"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "870b415bf1e91307f3bfd151072edee7",
"_score": 1100.0,
"_source": {
"id": "870b415bf1e91307f3bfd151072edee7",
"autoIncrement": 130756.0
},
"fields": {
"displayGroup": [
"8abb83e18e8356ed6f0d84761bb4b5b7"
]
},
"sort": [
0,
1100.0,
0,
130756,
"870b415bf1e91307f3bfd151072edee7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bd4a513c5c79a6ac867dc3e20e8c3f89",
"_score": 1100.0,
"_source": {
"id": "bd4a513c5c79a6ac867dc3e20e8c3f89",
"autoIncrement": 130754.0
},
"fields": {
"displayGroup": [
"b457614da78d38436cfb447b3a2c6950"
]
},
"sort": [
0,
1100.0,
0,
130754,
"bd4a513c5c79a6ac867dc3e20e8c3f89"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5eb1218122a75a87de3965d78a3b6161",
"_score": 1100.0,
"_source": {
"id": "5eb1218122a75a87de3965d78a3b6161",
"autoIncrement": 130753.0
},
"fields": {
"displayGroup": [
"8ac21829df8bffb2ffaa3fb85e1cdb29"
]
},
"sort": [
0,
1100.0,
0,
130753,
"5eb1218122a75a87de3965d78a3b6161"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eb8d3eca57a39dd4ab68e5a2207e0a4b",
"_score": 1100.0,
"_source": {
"id": "eb8d3eca57a39dd4ab68e5a2207e0a4b",
"autoIncrement": 130752.0
},
"fields": {
"displayGroup": [
"b3a221d2761ff640dc77f92d2ecf3b05"
]
},
"sort": [
0,
1100.0,
0,
130752,
"eb8d3eca57a39dd4ab68e5a2207e0a4b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b04fc021a78a329939d0de58157f09ca",
"_score": 1100.0,
"_source": {
"id": "b04fc021a78a329939d0de58157f09ca",
"autoIncrement": 130751.0
},
"fields": {
"displayGroup": [
"b2514ee2843a1cef4f0814ba61fcfb79"
]
},
"sort": [
0,
1100.0,
0,
130751,
"b04fc021a78a329939d0de58157f09ca"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0bd4650b1f54733e9797c159c247b41f",
"_score": 1100.0,
"_source": {
"id": "0bd4650b1f54733e9797c159c247b41f",
"autoIncrement": 130750.0
},
"fields": {
"displayGroup": [
"2abe6c5dcf4da4ac8ee8ee50b795d1bb"
]
},
"sort": [
0,
1100.0,
0,
130750,
"0bd4650b1f54733e9797c159c247b41f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d65b4188286d449dcbb2e1cc3f461eb4",
"_score": 1100.0,
"_source": {
"id": "d65b4188286d449dcbb2e1cc3f461eb4",
"autoIncrement": 130749.0
},
"fields": {
"displayGroup": [
"ade213236f3696912b6788cfacb22091"
]
},
"sort": [
0,
1100.0,
0,
130749,
"d65b4188286d449dcbb2e1cc3f461eb4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bd3d6e5109f1c3d27b72692943c7d0cc",
"_score": 1100.0,
"_source": {
"id": "bd3d6e5109f1c3d27b72692943c7d0cc",
"autoIncrement": 130748.0
},
"fields": {
"displayGroup": [
"abcdf2150e9f085cf6b0d0e4a5c19845"
]
},
"sort": [
0,
1100.0,
0,
130748,
"bd3d6e5109f1c3d27b72692943c7d0cc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7c79283143762d8f748b644f098afcfe",
"_score": 1100.0,
"_source": {
"id": "7c79283143762d8f748b644f098afcfe",
"autoIncrement": 130745.0
},
"fields": {
"displayGroup": [
"545a7ae2669a84f0817087a915ed5eb2"
]
},
"sort": [
0,
1100.0,
0,
130745,
"7c79283143762d8f748b644f098afcfe"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eca33da4d368415169941427836e1c14",
"_score": 1100.0,
"_source": {
"id": "eca33da4d368415169941427836e1c14",
"autoIncrement": 130744.0
},
"fields": {
"displayGroup": [
"dd8f20c6b2eef825d34bfc7e34818c24"
]
},
"sort": [
0,
1100.0,
0,
130744,
"eca33da4d368415169941427836e1c14"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4a0831f1cfb084c4f1d1e0053707e527",
"_score": 1100.0,
"_source": {
"id": "4a0831f1cfb084c4f1d1e0053707e527",
"autoIncrement": 130743.0
},
"fields": {
"displayGroup": [
"64a0f2f1da5210875c427a1123d5f8bd"
]
},
"sort": [
0,
1100.0,
0,
130743,
"4a0831f1cfb084c4f1d1e0053707e527"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b060baa8375a832ec6520b290325d15d",
"_score": 1100.0,
"_source": {
"id": "b060baa8375a832ec6520b290325d15d",
"autoIncrement": 130742.0
},
"fields": {
"displayGroup": [
"686a87547cf81b3a6db3d96f7e8e0eb7"
]
},
"sort": [
0,
1100.0,
0,
130742,
"b060baa8375a832ec6520b290325d15d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5a18f167e1b628f5a4536bc74fdc82d0",
"_score": 1100.0,
"_source": {
"id": "5a18f167e1b628f5a4536bc74fdc82d0",
"autoIncrement": 130741.0
},
"fields": {
"displayGroup": [
"d235e7c2c2e4c91c85b96b89f3b1163d"
]
},
"sort": [
0,
1100.0,
0,
130741,
"5a18f167e1b628f5a4536bc74fdc82d0"
]
}
]
},
"aggregations": {
"total-count": {
"value": 102
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.02 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":"376d57efd832234650f4f9a4a08bd471"}},{"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-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"multi-farbeKette":{"composite":{"sources":[{"multi-farbeKette.sorting":{"terms":{"field":"attribute_farbeKette","order":"ASC"}}},{"multi-farbeKette.key":{"terms":{"field":"attribute_farbeKette"}}}],"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": "376d57efd832234650f4f9a4a08bd471"
}
},
{
"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-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"multi-farbeKette": {
"composite": {
"sources": [
{
"multi-farbeKette.sorting": {
"terms": {
"field": "attribute_farbeKette",
"order": "ASC"
}
}
},
{
"multi-farbeKette.key": {
"terms": {
"field": "attribute_farbeKette"
}
}
}
],
"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": 102,
"min": 39.0,
"max": 436.0,
"avg": 169.80392156862746,
"sum": 17320.0
},
"rating-exists": {
"doc_count": 102,
"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": "c7e47fd9fd0087797d9c8c0ffb3ec956",
"manufacturer-count-filter.key": "c7e47fd9fd0087797d9c8c0ffb3ec956"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "1bd1b69b11a26dad77696adcb548468e",
"manufacturer-count-filter.key": "1bd1b69b11a26dad77696adcb548468e"
},
"doc_count": 12
},
{
"key": {
"manufacturer-count-filter.sorting": "5e579634c7914d8724257eef08e3e27e",
"manufacturer-count-filter.key": "5e579634c7914d8724257eef08e3e27e"
},
"doc_count": 18
},
{
"key": {
"manufacturer-count-filter.sorting": "c7e47fd9fd0087797d9c8c0ffb3ec956",
"manufacturer-count-filter.key": "c7e47fd9fd0087797d9c8c0ffb3ec956"
},
"doc_count": 72
}
]
},
"bool-reduced": {
"doc_count": 4,
"bool-reduced": {
"value": 4
}
},
"width": {
"count": 72,
"min": 60.0,
"max": 1000.0,
"avg": 91.02777777777777,
"sum": 6554.0
},
"width-stats": {
"doc_count": 72,
"width-stats": {
"count": 72,
"min": 60.0,
"max": 1000.0,
"avg": 91.02777777777777,
"sum": 6554.0
}
},
"height": {
"count": 14,
"min": 450.0,
"max": 1000.0,
"avg": 694.2857142857143,
"sum": 9720.0
},
"height-stats": {
"doc_count": 14,
"height-stats": {
"count": 14,
"min": 450.0,
"max": 1000.0,
"avg": 694.2857142857143,
"sum": 9720.0
}
},
"tiefe": {
"count": 16,
"min": 70.0,
"max": 1300.0,
"avg": 149.375,
"sum": 2390.0
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "wei\u00df\/rot",
"multi-farbe.key": "wei\u00df\/rot"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "Edelstahl",
"multi-farbe.key": "Edelstahl"
},
"doc_count": 37
},
{
"key": {
"multi-farbe.sorting": "RAL 8019 antikbraun",
"multi-farbe.key": "RAL 8019 antikbraun"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "RAL\u00a07016 anthrazitgrau",
"multi-farbe.key": "RAL\u00a07016 anthrazitgrau"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "aluminium\/rot",
"multi-farbe.key": "aluminium\/rot"
},
"doc_count": 10
},
{
"key": {
"multi-farbe.sorting": "edelstahl",
"multi-farbe.key": "edelstahl"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "gelb\/schwarz",
"multi-farbe.key": "gelb\/schwarz"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "orange\/silber",
"multi-farbe.key": "orange\/silber"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "rot\/wei\u00df",
"multi-farbe.key": "rot\/wei\u00df"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "schwarz\/silber",
"multi-farbe.key": "schwarz\/silber"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "verzinkt\/rot",
"multi-farbe.key": "verzinkt\/rot"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "wei\u00df\/rot",
"multi-farbe.key": "wei\u00df\/rot"
},
"doc_count": 14
}
]
},
"multi-farbeKette": {
"buckets": []
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Aluminium",
"multi-material.key": "Aluminium"
},
"doc_count": 17
},
{
"key": {
"multi-material.sorting": "Edelstahl",
"multi-material.key": "Edelstahl"
},
"doc_count": 39
},
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 7
},
{
"key": {
"multi-material.sorting": "Polyurethan",
"multi-material.key": "Polyurethan"
},
"doc_count": 12
},
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 15
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "c7e47fd9fd0087797d9c8c0ffb3ec956",
"doc_count": 72
},
{
"key": "5e579634c7914d8724257eef08e3e27e",
"doc_count": 18
},
{
"key": "1bd1b69b11a26dad77696adcb548468e",
"doc_count": 12
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|