Как я могу настроить индекс вasticsearch для того, чтобы параметр "include" из агрегации не учитывал регистр?
I have this index:
PUT index {"settings":
{"analysis": {
"analyzer": {
"my_normalizer": {
"type": "custom",
"tokenizer": "keyword",
"char_filter": ,
"filter": ["lowercase"]}}}},
"mappings":{
"_doc":{
"properties":{
"foo": {
"type": "text",
"analyzer": "my_normalizer",
"fielddata": true}}}}}
With data:
PUT index/_doc/1 {
"foo": "BAR"
}
PUT index/_doc/2 {
"foo": "bar"
}
And the query:
GET index/_search{
"size": 0,
"aggs": {
"ad":{
"terms": {"field": "foo",
"include": "ba.*"}}}}
Но если я изменю "ba" в "BA", агрегация не даст результата.
Вы можете мне помочь?