| 1 |
17.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":"6bea64103f3985500f32c4f72e408bdc"}},{"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":312,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 450,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "f3e428fd7adad3993a5898e7c6bd1f45",
"_score": 1100.0,
"_source": {
"id": "f3e428fd7adad3993a5898e7c6bd1f45",
"autoIncrement": 115273.0
},
"fields": {
"displayGroup": [
"46d1d822a1b35f574b206e3a47a87307"
]
},
"sort": [
0,
1100.0,
0,
115273,
"f3e428fd7adad3993a5898e7c6bd1f45"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4ede9bbd0d6176b10eb0fb48df1315e4",
"_score": 1100.0,
"_source": {
"id": "4ede9bbd0d6176b10eb0fb48df1315e4",
"autoIncrement": 115272.0
},
"fields": {
"displayGroup": [
"fcb877dc1b4f654851e0f70fe3ea6b72"
]
},
"sort": [
0,
1100.0,
0,
115272,
"4ede9bbd0d6176b10eb0fb48df1315e4"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fbd0e39058a35cf5c2f91f2a5ef86b27",
"_score": 1100.0,
"_source": {
"id": "fbd0e39058a35cf5c2f91f2a5ef86b27",
"autoIncrement": 115271.0
},
"fields": {
"displayGroup": [
"303757f8981b499ffb105cc47fb9708b"
]
},
"sort": [
0,
1100.0,
0,
115271,
"fbd0e39058a35cf5c2f91f2a5ef86b27"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "149ae90d35eb40062ba6611a1a002bbc",
"_score": 1100.0,
"_source": {
"id": "149ae90d35eb40062ba6611a1a002bbc",
"autoIncrement": 115270.0
},
"fields": {
"displayGroup": [
"657ab27bf8726cc96cdef3e2c8382036"
]
},
"sort": [
0,
1100.0,
0,
115270,
"149ae90d35eb40062ba6611a1a002bbc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ba77627f1d0c0fcc606760b7cc8a32a3",
"_score": 1100.0,
"_source": {
"id": "ba77627f1d0c0fcc606760b7cc8a32a3",
"autoIncrement": 115269.0
},
"fields": {
"displayGroup": [
"9c1409e8e4f2e3fccb143da06f434c3e"
]
},
"sort": [
0,
1100.0,
0,
115269,
"ba77627f1d0c0fcc606760b7cc8a32a3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8ed816d9638bf112d298256aab38bdc3",
"_score": 1100.0,
"_source": {
"id": "8ed816d9638bf112d298256aab38bdc3",
"autoIncrement": 115268.0
},
"fields": {
"displayGroup": [
"b3be75ce44b69a2ca8d50e39bdf389a1"
]
},
"sort": [
0,
1100.0,
0,
115268,
"8ed816d9638bf112d298256aab38bdc3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "02ce54239e9128a96829a68fb6d569e0",
"_score": 1100.0,
"_source": {
"id": "02ce54239e9128a96829a68fb6d569e0",
"autoIncrement": 115267.0
},
"fields": {
"displayGroup": [
"5e7543d48422173afd9dbe6fab9d1825"
]
},
"sort": [
0,
1100.0,
0,
115267,
"02ce54239e9128a96829a68fb6d569e0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "77a3400e02bca668a91c5f4c5ab8d5c1",
"_score": 1100.0,
"_source": {
"id": "77a3400e02bca668a91c5f4c5ab8d5c1",
"autoIncrement": 115266.0
},
"fields": {
"displayGroup": [
"6b6a4f350027376f01f48fd1f0f55506"
]
},
"sort": [
0,
1100.0,
0,
115266,
"77a3400e02bca668a91c5f4c5ab8d5c1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "159ee0ed1b2a18d3328a012e77dcd88d",
"_score": 1100.0,
"_source": {
"id": "159ee0ed1b2a18d3328a012e77dcd88d",
"autoIncrement": 115265.0
},
"fields": {
"displayGroup": [
"4a0b9e80f8f8b8b1fcecda69e9c1d9a6"
]
},
"sort": [
0,
1100.0,
0,
115265,
"159ee0ed1b2a18d3328a012e77dcd88d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4f89924ccbd0cd52f3191a3237043440",
"_score": 1100.0,
"_source": {
"id": "4f89924ccbd0cd52f3191a3237043440",
"autoIncrement": 115264.0
},
"fields": {
"displayGroup": [
"0c03b2425e0a96ce88ee1a3efbc2e0ca"
]
},
"sort": [
0,
1100.0,
0,
115264,
"4f89924ccbd0cd52f3191a3237043440"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "658ac36afde4d7a26b71b0277dde9c3d",
"_score": 1100.0,
"_source": {
"id": "658ac36afde4d7a26b71b0277dde9c3d",
"autoIncrement": 115263.0
},
"fields": {
"displayGroup": [
"93c70f939d90f4dc848edfad96a82516"
]
},
"sort": [
0,
1100.0,
0,
115263,
"658ac36afde4d7a26b71b0277dde9c3d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "87ddf3c3faf74d9e7cdc1b8433312223",
"_score": 1100.0,
"_source": {
"id": "87ddf3c3faf74d9e7cdc1b8433312223",
"autoIncrement": 115262.0
},
"fields": {
"displayGroup": [
"6f91d22a89b6da84f0a8057292a9d618"
]
},
"sort": [
0,
1100.0,
0,
115262,
"87ddf3c3faf74d9e7cdc1b8433312223"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5f69fda13b0252e9bd29fa1c7dae0959",
"_score": 1100.0,
"_source": {
"id": "5f69fda13b0252e9bd29fa1c7dae0959",
"autoIncrement": 115261.0
},
"fields": {
"displayGroup": [
"fb3807298848016287d2c95d57a5970e"
]
},
"sort": [
0,
1100.0,
0,
115261,
"5f69fda13b0252e9bd29fa1c7dae0959"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "23e370386b300d0e1c41f6823b8702ea",
"_score": 1100.0,
"_source": {
"id": "23e370386b300d0e1c41f6823b8702ea",
"autoIncrement": 115260.0
},
"fields": {
"displayGroup": [
"abcbed4b8126436780c328940b95f6ce"
]
},
"sort": [
0,
1100.0,
0,
115260,
"23e370386b300d0e1c41f6823b8702ea"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c67b4f5da550ef9828a777f9226f648a",
"_score": 1100.0,
"_source": {
"id": "c67b4f5da550ef9828a777f9226f648a",
"autoIncrement": 115259.0
},
"fields": {
"displayGroup": [
"27fe9b0ce600a75a917d6c531d3dde9b"
]
},
"sort": [
0,
1100.0,
0,
115259,
"c67b4f5da550ef9828a777f9226f648a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c9227c77acb49f8625528cbdb7736265",
"_score": 1100.0,
"_source": {
"id": "c9227c77acb49f8625528cbdb7736265",
"autoIncrement": 115258.0
},
"fields": {
"displayGroup": [
"516468d8dba1942856a64e6828564210"
]
},
"sort": [
0,
1100.0,
0,
115258,
"c9227c77acb49f8625528cbdb7736265"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "71644b6127d3f4d7b5886d9251d6fa3a",
"_score": 1100.0,
"_source": {
"id": "71644b6127d3f4d7b5886d9251d6fa3a",
"autoIncrement": 115257.0
},
"fields": {
"displayGroup": [
"8fcfad1134ca56d575a8ab4351b1c879"
]
},
"sort": [
0,
1100.0,
0,
115257,
"71644b6127d3f4d7b5886d9251d6fa3a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4f1c5c14d40f6a2324b39105d5189bfa",
"_score": 1100.0,
"_source": {
"id": "4f1c5c14d40f6a2324b39105d5189bfa",
"autoIncrement": 115256.0
},
"fields": {
"displayGroup": [
"5243557656a6ea5e5e071536062d179a"
]
},
"sort": [
0,
1100.0,
0,
115256,
"4f1c5c14d40f6a2324b39105d5189bfa"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6c915b0b49cdd74abe0b2c55c596490a",
"_score": 1100.0,
"_source": {
"id": "6c915b0b49cdd74abe0b2c55c596490a",
"autoIncrement": 115255.0
},
"fields": {
"displayGroup": [
"afef0093393bea05cd3641c741ade478"
]
},
"sort": [
0,
1100.0,
0,
115255,
"6c915b0b49cdd74abe0b2c55c596490a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "909eb9f9f5b78b80d5ea721b32c07eb0",
"_score": 1100.0,
"_source": {
"id": "909eb9f9f5b78b80d5ea721b32c07eb0",
"autoIncrement": 115254.0
},
"fields": {
"displayGroup": [
"60ac82c534ccbf58bc02cd49b9c0ae4c"
]
},
"sort": [
0,
1100.0,
0,
115254,
"909eb9f9f5b78b80d5ea721b32c07eb0"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "81e5a2a977601cae48c2cf42767d6dc5",
"_score": 1100.0,
"_source": {
"id": "81e5a2a977601cae48c2cf42767d6dc5",
"autoIncrement": 115253.0
},
"fields": {
"displayGroup": [
"736ac51d450d6bce5315dda7ae646cc7"
]
},
"sort": [
0,
1100.0,
0,
115253,
"81e5a2a977601cae48c2cf42767d6dc5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "948dcb990703d4902ed4113193097a52",
"_score": 1100.0,
"_source": {
"id": "948dcb990703d4902ed4113193097a52",
"autoIncrement": 115252.0
},
"fields": {
"displayGroup": [
"ce9ac86449a3ffae4082bf1bcead9f3f"
]
},
"sort": [
0,
1100.0,
0,
115252,
"948dcb990703d4902ed4113193097a52"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d10b1598f05d38fbffd21fa38131432c",
"_score": 1100.0,
"_source": {
"id": "d10b1598f05d38fbffd21fa38131432c",
"autoIncrement": 115251.0
},
"fields": {
"displayGroup": [
"3b45d2f61575ab3fd6f78315dc1837fa"
]
},
"sort": [
0,
1100.0,
0,
115251,
"d10b1598f05d38fbffd21fa38131432c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "13ba4d305cede422fc42ad56762932aa",
"_score": 1100.0,
"_source": {
"id": "13ba4d305cede422fc42ad56762932aa",
"autoIncrement": 115250.0
},
"fields": {
"displayGroup": [
"de4d1d1fa12997a26459c0ba200910b0"
]
},
"sort": [
0,
1100.0,
0,
115250,
"13ba4d305cede422fc42ad56762932aa"
]
}
]
},
"aggregations": {
"total-count": {
"value": 450
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.29 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":"6bea64103f3985500f32c4f72e408bdc"}},{"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-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"}},"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"multi-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"size":"99999"}},"multi-fachlast":{"composite":{"sources":[{"multi-fachlast.sorting":{"terms":{"field":"attribute_fachlast","order":"ASC"}}},{"multi-fachlast.key":{"terms":{"field":"attribute_fachlast"}}}],"size":"99999"}},"multi-ausfuehrungBoden":{"composite":{"sources":[{"multi-ausfuehrungBoden.sorting":{"terms":{"field":"attribute_ausfuehrungBoden","order":"ASC"}}},{"multi-ausfuehrungBoden.key":{"terms":{"field":"attribute_ausfuehrungBoden"}}}],"size":"99999"}},"multi-farbeRahmen":{"composite":{"sources":[{"multi-farbeRahmen.sorting":{"terms":{"field":"attribute_farbeRahmen","order":"ASC"}}},{"multi-farbeRahmen.key":{"terms":{"field":"attribute_farbeRahmen"}}}],"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": "6bea64103f3985500f32c4f72e408bdc"
}
},
{
"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-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"
}
},
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"multi-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"size": "99999"
}
},
"multi-fachlast": {
"composite": {
"sources": [
{
"multi-fachlast.sorting": {
"terms": {
"field": "attribute_fachlast",
"order": "ASC"
}
}
},
{
"multi-fachlast.key": {
"terms": {
"field": "attribute_fachlast"
}
}
}
],
"size": "99999"
}
},
"multi-ausfuehrungBoden": {
"composite": {
"sources": [
{
"multi-ausfuehrungBoden.sorting": {
"terms": {
"field": "attribute_ausfuehrungBoden",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungBoden.key": {
"terms": {
"field": "attribute_ausfuehrungBoden"
}
}
}
],
"size": "99999"
}
},
"multi-farbeRahmen": {
"composite": {
"sources": [
{
"multi-farbeRahmen.sorting": {
"terms": {
"field": "attribute_farbeRahmen",
"order": "ASC"
}
}
},
{
"multi-farbeRahmen.key": {
"terms": {
"field": "attribute_farbeRahmen"
}
}
}
],
"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": 450,
"min": 101.0,
"max": 774.0,
"avg": 310.9822222222222,
"sum": 139942.0
},
"rating-exists": {
"doc_count": 450,
"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": "6702a27cc2ed074813e1d59f22465957",
"manufacturer-count-filter.key": "6702a27cc2ed074813e1d59f22465957"
},
"doc_count": 108
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 190
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"multi-width": {
"after_key": {
"multi-width.sorting": 5140.0,
"multi-width.key": 5140.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 750.0,
"multi-width.key": 750.0
},
"doc_count": 54
},
{
"key": {
"multi-width.sorting": 875.0,
"multi-width.key": 875.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 960.0,
"multi-width.key": 960.0
},
"doc_count": 54
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 64
},
{
"key": {
"multi-width.sorting": 1005.0,
"multi-width.key": 1005.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 1010.0,
"multi-width.key": 1010.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 1250.0,
"multi-width.key": 1250.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 1260.0,
"multi-width.key": 1260.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 1285.0,
"multi-width.key": 1285.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 2010.0,
"multi-width.key": 2010.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 2570.0,
"multi-width.key": 2570.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 3015.0,
"multi-width.key": 3015.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 3855.0,
"multi-width.key": 3855.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 4020.0,
"multi-width.key": 4020.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 5140.0,
"multi-width.key": 5140.0
},
"doc_count": 1
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 2750.0,
"multi-height.key": 2750.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 1900.0,
"multi-height.key": 1900.0
},
"doc_count": 36
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 119
},
{
"key": {
"multi-height.sorting": 2075.0,
"multi-height.key": 2075.0
},
"doc_count": 35
},
{
"key": {
"multi-height.sorting": 2250.0,
"multi-height.key": 2250.0
},
"doc_count": 68
},
{
"key": {
"multi-height.sorting": 2325.0,
"multi-height.key": 2325.0
},
"doc_count": 60
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 64
},
{
"key": {
"multi-height.sorting": 2600.0,
"multi-height.key": 2600.0
},
"doc_count": 36
},
{
"key": {
"multi-height.sorting": 2750.0,
"multi-height.key": 2750.0
},
"doc_count": 32
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 300.0,
"multi-tiefe.key": 300.0
},
"doc_count": 166
},
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 68
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 32
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 167
},
{
"key": {
"multi-tiefe.sorting": 626.0,
"multi-tiefe.key": 626.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 8
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 8
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 190
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 108
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 146
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 146
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 6
}
]
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "2 St\u00fcck",
"multi-anzahlFachboeden.key": "2 St\u00fcck"
},
"doc_count": 36
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 12
},
{
"key": {
"multi-anzahlFachboeden.sorting": "6 St\u00fcck",
"multi-anzahlFachboeden.key": "6 St\u00fcck"
},
"doc_count": 121
},
{
"key": {
"multi-anzahlFachboeden.sorting": "7 St\u00fcck",
"multi-anzahlFachboeden.key": "7 St\u00fcck"
},
"doc_count": 105
},
{
"key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"doc_count": 24
}
]
},
"multi-fachlast": {
"after_key": {
"multi-fachlast.sorting": "80 kg",
"multi-fachlast.key": "80 kg"
},
"buckets": [
{
"key": {
"multi-fachlast.sorting": "150 kg",
"multi-fachlast.key": "150 kg"
},
"doc_count": 51
},
{
"key": {
"multi-fachlast.sorting": "250 kg",
"multi-fachlast.key": "250 kg"
},
"doc_count": 67
},
{
"key": {
"multi-fachlast.sorting": "60 kg",
"multi-fachlast.key": "60 kg"
},
"doc_count": 48
},
{
"key": {
"multi-fachlast.sorting": "80 kg",
"multi-fachlast.key": "80 kg"
},
"doc_count": 96
}
]
},
"multi-ausfuehrungBoden": {
"after_key": {
"multi-ausfuehrungBoden.sorting": "Stahl",
"multi-ausfuehrungBoden.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-ausfuehrungBoden.sorting": "Spanplatte",
"multi-ausfuehrungBoden.key": "Spanplatte"
},
"doc_count": 67
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahl",
"multi-ausfuehrungBoden.key": "Stahl"
},
"doc_count": 231
}
]
},
"multi-farbeRahmen": {
"after_key": {
"multi-farbeRahmen.sorting": "verzinkt",
"multi-farbeRahmen.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-farbeRahmen.sorting": "RAL 7035 lichtgrau",
"multi-farbeRahmen.key": "RAL 7035 lichtgrau"
},
"doc_count": 108
},
{
"key": {
"multi-farbeRahmen.sorting": "verzinkt",
"multi-farbeRahmen.key": "verzinkt"
},
"doc_count": 190
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 190
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 108
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|