| 1 |
16.75 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":"87fc2df230d297e89363f164c691fa75"}},{"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": 182,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "656e5b3ef0602a88f71cf33ad941c8d5",
"_score": 1100.0,
"_source": {
"id": "656e5b3ef0602a88f71cf33ad941c8d5",
"autoIncrement": 68016.0
},
"fields": {
"displayGroup": [
"a7922a71f53cbe420ec6cad242f5b5b6"
]
},
"sort": [
0,
1100.0,
0,
68016,
"656e5b3ef0602a88f71cf33ad941c8d5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5e4dbe6a4752c18c48661866e92abd03",
"_score": 1100.0,
"_source": {
"id": "5e4dbe6a4752c18c48661866e92abd03",
"autoIncrement": 68015.0
},
"fields": {
"displayGroup": [
"bf5d2356017a0fbbf10c757f18054142"
]
},
"sort": [
0,
1100.0,
0,
68015,
"5e4dbe6a4752c18c48661866e92abd03"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "182846c9ebf2215f6b9b64ef516afb02",
"_score": 1100.0,
"_source": {
"id": "182846c9ebf2215f6b9b64ef516afb02",
"autoIncrement": 68014.0
},
"fields": {
"displayGroup": [
"d7370455f8903c01fd896d8879285062"
]
},
"sort": [
0,
1100.0,
0,
68014,
"182846c9ebf2215f6b9b64ef516afb02"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d0a220626e041bb2f047468526733986",
"_score": 1100.0,
"_source": {
"id": "d0a220626e041bb2f047468526733986",
"autoIncrement": 68013.0
},
"fields": {
"displayGroup": [
"b1609b8d9b30a16cf8d45be1b5fa9f51"
]
},
"sort": [
0,
1100.0,
0,
68013,
"d0a220626e041bb2f047468526733986"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eac4ef0d6d43d9450771f7025fa54841",
"_score": 1100.0,
"_source": {
"id": "eac4ef0d6d43d9450771f7025fa54841",
"autoIncrement": 68012.0
},
"fields": {
"displayGroup": [
"720ca544291ba4fb1a25ab41cf122118"
]
},
"sort": [
0,
1100.0,
0,
68012,
"eac4ef0d6d43d9450771f7025fa54841"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b775bfe5968ce393d4c2a5ad287b6efd",
"_score": 1100.0,
"_source": {
"id": "b775bfe5968ce393d4c2a5ad287b6efd",
"autoIncrement": 61355.0
},
"fields": {
"displayGroup": [
"79d38b2fd5c3c7fd22750ac2829f1a42"
]
},
"sort": [
0,
1100.0,
0,
61355,
"b775bfe5968ce393d4c2a5ad287b6efd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a7e3cd7dbd06a5f1ee70653641bacf03",
"_score": 1100.0,
"_source": {
"id": "a7e3cd7dbd06a5f1ee70653641bacf03",
"autoIncrement": 61345.0
},
"fields": {
"displayGroup": [
"2192d851f536ed4cdec3b8634427731c"
]
},
"sort": [
0,
1100.0,
0,
61345,
"a7e3cd7dbd06a5f1ee70653641bacf03"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "22d646dad8f6b2a8d43d4e2c78bd61d3",
"_score": 1100.0,
"_source": {
"id": "22d646dad8f6b2a8d43d4e2c78bd61d3",
"autoIncrement": 61334.0
},
"fields": {
"displayGroup": [
"682939efd252dd8ab92755b565ff3488"
]
},
"sort": [
0,
1100.0,
0,
61334,
"22d646dad8f6b2a8d43d4e2c78bd61d3"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5872195fd4a46e532005decca520a24c",
"_score": 1100.0,
"_source": {
"id": "5872195fd4a46e532005decca520a24c",
"autoIncrement": 61325.0
},
"fields": {
"displayGroup": [
"20b7ff43d3112214a5ca2533d9f59201"
]
},
"sort": [
0,
1100.0,
0,
61325,
"5872195fd4a46e532005decca520a24c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f2fcc586860a4b748f9a35ab6924950a",
"_score": 1100.0,
"_source": {
"id": "f2fcc586860a4b748f9a35ab6924950a",
"autoIncrement": 61315.0
},
"fields": {
"displayGroup": [
"c36c3f01c8d998ada655677fa7e76daa"
]
},
"sort": [
0,
1100.0,
0,
61315,
"f2fcc586860a4b748f9a35ab6924950a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3f377815a8fcb8f4019a5ca9587c9008",
"_score": 1100.0,
"_source": {
"id": "3f377815a8fcb8f4019a5ca9587c9008",
"autoIncrement": 61307.0
},
"fields": {
"displayGroup": [
"52b339a25de2ddd96a1a0206b030cf9c"
]
},
"sort": [
0,
1100.0,
0,
61307,
"3f377815a8fcb8f4019a5ca9587c9008"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "09eddb2557d8a05ce6689551448a6d22",
"_score": 1100.0,
"_source": {
"id": "09eddb2557d8a05ce6689551448a6d22",
"autoIncrement": 61306.0
},
"fields": {
"displayGroup": [
"321f3d1ffbf4fca88976fb0d639d88d9"
]
},
"sort": [
0,
1100.0,
0,
61306,
"09eddb2557d8a05ce6689551448a6d22"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9efe20e00ebdf1eae380899ed8b7b5a5",
"_score": 1100.0,
"_source": {
"id": "9efe20e00ebdf1eae380899ed8b7b5a5",
"autoIncrement": 61304.0
},
"fields": {
"displayGroup": [
"7731d2b57f1fd535f2d53de68c9b0c47"
]
},
"sort": [
0,
1100.0,
0,
61304,
"9efe20e00ebdf1eae380899ed8b7b5a5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "8bcf595dfa43ea2395a5c3a3bdd4528b",
"_score": 1100.0,
"_source": {
"id": "8bcf595dfa43ea2395a5c3a3bdd4528b",
"autoIncrement": 61303.0
},
"fields": {
"displayGroup": [
"baf5a007438e1ed8875aaf40468cbffc"
]
},
"sort": [
0,
1100.0,
0,
61303,
"8bcf595dfa43ea2395a5c3a3bdd4528b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0c6a1b6ece2491b351ec9b091395be0d",
"_score": 1100.0,
"_source": {
"id": "0c6a1b6ece2491b351ec9b091395be0d",
"autoIncrement": 61301.0
},
"fields": {
"displayGroup": [
"b2695426a739868e400e6ae56b368610"
]
},
"sort": [
0,
1100.0,
0,
61301,
"0c6a1b6ece2491b351ec9b091395be0d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "98ad2d7c9c733790bd5e91a779911b07",
"_score": 1100.0,
"_source": {
"id": "98ad2d7c9c733790bd5e91a779911b07",
"autoIncrement": 61299.0
},
"fields": {
"displayGroup": [
"192c44de2da0e9129c01eedbb2c6d83d"
]
},
"sort": [
0,
1100.0,
0,
61299,
"98ad2d7c9c733790bd5e91a779911b07"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "067744ce5bbf5640d82c3d6b7453488f",
"_score": 1100.0,
"_source": {
"id": "067744ce5bbf5640d82c3d6b7453488f",
"autoIncrement": 61284.0
},
"fields": {
"displayGroup": [
"9252fbd3a1628d4b7a9506fa8a7f5a98"
]
},
"sort": [
0,
1100.0,
0,
61284,
"067744ce5bbf5640d82c3d6b7453488f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2a2c1bf0d4335b0f29165d4d944bc403",
"_score": 1100.0,
"_source": {
"id": "2a2c1bf0d4335b0f29165d4d944bc403",
"autoIncrement": 61277.0
},
"fields": {
"displayGroup": [
"f7ecdee3db98ec22e03e0ffb0d8d234c"
]
},
"sort": [
0,
1100.0,
0,
61277,
"2a2c1bf0d4335b0f29165d4d944bc403"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "faf3bb0d531a5776265bfa3b7f58a60f",
"_score": 1100.0,
"_source": {
"id": "faf3bb0d531a5776265bfa3b7f58a60f",
"autoIncrement": 61266.0
},
"fields": {
"displayGroup": [
"966f9f7ff04cf988bb63e6cce60ca44c"
]
},
"sort": [
0,
1100.0,
0,
61266,
"faf3bb0d531a5776265bfa3b7f58a60f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "07ed63c234020c1093cea456f43093ab",
"_score": 1100.0,
"_source": {
"id": "07ed63c234020c1093cea456f43093ab",
"autoIncrement": 61255.0
},
"fields": {
"displayGroup": [
"5880e5b610ee0dae821b9e129cc32250"
]
},
"sort": [
0,
1100.0,
0,
61255,
"07ed63c234020c1093cea456f43093ab"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "475370eb80ae58453c628e0c691988f7",
"_score": 1100.0,
"_source": {
"id": "475370eb80ae58453c628e0c691988f7",
"autoIncrement": 61244.0
},
"fields": {
"displayGroup": [
"a1916cb4d1622942fdf18a7a305d5a97"
]
},
"sort": [
0,
1100.0,
0,
61244,
"475370eb80ae58453c628e0c691988f7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fbe2b7fed27e9790d392f85b5320208e",
"_score": 1100.0,
"_source": {
"id": "fbe2b7fed27e9790d392f85b5320208e",
"autoIncrement": 61239.0
},
"fields": {
"displayGroup": [
"0362643b9f8ab9f1a6d3bcd9d103405b"
]
},
"sort": [
0,
1100.0,
0,
61239,
"fbe2b7fed27e9790d392f85b5320208e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b5da46cf7aebf76f5329e4109289dfa9",
"_score": 1100.0,
"_source": {
"id": "b5da46cf7aebf76f5329e4109289dfa9",
"autoIncrement": 61236.0
},
"fields": {
"displayGroup": [
"41e4c9964a99e1e7e35be89e2dc1412e"
]
},
"sort": [
0,
1100.0,
0,
61236,
"b5da46cf7aebf76f5329e4109289dfa9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a05e0c2975e9dd65fb626234baba9d59",
"_score": 1100.0,
"_source": {
"id": "a05e0c2975e9dd65fb626234baba9d59",
"autoIncrement": 61195.0
},
"fields": {
"displayGroup": [
"b65ac6a6d038f256811b29a2e145becc"
]
},
"sort": [
0,
1100.0,
0,
61195,
"a05e0c2975e9dd65fb626234baba9d59"
]
}
]
},
"aggregations": {
"total-count": {
"value": 182
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
5.43 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":"87fc2df230d297e89363f164c691fa75"}},{"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-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"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"}},"multi-temperaturbereich":{"composite":{"sources":[{"multi-temperaturbereich.sorting":{"terms":{"field":"attribute_temperaturbereich","order":"ASC"}}},{"multi-temperaturbereich.key":{"terms":{"field":"attribute_temperaturbereich"}}}],"size":"99999"}},"range-gewichtCa":{"stats":{"field":"attribute_gewichtCa"}},"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": "87fc2df230d297e89363f164c691fa75"
}
},
{
"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-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"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"
}
},
"multi-temperaturbereich": {
"composite": {
"sources": [
{
"multi-temperaturbereich.sorting": {
"terms": {
"field": "attribute_temperaturbereich",
"order": "ASC"
}
}
},
{
"multi-temperaturbereich.key": {
"terms": {
"field": "attribute_temperaturbereich"
}
}
}
],
"size": "99999"
}
},
"range-gewichtCa": {
"stats": {
"field": "attribute_gewichtCa"
}
},
"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": 182,
"min": 1.0,
"max": 199.0,
"avg": 84.4423076923077,
"sum": 15368.5
},
"rating-exists": {
"doc_count": 182,
"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": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "25cd199e2426c18067f06af2b5d77410",
"manufacturer-count-filter.key": "25cd199e2426c18067f06af2b5d77410"
},
"doc_count": 60
},
{
"key": {
"manufacturer-count-filter.sorting": "4197154d9f9e3722cd4472257440a963",
"manufacturer-count-filter.key": "4197154d9f9e3722cd4472257440a963"
},
"doc_count": 16
},
{
"key": {
"manufacturer-count-filter.sorting": "44c6ac76dcdb89d2f0251cef18bbdd36",
"manufacturer-count-filter.key": "44c6ac76dcdb89d2f0251cef18bbdd36"
},
"doc_count": 16
},
{
"key": {
"manufacturer-count-filter.sorting": "5267ee69add37a0408db89f9cd30c57f",
"manufacturer-count-filter.key": "5267ee69add37a0408db89f9cd30c57f"
},
"doc_count": 28
},
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 3
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "b6262a828613f753fc05485b9f3384dc",
"manufacturer-count-filter.key": "b6262a828613f753fc05485b9f3384dc"
},
"doc_count": 7
},
{
"key": {
"manufacturer-count-filter.sorting": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"doc_count": 48
}
]
},
"bool-reduced": {
"doc_count": 4,
"bool-reduced": {
"value": 4
}
},
"width": {
"count": 180,
"min": 100.0,
"max": 310.0,
"avg": 199.7111111111111,
"sum": 35948.0
},
"width-stats": {
"doc_count": 180,
"width-stats": {
"count": 180,
"min": 100.0,
"max": 310.0,
"avg": 199.7111111111111,
"sum": 35948.0
}
},
"height": {
"count": 180,
"min": 45.0,
"max": 250.0,
"avg": 141.32777777777778,
"sum": 25439.0
},
"height-stats": {
"doc_count": 180,
"height-stats": {
"count": 180,
"min": 45.0,
"max": 250.0,
"avg": 141.32777777777778,
"sum": 25439.0
}
},
"tiefe": {
"count": 174,
"min": 85.0,
"max": 600.0,
"avg": 342.0689655172414,
"sum": 59520.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Kleinteilemagazine",
"multi-typModel.key": "Kleinteilemagazine"
},
"doc_count": 7
},
{
"key": {
"multi-typModel.sorting": "Regalk\u00e4sten",
"multi-typModel.key": "Regalk\u00e4sten"
},
"doc_count": 32
},
{
"key": {
"multi-typModel.sorting": "Sichtlagerk\u00e4sten",
"multi-typModel.key": "Sichtlagerk\u00e4sten"
},
"doc_count": 139
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 4
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "transparent",
"multi-farbe.key": "transparent"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7023 betongrau",
"multi-farbe.key": "RAL 7023 betongrau"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "blau",
"multi-farbe.key": "blau"
},
"doc_count": 37
},
{
"key": {
"multi-farbe.sorting": "gelb",
"multi-farbe.key": "gelb"
},
"doc_count": 31
},
{
"key": {
"multi-farbe.sorting": "grau",
"multi-farbe.key": "grau"
},
"doc_count": 12
},
{
"key": {
"multi-farbe.sorting": "gr\u00fcn",
"multi-farbe.key": "gr\u00fcn"
},
"doc_count": 35
},
{
"key": {
"multi-farbe.sorting": "naturwei\u00df",
"multi-farbe.key": "naturwei\u00df"
},
"doc_count": 8
},
{
"key": {
"multi-farbe.sorting": "regenerat-grau",
"multi-farbe.key": "regenerat-grau"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "rot",
"multi-farbe.key": "rot"
},
"doc_count": 37
},
{
"key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "transparent",
"multi-farbe.key": "transparent"
},
"doc_count": 2
}
]
},
"multi-materialBehaelter": {
"buckets": []
},
"multi-behaelterfarbe": {
"buckets": []
},
"range-behaeltervolumen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-temperaturbereich": {
"after_key": {
"multi-temperaturbereich.sorting": "-50 bis +80 \u00b0C",
"multi-temperaturbereich.key": "-50 bis +80 \u00b0C"
},
"buckets": [
{
"key": {
"multi-temperaturbereich.sorting": "-20 bis +80 \u00b0C",
"multi-temperaturbereich.key": "-20 bis +80 \u00b0C"
},
"doc_count": 76
},
{
"key": {
"multi-temperaturbereich.sorting": "-40 bis +80 \u00b0C",
"multi-temperaturbereich.key": "-40 bis +80 \u00b0C"
},
"doc_count": 20
},
{
"key": {
"multi-temperaturbereich.sorting": "-50 bis +80 \u00b0C",
"multi-temperaturbereich.key": "-50 bis +80 \u00b0C"
},
"doc_count": 28
}
]
},
"range-gewichtCa": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "25cd199e2426c18067f06af2b5d77410",
"doc_count": 60
},
{
"key": "e92077b923fe7f60b3b5ea31cceb8c2a",
"doc_count": 48
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 28
},
{
"key": "4197154d9f9e3722cd4472257440a963",
"doc_count": 16
},
{
"key": "44c6ac76dcdb89d2f0251cef18bbdd36",
"doc_count": 16
},
{
"key": "b6262a828613f753fc05485b9f3384dc",
"doc_count": 7
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 4
},
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|