Hey all,
ES version: 2.3.2 (recently upgraded)
I'm doing terms aggregations on not_analyzed
string field using include filter.
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#_filtering_values_2
Is it possible to add a regex flag which performs "CASE_INSENSITIVE" terms aggregation on string field?
PUT /my_index
{
"mappings": {
"user": {
"properties": {
"name": {
"type": "string",
"fields": {
"raw": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}
}
Aggregation Query:
POST /my_index/_search
{
"aggregations": {
"name_regex_terms_agg": {
"terms": {
"field": "name.raw",
"size": 1000,
"shard_size": 100000,
"include": "adam.*|.*\\sadam.*"
}
}
}
}
Is it possible to add a regex flag which performs "CASE_INSENSITIVE" terms aggregation on string field?
Like Terms aggregation should look for both Adam or adam.
Please let me know if there is any other information required.
Thanks for the help.