| 1 |
17.27 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":"07b459106e817025ff7c0577bed18344"}},{"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": 106,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "3a95e94653c74fea4228d0f8677e67a2",
"_score": 1100.0,
"_source": {
"id": "3a95e94653c74fea4228d0f8677e67a2",
"autoIncrement": 44250.0
},
"fields": {
"displayGroup": [
"71c345eacff476ad918802734c63ba12"
]
},
"sort": [
0,
1100.0,
0,
44250,
"3a95e94653c74fea4228d0f8677e67a2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c71f769142acb9d6ddd2d3cf58212827",
"_score": 1100.0,
"_source": {
"id": "c71f769142acb9d6ddd2d3cf58212827",
"autoIncrement": 44222.0
},
"fields": {
"displayGroup": [
"e4bf29a900c12c170cbecb4211e22828"
]
},
"sort": [
0,
1100.0,
0,
44222,
"c71f769142acb9d6ddd2d3cf58212827"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "002c8454ff3ce06dbd795aff12060751",
"_score": 1100.0,
"_source": {
"id": "002c8454ff3ce06dbd795aff12060751",
"autoIncrement": 44221.0
},
"fields": {
"displayGroup": [
"0043fa60de02db89c936265d734e786c"
]
},
"sort": [
0,
1100.0,
0,
44221,
"002c8454ff3ce06dbd795aff12060751"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "41bf95aaef6c4ab4cd6e6488d31a1ae1",
"_score": 1100.0,
"_source": {
"id": "41bf95aaef6c4ab4cd6e6488d31a1ae1",
"autoIncrement": 44192.0
},
"fields": {
"displayGroup": [
"7692c7584a219822b5d53fa952e0e700"
]
},
"sort": [
0,
1100.0,
0,
44192,
"41bf95aaef6c4ab4cd6e6488d31a1ae1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "590a56214c78f29dce609893d243cfcc",
"_score": 1100.0,
"_source": {
"id": "590a56214c78f29dce609893d243cfcc",
"autoIncrement": 44191.0
},
"fields": {
"displayGroup": [
"6bc24040985c8f7d60dd60bb75fcb29b"
]
},
"sort": [
0,
1100.0,
0,
44191,
"590a56214c78f29dce609893d243cfcc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8706297710ef5a599f9e03e61c2598cd",
"_score": 1100.0,
"_source": {
"id": "8706297710ef5a599f9e03e61c2598cd",
"autoIncrement": 44190.0
},
"fields": {
"displayGroup": [
"a83214c8a42bf992bad063c5fe31dc94"
]
},
"sort": [
0,
1100.0,
0,
44190,
"8706297710ef5a599f9e03e61c2598cd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1a4bebfda72021a6c07779669884a44e",
"_score": 1100.0,
"_source": {
"id": "1a4bebfda72021a6c07779669884a44e",
"autoIncrement": 43007.0
},
"fields": {
"displayGroup": [
"21b9d5de5131c3508b5bd2ee7b75452a"
]
},
"sort": [
0,
1100.0,
0,
43007,
"1a4bebfda72021a6c07779669884a44e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "80e33c449a89e284c3521275dab9b142",
"_score": 1100.0,
"_source": {
"id": "80e33c449a89e284c3521275dab9b142",
"autoIncrement": 42962.0
},
"fields": {
"displayGroup": [
"34c0b299d1ec9b2bff0784f9a67d8877"
]
},
"sort": [
0,
1100.0,
0,
42962,
"80e33c449a89e284c3521275dab9b142"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0cdd44af3c96fb7d61c856cab2d18052",
"_score": 1100.0,
"_source": {
"id": "0cdd44af3c96fb7d61c856cab2d18052",
"autoIncrement": 42896.0
},
"fields": {
"displayGroup": [
"0750c645cca2d1e482d3c5ce3c064a35"
]
},
"sort": [
0,
1100.0,
0,
42896,
"0cdd44af3c96fb7d61c856cab2d18052"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d230245dddc5a64518ed6b2f8c45d8c6",
"_score": 1100.0,
"_source": {
"id": "d230245dddc5a64518ed6b2f8c45d8c6",
"autoIncrement": 42861.0
},
"fields": {
"displayGroup": [
"1c34c4ffd35abf695a5ea35771ee1986"
]
},
"sort": [
0,
1100.0,
0,
42861,
"d230245dddc5a64518ed6b2f8c45d8c6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "54dea657a1e360bb6ed514a9e1b8f072",
"_score": 1100.0,
"_source": {
"id": "54dea657a1e360bb6ed514a9e1b8f072",
"autoIncrement": 42827.0
},
"fields": {
"displayGroup": [
"b3f7d01116eec23c65b6d5aaaf8fda45"
]
},
"sort": [
0,
1100.0,
0,
42827,
"54dea657a1e360bb6ed514a9e1b8f072"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "20da3a3ff1482ef097de361233eef9ec",
"_score": 1100.0,
"_source": {
"id": "20da3a3ff1482ef097de361233eef9ec",
"autoIncrement": 42775.0
},
"fields": {
"displayGroup": [
"199cb09d742e5bd663a6a923f8b1286a"
]
},
"sort": [
0,
1100.0,
0,
42775,
"20da3a3ff1482ef097de361233eef9ec"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7d0e6efaa60b3254a98e22a3360f19d9",
"_score": 1100.0,
"_source": {
"id": "7d0e6efaa60b3254a98e22a3360f19d9",
"autoIncrement": 42642.0
},
"fields": {
"displayGroup": [
"c9cde20d4c6637716fd468039cd540c2"
]
},
"sort": [
0,
1100.0,
0,
42642,
"7d0e6efaa60b3254a98e22a3360f19d9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ea73d9b38a45b4e0c75b59201d60baf9",
"_score": 1000.0,
"_source": {
"id": "ea73d9b38a45b4e0c75b59201d60baf9",
"autoIncrement": 147752.0
},
"fields": {
"displayGroup": [
"3ee2207b5915f0e2ff64031ce945df09"
]
},
"sort": [
0,
1000.0,
0,
147752,
"ea73d9b38a45b4e0c75b59201d60baf9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fa201de57a78717706709d4a0b7c9d9b",
"_score": 1000.0,
"_source": {
"id": "fa201de57a78717706709d4a0b7c9d9b",
"autoIncrement": 133746.0
},
"fields": {
"displayGroup": [
"c6eb6b41f95dde9d7599b3ba94acdebf"
]
},
"sort": [
0,
1000.0,
0,
133746,
"fa201de57a78717706709d4a0b7c9d9b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "39c5a9469e42383b93ad5712fa651172",
"_score": 1000.0,
"_source": {
"id": "39c5a9469e42383b93ad5712fa651172",
"autoIncrement": 100791.0
},
"fields": {
"displayGroup": [
"2810f381d219b6f2975d71b8491feec5"
]
},
"sort": [
0,
1000.0,
0,
100791,
"39c5a9469e42383b93ad5712fa651172"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "678e5f1d1f9ca8ddc644f47ef897bf96",
"_score": 1000.0,
"_source": {
"id": "678e5f1d1f9ca8ddc644f47ef897bf96",
"autoIncrement": 100790.0
},
"fields": {
"displayGroup": [
"be50c6a266f28a689d92950fb626c46f"
]
},
"sort": [
0,
1000.0,
0,
100790,
"678e5f1d1f9ca8ddc644f47ef897bf96"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ee35d203d7a2460e05cc12e29e47eb55",
"_score": 1000.0,
"_source": {
"id": "ee35d203d7a2460e05cc12e29e47eb55",
"autoIncrement": 100789.0
},
"fields": {
"displayGroup": [
"7b7d2e2cd17ff8ec8760811ac62f266c"
]
},
"sort": [
0,
1000.0,
0,
100789,
"ee35d203d7a2460e05cc12e29e47eb55"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "dda1dcf7d893c38514e3bf5b086ec736",
"_score": 1000.0,
"_source": {
"id": "dda1dcf7d893c38514e3bf5b086ec736",
"autoIncrement": 100788.0
},
"fields": {
"displayGroup": [
"f8be987e32af909a691c8530c8c85edb"
]
},
"sort": [
0,
1000.0,
0,
100788,
"dda1dcf7d893c38514e3bf5b086ec736"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3c448c1e0027e0e87bdab4d58aab26eb",
"_score": 1000.0,
"_source": {
"id": "3c448c1e0027e0e87bdab4d58aab26eb",
"autoIncrement": 100787.0
},
"fields": {
"displayGroup": [
"23f9760a61da74ed4d14c10ebae9f196"
]
},
"sort": [
0,
1000.0,
0,
100787,
"3c448c1e0027e0e87bdab4d58aab26eb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8756d8aa2239abaf09d68d6a308afc37",
"_score": 1000.0,
"_source": {
"id": "8756d8aa2239abaf09d68d6a308afc37",
"autoIncrement": 100786.0
},
"fields": {
"displayGroup": [
"b9b81934eaf75b0aeef43e9c8c3494d7"
]
},
"sort": [
0,
1000.0,
0,
100786,
"8756d8aa2239abaf09d68d6a308afc37"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c4125e88f418dd12309aa7859a2d3b15",
"_score": 1000.0,
"_source": {
"id": "c4125e88f418dd12309aa7859a2d3b15",
"autoIncrement": 100785.0
},
"fields": {
"displayGroup": [
"de96e93509c798bd6c3603186da9859a"
]
},
"sort": [
0,
1000.0,
0,
100785,
"c4125e88f418dd12309aa7859a2d3b15"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "072705cde2e74ee25ac490f3c427977a",
"_score": 1000.0,
"_source": {
"id": "072705cde2e74ee25ac490f3c427977a",
"autoIncrement": 100784.0
},
"fields": {
"displayGroup": [
"bb0c4db384e8c156e8fc4847a056aacc"
]
},
"sort": [
0,
1000.0,
0,
100784,
"072705cde2e74ee25ac490f3c427977a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ea53722efe64b4043e43503278c96f4a",
"_score": 1000.0,
"_source": {
"id": "ea53722efe64b4043e43503278c96f4a",
"autoIncrement": 100783.0
},
"fields": {
"displayGroup": [
"1a21ddb46c6ec96400c8634c6a4ecbb7"
]
},
"sort": [
0,
1000.0,
0,
100783,
"ea53722efe64b4043e43503278c96f4a"
]
}
]
},
"aggregations": {
"total-count": {
"value": 106
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.93 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":"07b459106e817025ff7c0577bed18344"}},{"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_rule5b270e597f114fbba683590b4a9cb579_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_rule5b270e597f114fbba683590b4a9cb579_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-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-materialBehaelter":{"composite":{"sources":[{"multi-materialBehaelter.sorting":{"terms":{"field":"attribute_materialBehaelter","order":"ASC"}}},{"multi-materialBehaelter.key":{"terms":{"field":"attribute_materialBehaelter"}}}],"size":"99999"}},"multi-behaelterfarbe":{"composite":{"sources":[{"multi-behaelterfarbe.sorting":{"terms":{"field":"attribute_behaelterfarbe","order":"ASC"}}},{"multi-behaelterfarbe.key":{"terms":{"field":"attribute_behaelterfarbe"}}}],"size":"99999"}},"range-behaeltervolumen":{"stats":{"field":"attribute_behaeltervolumen"}},"range-gewichtCa":{"stats":{"field":"attribute_gewichtCa"}},"bool-deckel":{"filter":{"term":{"attribute_deckel":"true"}},"aggregations":{"bool-deckel-count":{"value_count":{"field":"id"}}}},"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": "07b459106e817025ff7c0577bed18344"
}
},
{
"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_rule5b270e597f114fbba683590b4a9cb579_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_rule5b270e597f114fbba683590b4a9cb579_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-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-materialBehaelter": {
"composite": {
"sources": [
{
"multi-materialBehaelter.sorting": {
"terms": {
"field": "attribute_materialBehaelter",
"order": "ASC"
}
}
},
{
"multi-materialBehaelter.key": {
"terms": {
"field": "attribute_materialBehaelter"
}
}
}
],
"size": "99999"
}
},
"multi-behaelterfarbe": {
"composite": {
"sources": [
{
"multi-behaelterfarbe.sorting": {
"terms": {
"field": "attribute_behaelterfarbe",
"order": "ASC"
}
}
},
{
"multi-behaelterfarbe.key": {
"terms": {
"field": "attribute_behaelterfarbe"
}
}
}
],
"size": "99999"
}
},
"range-behaeltervolumen": {
"stats": {
"field": "attribute_behaeltervolumen"
}
},
"range-gewichtCa": {
"stats": {
"field": "attribute_gewichtCa"
}
},
"bool-deckel": {
"filter": {
"term": {
"attribute_deckel": "true"
}
},
"aggregations": {
"bool-deckel-count": {
"value_count": {
"field": "id"
}
}
}
},
"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": 106,
"min": 0.0,
"max": 849.0,
"avg": 323.97169811320754,
"sum": 34341.0
},
"rating-exists": {
"doc_count": 106,
"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": "e1330782b3097373dd5b64609bbdc363",
"manufacturer-count-filter.key": "e1330782b3097373dd5b64609bbdc363"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "002101f8725e5c78d9f30d87f3fa4c87",
"manufacturer-count-filter.key": "002101f8725e5c78d9f30d87f3fa4c87"
},
"doc_count": 27
},
{
"key": {
"manufacturer-count-filter.sorting": "3bb7d1a75e4b1caaecfd4c5223b756f7",
"manufacturer-count-filter.key": "3bb7d1a75e4b1caaecfd4c5223b756f7"
},
"doc_count": 3
},
{
"key": {
"manufacturer-count-filter.sorting": "e1330782b3097373dd5b64609bbdc363",
"manufacturer-count-filter.key": "e1330782b3097373dd5b64609bbdc363"
},
"doc_count": 16
}
]
},
"bool-reduced": {
"doc_count": 4,
"bool-reduced": {
"value": 4
}
},
"width": {
"count": 92,
"min": 124.0,
"max": 2160.0,
"avg": 1086.1304347826087,
"sum": 99924.0
},
"width-stats": {
"doc_count": 92,
"width-stats": {
"count": 92,
"min": 124.0,
"max": 2160.0,
"avg": 1086.1304347826087,
"sum": 99924.0
}
},
"height": {
"count": 92,
"min": 97.0,
"max": 1180.0,
"avg": 629.1847826086956,
"sum": 57885.0
},
"height-stats": {
"doc_count": 92,
"height-stats": {
"count": 92,
"min": 97.0,
"max": 1180.0,
"avg": 629.1847826086956,
"sum": 57885.0
}
},
"tiefe": {
"count": 79,
"min": 84.0,
"max": 1000.0,
"avg": 738.0886075949367,
"sum": 58309.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Stapelbeh\u00e4lter",
"multi-typModel.key": "Stapelbeh\u00e4lter"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Gitterboxen",
"multi-typModel.key": "Gitterboxen"
},
"doc_count": 3
},
{
"key": {
"multi-typModel.sorting": "Palettenboxen",
"multi-typModel.key": "Palettenboxen"
},
"doc_count": 66
},
{
"key": {
"multi-typModel.sorting": "Stapelbeh\u00e4lter",
"multi-typModel.key": "Stapelbeh\u00e4lter"
},
"doc_count": 37
}
]
},
"multi-materialBehaelter": {
"buckets": []
},
"multi-behaelterfarbe": {
"buckets": []
},
"range-behaeltervolumen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"range-gewichtCa": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"bool-deckel": {
"doc_count": 4,
"bool-deckel-count": {
"value": 4
}
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "002101f8725e5c78d9f30d87f3fa4c87",
"doc_count": 27
},
{
"key": "e1330782b3097373dd5b64609bbdc363",
"doc_count": 16
},
{
"key": "3bb7d1a75e4b1caaecfd4c5223b756f7",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|