| 1 |
17.23 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":"e5ef510b214a7c8cee8aa2d173c070b4"}},{"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":72,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 437,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "42287ab52a4d1b6263b6dfc2ecbe94ec",
"_score": 1100.0,
"_source": {
"id": "42287ab52a4d1b6263b6dfc2ecbe94ec",
"autoIncrement": 114935.0
},
"fields": {
"displayGroup": [
"3a1e04baddb24bd1ab34e7e415dd4578"
]
},
"sort": [
0,
1100.0,
0,
114935,
"42287ab52a4d1b6263b6dfc2ecbe94ec"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "cfa3e7a46e10c7c9535ef31c3ab7f3ed",
"_score": 1100.0,
"_source": {
"id": "cfa3e7a46e10c7c9535ef31c3ab7f3ed",
"autoIncrement": 114934.0
},
"fields": {
"displayGroup": [
"b30cf120d8d5706667f8701e4120d7ba"
]
},
"sort": [
0,
1100.0,
0,
114934,
"cfa3e7a46e10c7c9535ef31c3ab7f3ed"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a7a05f3a4c26fa1003cee92116c31be7",
"_score": 1100.0,
"_source": {
"id": "a7a05f3a4c26fa1003cee92116c31be7",
"autoIncrement": 114933.0
},
"fields": {
"displayGroup": [
"f9d4055073871fcb8b08af0e69217f5c"
]
},
"sort": [
0,
1100.0,
0,
114933,
"a7a05f3a4c26fa1003cee92116c31be7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8db6714bd4743b95c249dfdd74d6b550",
"_score": 1100.0,
"_source": {
"id": "8db6714bd4743b95c249dfdd74d6b550",
"autoIncrement": 114932.0
},
"fields": {
"displayGroup": [
"6c7a933a5125db255fbfd37979fb8b18"
]
},
"sort": [
0,
1100.0,
0,
114932,
"8db6714bd4743b95c249dfdd74d6b550"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c53900f5864dbb159aebc209818e3251",
"_score": 1100.0,
"_source": {
"id": "c53900f5864dbb159aebc209818e3251",
"autoIncrement": 114931.0
},
"fields": {
"displayGroup": [
"bf2f66e910a13b9fc1416f496b0fe8e7"
]
},
"sort": [
0,
1100.0,
0,
114931,
"c53900f5864dbb159aebc209818e3251"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "78b33349cac98c5fcbac0a4610ce8066",
"_score": 1100.0,
"_source": {
"id": "78b33349cac98c5fcbac0a4610ce8066",
"autoIncrement": 114930.0
},
"fields": {
"displayGroup": [
"d333a26e4a8ed799877ff97af589a31d"
]
},
"sort": [
0,
1100.0,
0,
114930,
"78b33349cac98c5fcbac0a4610ce8066"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "afdb2e212a608dfba6691cb06a4ad0bc",
"_score": 1100.0,
"_source": {
"id": "afdb2e212a608dfba6691cb06a4ad0bc",
"autoIncrement": 114929.0
},
"fields": {
"displayGroup": [
"697f11ce13b0281032cc556adff8fd49"
]
},
"sort": [
0,
1100.0,
0,
114929,
"afdb2e212a608dfba6691cb06a4ad0bc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "195e3ee28fa984958a64005ba4a10a54",
"_score": 1100.0,
"_source": {
"id": "195e3ee28fa984958a64005ba4a10a54",
"autoIncrement": 114928.0
},
"fields": {
"displayGroup": [
"0d10e34fe0c53978f18603ae8488010c"
]
},
"sort": [
0,
1100.0,
0,
114928,
"195e3ee28fa984958a64005ba4a10a54"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "aaaf61b022d4344942ed08595b87be40",
"_score": 1100.0,
"_source": {
"id": "aaaf61b022d4344942ed08595b87be40",
"autoIncrement": 114927.0
},
"fields": {
"displayGroup": [
"a7dd96b661d6056f217e7cf2a04f04c9"
]
},
"sort": [
0,
1100.0,
0,
114927,
"aaaf61b022d4344942ed08595b87be40"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5ed195f0c6728439968048da49293314",
"_score": 1100.0,
"_source": {
"id": "5ed195f0c6728439968048da49293314",
"autoIncrement": 114926.0
},
"fields": {
"displayGroup": [
"f76f038db907b0c90e6ae35d78f44394"
]
},
"sort": [
0,
1100.0,
0,
114926,
"5ed195f0c6728439968048da49293314"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ea91056a3d763d80ae9d57b6757dfd5a",
"_score": 1100.0,
"_source": {
"id": "ea91056a3d763d80ae9d57b6757dfd5a",
"autoIncrement": 114925.0
},
"fields": {
"displayGroup": [
"c180fc2168d06fd716d5c8f7a7a419d2"
]
},
"sort": [
0,
1100.0,
0,
114925,
"ea91056a3d763d80ae9d57b6757dfd5a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4a5d5fe847c0c4b9c2b97441e3e107c0",
"_score": 1100.0,
"_source": {
"id": "4a5d5fe847c0c4b9c2b97441e3e107c0",
"autoIncrement": 114924.0
},
"fields": {
"displayGroup": [
"a2b4c408a79661b46c2a306a758c89b6"
]
},
"sort": [
0,
1100.0,
0,
114924,
"4a5d5fe847c0c4b9c2b97441e3e107c0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2dc4df282a072ea871bb0dccd3317196",
"_score": 1100.0,
"_source": {
"id": "2dc4df282a072ea871bb0dccd3317196",
"autoIncrement": 114923.0
},
"fields": {
"displayGroup": [
"ad17b245a1b16ed6f2f8d91b054cee4c"
]
},
"sort": [
0,
1100.0,
0,
114923,
"2dc4df282a072ea871bb0dccd3317196"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "173ca87cc6593248481397c7a49e81f5",
"_score": 1100.0,
"_source": {
"id": "173ca87cc6593248481397c7a49e81f5",
"autoIncrement": 114922.0
},
"fields": {
"displayGroup": [
"6593173c9500bda880e37e77e429bc62"
]
},
"sort": [
0,
1100.0,
0,
114922,
"173ca87cc6593248481397c7a49e81f5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5f78dcc482ea5e40058dd0860409d2e6",
"_score": 1100.0,
"_source": {
"id": "5f78dcc482ea5e40058dd0860409d2e6",
"autoIncrement": 114921.0
},
"fields": {
"displayGroup": [
"031ae0cdbc056868eead28e955adb2e2"
]
},
"sort": [
0,
1100.0,
0,
114921,
"5f78dcc482ea5e40058dd0860409d2e6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b334d309ffd5aaf69e27b73feb201a2f",
"_score": 1100.0,
"_source": {
"id": "b334d309ffd5aaf69e27b73feb201a2f",
"autoIncrement": 114920.0
},
"fields": {
"displayGroup": [
"e30b09656276a78638ab8c7215ab63c0"
]
},
"sort": [
0,
1100.0,
0,
114920,
"b334d309ffd5aaf69e27b73feb201a2f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2581e4dd48d0f1fe0acca19b8b6c64c8",
"_score": 1100.0,
"_source": {
"id": "2581e4dd48d0f1fe0acca19b8b6c64c8",
"autoIncrement": 114919.0
},
"fields": {
"displayGroup": [
"fd21b0cce0774d537f6eca191a2657d6"
]
},
"sort": [
0,
1100.0,
0,
114919,
"2581e4dd48d0f1fe0acca19b8b6c64c8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0bc9a5991b26fe0030104f8ce261de60",
"_score": 1100.0,
"_source": {
"id": "0bc9a5991b26fe0030104f8ce261de60",
"autoIncrement": 114918.0
},
"fields": {
"displayGroup": [
"e804e399d6e4e39f6d2091809797408a"
]
},
"sort": [
0,
1100.0,
0,
114918,
"0bc9a5991b26fe0030104f8ce261de60"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "af39401d9f21804494d0f367c45d88fd",
"_score": 1100.0,
"_source": {
"id": "af39401d9f21804494d0f367c45d88fd",
"autoIncrement": 114917.0
},
"fields": {
"displayGroup": [
"01547390841557a492a8236da970cf91"
]
},
"sort": [
0,
1100.0,
0,
114917,
"af39401d9f21804494d0f367c45d88fd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d542b2b8591e117f55f768d6746d0f1b",
"_score": 1100.0,
"_source": {
"id": "d542b2b8591e117f55f768d6746d0f1b",
"autoIncrement": 114916.0
},
"fields": {
"displayGroup": [
"75e146d7479df7ed8d4a3caab1a10f89"
]
},
"sort": [
0,
1100.0,
0,
114916,
"d542b2b8591e117f55f768d6746d0f1b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9dc4993e52a2991005118b4d3dd26865",
"_score": 1100.0,
"_source": {
"id": "9dc4993e52a2991005118b4d3dd26865",
"autoIncrement": 114915.0
},
"fields": {
"displayGroup": [
"308298e22326420928fa1a745fa874bd"
]
},
"sort": [
0,
1100.0,
0,
114915,
"9dc4993e52a2991005118b4d3dd26865"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c0e837a8a46da3b39e26f4741401ab5f",
"_score": 1100.0,
"_source": {
"id": "c0e837a8a46da3b39e26f4741401ab5f",
"autoIncrement": 114914.0
},
"fields": {
"displayGroup": [
"321cb371e33b0b74ac056c970fd25deb"
]
},
"sort": [
0,
1100.0,
0,
114914,
"c0e837a8a46da3b39e26f4741401ab5f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1f8966f936941075557b7fac4b0319ae",
"_score": 1100.0,
"_source": {
"id": "1f8966f936941075557b7fac4b0319ae",
"autoIncrement": 114913.0
},
"fields": {
"displayGroup": [
"520d541d32e17fd4418b8b9929350c2e"
]
},
"sort": [
0,
1100.0,
0,
114913,
"1f8966f936941075557b7fac4b0319ae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "046feeb5bed604660add40040ee14eea",
"_score": 1100.0,
"_source": {
"id": "046feeb5bed604660add40040ee14eea",
"autoIncrement": 114912.0
},
"fields": {
"displayGroup": [
"4a07cf0c6ab7f7145a5bbf012ca1692e"
]
},
"sort": [
0,
1100.0,
0,
114912,
"046feeb5bed604660add40040ee14eea"
]
}
]
},
"aggregations": {
"total-count": {
"value": 437
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.07 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":"e5ef510b214a7c8cee8aa2d173c070b4"}},{"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-ausfuehrungBoden":{"composite":{"sources":[{"multi-ausfuehrungBoden.sorting":{"terms":{"field":"attribute_ausfuehrungBoden","order":"ASC"}}},{"multi-ausfuehrungBoden.key":{"terms":{"field":"attribute_ausfuehrungBoden"}}}],"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": "e5ef510b214a7c8cee8aa2d173c070b4"
}
},
{
"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-ausfuehrungBoden": {
"composite": {
"sources": [
{
"multi-ausfuehrungBoden.sorting": {
"terms": {
"field": "attribute_ausfuehrungBoden",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungBoden.key": {
"terms": {
"field": "attribute_ausfuehrungBoden"
}
}
}
],
"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": 437,
"min": 38.6,
"max": 2379.0,
"avg": 847.8988558352403,
"sum": 370531.8
},
"rating-exists": {
"doc_count": 437,
"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": 329
}
]
},
"bool-reduced": {
"doc_count": 24,
"bool-reduced": {
"value": 24
}
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"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
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 61
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 11073.0,
"multi-width.key": 11073.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 1750.0,
"multi-width.key": 1750.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 1785.0,
"multi-width.key": 1785.0
},
"doc_count": 36
},
{
"key": {
"multi-width.sorting": 1850.0,
"multi-width.key": 1850.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 2010.0,
"multi-width.key": 2010.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 2140.0,
"multi-width.key": 2140.0
},
"doc_count": 36
},
{
"key": {
"multi-width.sorting": 2250.0,
"multi-width.key": 2250.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 2500.0,
"multi-width.key": 2500.0
},
"doc_count": 36
},
{
"key": {
"multi-width.sorting": 2570.0,
"multi-width.key": 2570.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 2700.0,
"multi-width.key": 2700.0
},
"doc_count": 31
},
{
"key": {
"multi-width.sorting": 4398.0,
"multi-width.key": 4398.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 6623.0,
"multi-width.key": 6623.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 8848.0,
"multi-width.key": 8848.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 11073.0,
"multi-width.key": 11073.0
},
"doc_count": 1
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 140
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 134
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 87
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 42
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 42
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 123
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 123
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 79
}
]
},
"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-ausfuehrungBoden": {
"after_key": {
"multi-ausfuehrungBoden.sorting": "Stahlpaneele",
"multi-ausfuehrungBoden.key": "Stahlpaneele"
},
"buckets": [
{
"key": {
"multi-ausfuehrungBoden.sorting": "Spanplatte",
"multi-ausfuehrungBoden.key": "Spanplatte"
},
"doc_count": 178
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahl",
"multi-ausfuehrungBoden.key": "Stahl"
},
"doc_count": 116
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahlpaneele",
"multi-ausfuehrungBoden.key": "Stahlpaneele"
},
"doc_count": 54
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 329
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|