Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I customize Elastic Search to use my own Stop Word list?

specifically, I want to index everything (e.g. the who) with no stop word list. Is elastic search flexible enough and easy enough to change?

like image 279
Joseph Perla Avatar asked Feb 07 '11 22:02

Joseph Perla


2 Answers

By default, the analyzer elasticsearch uses is a standard analyzer with the default Lucene English stopwords. I have configured elasticsearch to use the same analyzer but without stopwords by adding the following to the elasticsearch.yml file.

# Index Settings
index:
  analysis:
    analyzer:
      # set standard analyzer with no stop words as the default for both indexing and searching
      default:
        type: standard
        stopwords: _none_
like image 153
Caroline Orr Avatar answered Oct 22 '22 01:10

Caroline Orr


Yes, you can do this using ElasticSearch's internal config YAML file.

See the config docs for how to change the analyzer settings.

like image 38
skaffman Avatar answered Oct 22 '22 00:10

skaffman