elasticsearch - Ignore case analyzer - elastic - elastic search - elasticsearch tutorial - elasticsearch docker



Ignore case analyzer

If we need to ignore the case of our query, with respect to the match in the documents. An analyzer can be used in this case to ignore the case while searching. In order to work, Each field will have to contain this analyzer in it's property.

PUT my_index 
{
  "mappings": {
    "user": {
      "properties": {
        "name": {
          "type": "string"
          "analyzer":  "my_user_name_analyzer"
        },
        "id": {
          "type": "string",
          "index": "not_analyzed"
        }
      }
    }
  }
}

Related Searches to ignore case analyzer