ElasticSearch n-gram tokenfilter not finding partial words

前端 未结 2 862
小蘑菇
小蘑菇 2021-02-08 16:58

I have been playing around with ElasticSearch for a new project of mine. I have set the default analyzers to use the ngram tokenfilter. This is my elasticsearch.yml file:

<
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-08 17:07

    You should check the get mapping API to see if your mapping has been applied: http://www.elasticsearch.org/guide/reference/api/admin-indices-get-mapping.html

    Btw it has been said on the mailing list that when an index already contains documents, the mappings you put on the elasticsearch.yml are not applied. You need to clean your index first.

    I've tried ngrams with ES and it works fine for me.

提交回复
热议问题