| 1 |
15.51 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":"26ea17040b23b5d381fe69fce32c93e4"}},{"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":120,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 247,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "25bc54f2eb6f7cf114a19d0ca6622488",
"_score": 1100.0,
"_source": {
"id": "25bc54f2eb6f7cf114a19d0ca6622488",
"autoIncrement": 114757.0
},
"fields": {
"displayGroup": [
"0c2d3ac97a1d7d94462e80a0fc934dd9"
]
},
"sort": [
0,
1100.0,
0,
114757,
"25bc54f2eb6f7cf114a19d0ca6622488"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "35395066e5505cc7cb4077e6db5ca744",
"_score": 1100.0,
"_source": {
"id": "35395066e5505cc7cb4077e6db5ca744",
"autoIncrement": 114756.0
},
"fields": {
"displayGroup": [
"55e7718b54842077b528da250227e045"
]
},
"sort": [
0,
1100.0,
0,
114756,
"35395066e5505cc7cb4077e6db5ca744"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a11b65fe3c702654c12d9b732efa7352",
"_score": 1100.0,
"_source": {
"id": "a11b65fe3c702654c12d9b732efa7352",
"autoIncrement": 114753.0
},
"fields": {
"displayGroup": [
"1b661744ea529f51b246bf1629bc0225"
]
},
"sort": [
0,
1100.0,
0,
114753,
"a11b65fe3c702654c12d9b732efa7352"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "94467a56ec1d400afb2d4fafd90440ad",
"_score": 1100.0,
"_source": {
"id": "94467a56ec1d400afb2d4fafd90440ad",
"autoIncrement": 114752.0
},
"fields": {
"displayGroup": [
"7b1d9e72d1af5327affca101c5f62964"
]
},
"sort": [
0,
1100.0,
0,
114752,
"94467a56ec1d400afb2d4fafd90440ad"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8aa3948800a8cc02391ef1da943a18ab",
"_score": 1100.0,
"_source": {
"id": "8aa3948800a8cc02391ef1da943a18ab",
"autoIncrement": 114749.0
},
"fields": {
"displayGroup": [
"1cf5548a8d7d495008effdd809708964"
]
},
"sort": [
0,
1100.0,
0,
114749,
"8aa3948800a8cc02391ef1da943a18ab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b0e38badc0ba4dca993c408e8e2cf6ed",
"_score": 1100.0,
"_source": {
"id": "b0e38badc0ba4dca993c408e8e2cf6ed",
"autoIncrement": 114748.0
},
"fields": {
"displayGroup": [
"1f69a666f0134a1eb7f14b4250eb89a8"
]
},
"sort": [
0,
1100.0,
0,
114748,
"b0e38badc0ba4dca993c408e8e2cf6ed"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0fc3e67e2e57bf25a782353102d57fd2",
"_score": 1100.0,
"_source": {
"id": "0fc3e67e2e57bf25a782353102d57fd2",
"autoIncrement": 114746.0
},
"fields": {
"displayGroup": [
"570b63e88de3a2d446999b7849009112"
]
},
"sort": [
0,
1100.0,
0,
114746,
"0fc3e67e2e57bf25a782353102d57fd2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "756ed7b6457b7cd3a5b1146856e71719",
"_score": 1100.0,
"_source": {
"id": "756ed7b6457b7cd3a5b1146856e71719",
"autoIncrement": 114744.0
},
"fields": {
"displayGroup": [
"98f09bc60bdf12c352c2d6a87ebb8ebb"
]
},
"sort": [
0,
1100.0,
0,
114744,
"756ed7b6457b7cd3a5b1146856e71719"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d2ece8825304e5bb3e1c7093e5555a74",
"_score": 1100.0,
"_source": {
"id": "d2ece8825304e5bb3e1c7093e5555a74",
"autoIncrement": 114742.0
},
"fields": {
"displayGroup": [
"c161388caf0c031dd6b917052308c3ac"
]
},
"sort": [
0,
1100.0,
0,
114742,
"d2ece8825304e5bb3e1c7093e5555a74"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7abbe93c5c4c35b816c2bc8d3ae6404a",
"_score": 1100.0,
"_source": {
"id": "7abbe93c5c4c35b816c2bc8d3ae6404a",
"autoIncrement": 114740.0
},
"fields": {
"displayGroup": [
"faacf3006da65d6604738bf7b8f94674"
]
},
"sort": [
0,
1100.0,
0,
114740,
"7abbe93c5c4c35b816c2bc8d3ae6404a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ca5d84d072f0315c71efda2188cc67a9",
"_score": 1100.0,
"_source": {
"id": "ca5d84d072f0315c71efda2188cc67a9",
"autoIncrement": 114738.0
},
"fields": {
"displayGroup": [
"16327a6c51f1021901451a8bafe5b540"
]
},
"sort": [
0,
1100.0,
0,
114738,
"ca5d84d072f0315c71efda2188cc67a9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9d64aa00e2a1c048c3b9e88ff89152de",
"_score": 1100.0,
"_source": {
"id": "9d64aa00e2a1c048c3b9e88ff89152de",
"autoIncrement": 114736.0
},
"fields": {
"displayGroup": [
"79832ac003b20853fd12816b596d2c22"
]
},
"sort": [
0,
1100.0,
0,
114736,
"9d64aa00e2a1c048c3b9e88ff89152de"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3dff7a5868ad7e36b248296a65154623",
"_score": 1100.0,
"_source": {
"id": "3dff7a5868ad7e36b248296a65154623",
"autoIncrement": 114654.0
},
"fields": {
"displayGroup": [
"94641f8f6bbe75e9f39f6b51b743b434"
]
},
"sort": [
0,
1100.0,
0,
114654,
"3dff7a5868ad7e36b248296a65154623"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "e957f22df6e54c220d62f16c883aabaf",
"_score": 1100.0,
"_source": {
"id": "e957f22df6e54c220d62f16c883aabaf",
"autoIncrement": 114653.0
},
"fields": {
"displayGroup": [
"b21eef93dbcbfe7f53b3c7436b9765e5"
]
},
"sort": [
0,
1100.0,
0,
114653,
"e957f22df6e54c220d62f16c883aabaf"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2d582afb03086e3fff27a1888b1e881f",
"_score": 1100.0,
"_source": {
"id": "2d582afb03086e3fff27a1888b1e881f",
"autoIncrement": 114652.0
},
"fields": {
"displayGroup": [
"f0472e30c1add9ed17f320016ce4188a"
]
},
"sort": [
0,
1100.0,
0,
114652,
"2d582afb03086e3fff27a1888b1e881f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fd0ca01be0ff83e5a5a112c75354bfb1",
"_score": 1100.0,
"_source": {
"id": "fd0ca01be0ff83e5a5a112c75354bfb1",
"autoIncrement": 114651.0
},
"fields": {
"displayGroup": [
"46b66070eac66b1410e34fe7abc367ed"
]
},
"sort": [
0,
1100.0,
0,
114651,
"fd0ca01be0ff83e5a5a112c75354bfb1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9daf7a3c753d3216573d5c4749366d7c",
"_score": 1100.0,
"_source": {
"id": "9daf7a3c753d3216573d5c4749366d7c",
"autoIncrement": 114650.0
},
"fields": {
"displayGroup": [
"d4f8d02ab83171d64ab5da9cc0d551ce"
]
},
"sort": [
0,
1100.0,
0,
114650,
"9daf7a3c753d3216573d5c4749366d7c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "702ccf20795654934b44eaf596810f73",
"_score": 1100.0,
"_source": {
"id": "702ccf20795654934b44eaf596810f73",
"autoIncrement": 114649.0
},
"fields": {
"displayGroup": [
"bc9676ca1af967282e8692ab4d2b28ec"
]
},
"sort": [
0,
1100.0,
0,
114649,
"702ccf20795654934b44eaf596810f73"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "24c5efc75bbc8f8a60f0d81541615fd8",
"_score": 1100.0,
"_source": {
"id": "24c5efc75bbc8f8a60f0d81541615fd8",
"autoIncrement": 114648.0
},
"fields": {
"displayGroup": [
"2ef6c1a2e6a0b74bdea479b951e46729"
]
},
"sort": [
0,
1100.0,
0,
114648,
"24c5efc75bbc8f8a60f0d81541615fd8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0c61f9fd8c0773dde7144d79da973576",
"_score": 1100.0,
"_source": {
"id": "0c61f9fd8c0773dde7144d79da973576",
"autoIncrement": 114647.0
},
"fields": {
"displayGroup": [
"cdec6facd0e2a19f0c6d02590ec976aa"
]
},
"sort": [
0,
1100.0,
0,
114647,
"0c61f9fd8c0773dde7144d79da973576"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "709b08c5a1a6b425bb8e789a1debb330",
"_score": 1100.0,
"_source": {
"id": "709b08c5a1a6b425bb8e789a1debb330",
"autoIncrement": 114646.0
},
"fields": {
"displayGroup": [
"0b5fd31d2cb5fdc6277ca3436038a2cd"
]
},
"sort": [
0,
1100.0,
0,
114646,
"709b08c5a1a6b425bb8e789a1debb330"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "32c8d7e3fa309054cfa60418fe8af424",
"_score": 1100.0,
"_source": {
"id": "32c8d7e3fa309054cfa60418fe8af424",
"autoIncrement": 114645.0
},
"fields": {
"displayGroup": [
"92e53badeecc67d6331989960186efc8"
]
},
"sort": [
0,
1100.0,
0,
114645,
"32c8d7e3fa309054cfa60418fe8af424"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6d82fa7e7aa62d1d338e8d40aebd88a7",
"_score": 1100.0,
"_source": {
"id": "6d82fa7e7aa62d1d338e8d40aebd88a7",
"autoIncrement": 114644.0
},
"fields": {
"displayGroup": [
"20a52e90cc664dc494ba9c5c18f07a57"
]
},
"sort": [
0,
1100.0,
0,
114644,
"6d82fa7e7aa62d1d338e8d40aebd88a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "317b430ba770eb89a59fb8a68035122a",
"_score": 1100.0,
"_source": {
"id": "317b430ba770eb89a59fb8a68035122a",
"autoIncrement": 114643.0
},
"fields": {
"displayGroup": [
"0eaa001edd881aae773785e2effa430b"
]
},
"sort": [
0,
1100.0,
0,
114643,
"317b430ba770eb89a59fb8a68035122a"
]
}
]
},
"aggregations": {
"total-count": {
"value": 247
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.01 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":"26ea17040b23b5d381fe69fce32c93e4"}},{"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-traglastGesamt":{"composite":{"sources":[{"multi-traglastGesamt.sorting":{"terms":{"field":"attribute_traglastGesamt","order":"ASC"}}},{"multi-traglastGesamt.key":{"terms":{"field":"attribute_traglastGesamt"}}}],"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-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": "26ea17040b23b5d381fe69fce32c93e4"
}
},
{
"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-traglastGesamt": {
"composite": {
"sources": [
{
"multi-traglastGesamt.sorting": {
"terms": {
"field": "attribute_traglastGesamt",
"order": "ASC"
}
}
},
{
"multi-traglastGesamt.key": {
"terms": {
"field": "attribute_traglastGesamt"
}
}
}
],
"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-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": 247,
"min": 38.6,
"max": 2005.0,
"avg": 720.5781376518219,
"sum": 177982.8
},
"rating-exists": {
"doc_count": 247,
"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": 193
}
]
},
"bool-reduced": {
"doc_count": 12,
"bool-reduced": {
"value": 12
}
},
"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": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 61
}
]
},
"multi-width": {
"after_key": {
"multi-width.sorting": 2700.0,
"multi-width.key": 2700.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 19
},
{
"key": {
"multi-width.sorting": 1750.0,
"multi-width.key": 1750.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 1785.0,
"multi-width.key": 1785.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 1850.0,
"multi-width.key": 1850.0
},
"doc_count": 19
},
{
"key": {
"multi-width.sorting": 2010.0,
"multi-width.key": 2010.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 2140.0,
"multi-width.key": 2140.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 2250.0,
"multi-width.key": 2250.0
},
"doc_count": 19
},
{
"key": {
"multi-width.sorting": 2500.0,
"multi-width.key": 2500.0
},
"doc_count": 18
},
{
"key": {
"multi-width.sorting": 2570.0,
"multi-width.key": 2570.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 2700.0,
"multi-width.key": 2700.0
},
"doc_count": 19
}
]
},
"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": 69
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 69
},
{
"key": {
"multi-height.sorting": 3000.0,
"multi-height.key": 3000.0
},
"doc_count": 45
}
]
},
"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": 24
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 24
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 70
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 68
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 45
}
]
},
"multi-traglastGesamt": {
"buckets": []
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "3 St\u00fcck",
"multi-anzahlFachboeden.key": "3 St\u00fcck"
},
"doc_count": 42
},
{
"key": {
"multi-anzahlFachboeden.sorting": "4 St\u00fcck",
"multi-anzahlFachboeden.key": "4 St\u00fcck"
},
"doc_count": 114
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 18
}
]
},
"multi-ausfuehrungBoden": {
"after_key": {
"multi-ausfuehrungBoden.sorting": "Stahlpaneele",
"multi-ausfuehrungBoden.key": "Stahlpaneele"
},
"buckets": [
{
"key": {
"multi-ausfuehrungBoden.sorting": "Spanplatte",
"multi-ausfuehrungBoden.key": "Spanplatte"
},
"doc_count": 87
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahl",
"multi-ausfuehrungBoden.key": "Stahl"
},
"doc_count": 58
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahlpaneele",
"multi-ausfuehrungBoden.key": "Stahlpaneele"
},
"doc_count": 27
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 193
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|