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

后端 未结 4 1851
感情败类
感情败类 2021-01-02 04:00

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?

4条回答
  •  甜味超标
    2021-01-02 04:40

    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_
    

提交回复
热议问题