Case-Insensitive regex-based search for text fields in ES 5.6.3

I am trying to perform regex-based, case-insensitive search for text field.

Here is my settings and mapping details.
{
"settings":{
"analysis":{
"analyzer":{
"text_analyzer":{
"type":"custom",
"tokenizer":"standard",
"filter": ["lowercase", "uppercase"]
}
}
},
"number_of_shards" : 1,
"number_of_replicas" : 0
}
}
{
"properties" : {
"rv11" : {
"type" : "text",
"analyzer" : "text_analyzer"
},
"rv22" : {
"type" : "keyword"
}
}
}

"rv11" field has "RESTServices" value.

For /_search?q=rv11:/.REST./ I'm getting results.
But for /_search?q=rv11:/.rest./ I'm not getting any result.

My requirement is that it should work in both cases irrespective of the letter-cases.

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