- How to do this for integer?
- This example for string from documentation (Terms aggregation | Elasticsearch Guide [8.11] | Elastic), and it is contain error:
{
"aggs" : {
"tags" : {
"terms" : {
"field" : "tags",
"include" : ".sport.",
"exclude" : "water_.*"
}
}
}
}
Must be "tags.keyword" or illegal_argument_exception will thrown.