fix: use .raw field for aggregations

This commit is contained in:
Wieland Schöbl
2019-11-12 16:36:43 +01:00
parent d7cc4301c0
commit 4c1a374a9e

View File

@@ -410,7 +410,7 @@ function addAggregatable(path: string, topTypeName: string, global: boolean) {
(aggregations[global ? '@all' : topTypeName] as ESNestedAggregation).aggs[property] = {
terms: {
field: `${property}.keyword`,
field: `${property}.raw`,
size: 1000,
},
};