Regexp for integer aggregation

  1. How to do this for integer?
  2. 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.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.