| 1 |
17.18 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":48,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"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": "b27a351767bf01dc2fb2857304b4092f",
"_score": 1100.0,
"_source": {
"id": "b27a351767bf01dc2fb2857304b4092f",
"autoIncrement": 130740.0
},
"fields": {
"displayGroup": [
"c9b8e692d0bfeccba2f33c555e642005"
]
},
"sort": [
0,
1100.0,
0,
130740,
"b27a351767bf01dc2fb2857304b4092f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dc21cd27ff4776ba5095d799effbec62",
"_score": 1100.0,
"_source": {
"id": "dc21cd27ff4776ba5095d799effbec62",
"autoIncrement": 130731.0
},
"fields": {
"displayGroup": [
"8e4b4c0986c0150b5f00c7500c2012a6"
]
},
"sort": [
0,
1100.0,
0,
130731,
"dc21cd27ff4776ba5095d799effbec62"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5e3059efb47552e27d0d3d68348c4d5a",
"_score": 1100.0,
"_source": {
"id": "5e3059efb47552e27d0d3d68348c4d5a",
"autoIncrement": 130730.0
},
"fields": {
"displayGroup": [
"a819e664d70596d3b7352ad945d966b7"
]
},
"sort": [
0,
1100.0,
0,
130730,
"5e3059efb47552e27d0d3d68348c4d5a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2deece0180f6ee32176e4905193e75ba",
"_score": 1100.0,
"_source": {
"id": "2deece0180f6ee32176e4905193e75ba",
"autoIncrement": 130715.0
},
"fields": {
"displayGroup": [
"65de52e2854dc87243a8abdb8e8d80fd"
]
},
"sort": [
0,
1100.0,
0,
130715,
"2deece0180f6ee32176e4905193e75ba"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3d51f9138eed0336129f7f8727df82f9",
"_score": 1100.0,
"_source": {
"id": "3d51f9138eed0336129f7f8727df82f9",
"autoIncrement": 130714.0
},
"fields": {
"displayGroup": [
"7cb8f90b74aa8022d0487bf1bae9bbcf"
]
},
"sort": [
0,
1100.0,
0,
130714,
"3d51f9138eed0336129f7f8727df82f9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f6a096396acce0f99bb928675007ba66",
"_score": 1100.0,
"_source": {
"id": "f6a096396acce0f99bb928675007ba66",
"autoIncrement": 130713.0
},
"fields": {
"displayGroup": [
"4b5e668ad3682a6ed9a682823583b1f8"
]
},
"sort": [
0,
1100.0,
0,
130713,
"f6a096396acce0f99bb928675007ba66"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c54ae7587e0536b4d71c848c597fbe2e",
"_score": 1100.0,
"_source": {
"id": "c54ae7587e0536b4d71c848c597fbe2e",
"autoIncrement": 130712.0
},
"fields": {
"displayGroup": [
"d3b5755b0731c928332b061dec776666"
]
},
"sort": [
0,
1100.0,
0,
130712,
"c54ae7587e0536b4d71c848c597fbe2e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5e6cd4644ce677cf325506d53126253e",
"_score": 1100.0,
"_source": {
"id": "5e6cd4644ce677cf325506d53126253e",
"autoIncrement": 130711.0
},
"fields": {
"displayGroup": [
"309c274aea354807f91c5873c8387fed"
]
},
"sort": [
0,
1100.0,
0,
130711,
"5e6cd4644ce677cf325506d53126253e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "479a570a476e753d04bb4a03cf472e5b",
"_score": 1100.0,
"_source": {
"id": "479a570a476e753d04bb4a03cf472e5b",
"autoIncrement": 130710.0
},
"fields": {
"displayGroup": [
"19776a74e7727de6207deae8d7a23368"
]
},
"sort": [
0,
1100.0,
0,
130710,
"479a570a476e753d04bb4a03cf472e5b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "411373fb3abf92272897fcc69f97f7c1",
"_score": 1100.0,
"_source": {
"id": "411373fb3abf92272897fcc69f97f7c1",
"autoIncrement": 130709.0
},
"fields": {
"displayGroup": [
"e2e3fa28fe82a9fcd80631c76e6c2d31"
]
},
"sort": [
0,
1100.0,
0,
130709,
"411373fb3abf92272897fcc69f97f7c1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "574c23b7cab4cd888ef3f639e752cb66",
"_score": 1100.0,
"_source": {
"id": "574c23b7cab4cd888ef3f639e752cb66",
"autoIncrement": 130708.0
},
"fields": {
"displayGroup": [
"60a9f3c2f32e4570583e2615d66ad4d6"
]
},
"sort": [
0,
1100.0,
0,
130708,
"574c23b7cab4cd888ef3f639e752cb66"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "412b7e508dfa46bb64f93cbd13b6d946",
"_score": 1100.0,
"_source": {
"id": "412b7e508dfa46bb64f93cbd13b6d946",
"autoIncrement": 130707.0
},
"fields": {
"displayGroup": [
"921b67843f891ec240acca50a71c79f9"
]
},
"sort": [
0,
1100.0,
0,
130707,
"412b7e508dfa46bb64f93cbd13b6d946"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a81eda200fa7638748c6596a1fe58916",
"_score": 1100.0,
"_source": {
"id": "a81eda200fa7638748c6596a1fe58916",
"autoIncrement": 130706.0
},
"fields": {
"displayGroup": [
"911145e4c8e61e4be3c802353cf42034"
]
},
"sort": [
0,
1100.0,
0,
130706,
"a81eda200fa7638748c6596a1fe58916"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2f49f36263a57fdeb41757c816ceb42e",
"_score": 1100.0,
"_source": {
"id": "2f49f36263a57fdeb41757c816ceb42e",
"autoIncrement": 130705.0
},
"fields": {
"displayGroup": [
"74a5124ff4755a2df82014baf3eeda1c"
]
},
"sort": [
0,
1100.0,
0,
130705,
"2f49f36263a57fdeb41757c816ceb42e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bbebcf60f0d6effbd725b994b71f1d5d",
"_score": 1100.0,
"_source": {
"id": "bbebcf60f0d6effbd725b994b71f1d5d",
"autoIncrement": 130704.0
},
"fields": {
"displayGroup": [
"d14a97ea9b968223f3db4626256de982"
]
},
"sort": [
0,
1100.0,
0,
130704,
"bbebcf60f0d6effbd725b994b71f1d5d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "4dd9c9cf85b883b4d16011fe2c4b02be",
"_score": 1100.0,
"_source": {
"id": "4dd9c9cf85b883b4d16011fe2c4b02be",
"autoIncrement": 130703.0
},
"fields": {
"displayGroup": [
"487d35ac458e9620f6bac0698d006c23"
]
},
"sort": [
0,
1100.0,
0,
130703,
"4dd9c9cf85b883b4d16011fe2c4b02be"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "276e7b4fffab88c4f21d0616c4eb2e2a",
"_score": 1100.0,
"_source": {
"id": "276e7b4fffab88c4f21d0616c4eb2e2a",
"autoIncrement": 130702.0
},
"fields": {
"displayGroup": [
"ec8f517b784fe86852aedafd9c15650d"
]
},
"sort": [
0,
1100.0,
0,
130702,
"276e7b4fffab88c4f21d0616c4eb2e2a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "be0140c3252dc02cd32357ed8beb33e7",
"_score": 1100.0,
"_source": {
"id": "be0140c3252dc02cd32357ed8beb33e7",
"autoIncrement": 130701.0
},
"fields": {
"displayGroup": [
"00eed7020d080c911a3e4ed839c11b3b"
]
},
"sort": [
0,
1100.0,
0,
130701,
"be0140c3252dc02cd32357ed8beb33e7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8180af4b8b02a4eaccda61681bfd310d",
"_score": 1100.0,
"_source": {
"id": "8180af4b8b02a4eaccda61681bfd310d",
"autoIncrement": 130700.0
},
"fields": {
"displayGroup": [
"683a74c10320be7618282270fc46ac58"
]
},
"sort": [
0,
1100.0,
0,
130700,
"8180af4b8b02a4eaccda61681bfd310d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "59bb5263584acbca763788348c2a8300",
"_score": 1100.0,
"_source": {
"id": "59bb5263584acbca763788348c2a8300",
"autoIncrement": 130699.0
},
"fields": {
"displayGroup": [
"00e0452ef08950a1bd4fbb9db7313b98"
]
},
"sort": [
0,
1100.0,
0,
130699,
"59bb5263584acbca763788348c2a8300"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b7d52c9f2bce2bed29b3ba179c37b8c1",
"_score": 1100.0,
"_source": {
"id": "b7d52c9f2bce2bed29b3ba179c37b8c1",
"autoIncrement": 130698.0
},
"fields": {
"displayGroup": [
"3f1eb9bf453fc5754ece06ec1df02227"
]
},
"sort": [
0,
1100.0,
0,
130698,
"b7d52c9f2bce2bed29b3ba179c37b8c1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2f3213bd7b9e38bcc9884166a650e35c",
"_score": 1100.0,
"_source": {
"id": "2f3213bd7b9e38bcc9884166a650e35c",
"autoIncrement": 130697.0
},
"fields": {
"displayGroup": [
"962288b237dd73b286f899c310b9c62b"
]
},
"sort": [
0,
1100.0,
0,
130697,
"2f3213bd7b9e38bcc9884166a650e35c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "25c846947efdf1e0ce5c1246d3df766e",
"_score": 1100.0,
"_source": {
"id": "25c846947efdf1e0ce5c1246d3df766e",
"autoIncrement": 130696.0
},
"fields": {
"displayGroup": [
"d796f790e00a6972cae71cf638181414"
]
},
"sort": [
0,
1100.0,
0,
130696,
"25c846947efdf1e0ce5c1246d3df766e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fab33d5d737b9cc92dc8d7b0283ca646",
"_score": 1100.0,
"_source": {
"id": "fab33d5d737b9cc92dc8d7b0283ca646",
"autoIncrement": 130695.0
},
"fields": {
"displayGroup": [
"f3290b52df7acc212cdbe65e28c12544"
]
},
"sort": [
0,
1100.0,
0,
130695,
"fab33d5d737b9cc92dc8d7b0283ca646"
]
}
]
},
"aggregations": {
"total-count": {
"value": 102
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
7.06 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
|