mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-18 04:06:19 +00:00
fix: use .raw field for aggregations
This commit is contained in:
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user