Remove stop words from query

1.2k views Asked by At

I am working on Elastic Search 6.4.2. I want to apply stopwords filter to my index inorder to restrict the stopwords queries. I added my_stopwords.txt in the config. I added stopword analyzers but when I check in Kibana the stopwords still searching theindex. How can I restrict this.

PUT /some-index
{  
   "settings":{  
      "analysis":{  
         "analyzer":{  
            "blogs_analyzer":{  
               "type":"standard",
               "stopwords_path":"stopwords/my_stopwords.txt"
            }
         }
      }
   },
   "mappings":{  
      "doc":{  
         "_source":{  
            "enabled":true
         },
         "properties":{  
            "content":{  
               "type":"text",
               "index":"true",
               "store":true,
               "analyzer":"blogs_analyzer",
               "search_analyzer":"blogs_analyzer"
            },
            "host":{  
               "type":"keyword"
            },
            "title":{  
               "type":"text",
               "index":"true",
               "store":true,
               "analyzer":"blogs_analyzer",
               "search_analyzer":"blogs_analyzer"
            },
            "url":{  
               "type":"keyword"
            }
         }
      }
   }
}
0

There are 0 answers