mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-05 13:02:54 +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] = {
|
(aggregations[global ? '@all' : topTypeName] as ESNestedAggregation).aggs[property] = {
|
||||||
terms: {
|
terms: {
|
||||||
field: `${property}.keyword`,
|
field: `${property}.raw`,
|
||||||
size: 1000,
|
size: 1000,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user