'Can't use elasticsearch search_analyzer in kibana discover

This is the index i created with analyzer setting.I understand the concept of index time analysis and search time analysis.

PUT test-index-000001
{
   "settings":{
     "number_of_replicas": 0, 
      "analysis":{
         "analyzer":{
            "autocomplete":{ 
               "type":"custom",
               "tokenizer":"standard",
               "filter":["lowercase","autocomplete_filter"]
               }
         },
         "filter": {
           "autocomplete_filter":
           {
             "type": "edge_ngram",
             "min_gram": 1,
             "max_gram": 20
           }
         }
      }
   },
   "mappings":{
       "properties":{
          "title": {
             "type":"text",
             "analyzer":"autocomplete"
              
             }
      }
   }
}

Then i add one document in it.

PUT test-index-000001/_doc/1
{
   "title":"Quick Brown"
}

After then i search "Qui" in kibana's discover my query is matched , i search again but this time i search for "quick br" and my search match again. Although i should not match because i am not using search_analyzer



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source