How to configure stemming in Solr?

前端 未结 2 509
渐次进展
渐次进展 2021-01-02 17:06

I add to solr index: \"American\". When I search by \"America\" there is no results.

How should schema.xml be configured to get results?

current configuratio

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-02 18:00

    Why would you have two stemmers?
    Try removing EnglishPorterFilterFactory (deprecated) from both of your analyzer types, rebuild the index and then try whether search for American will yield America.

    If that wont work, the other thing you can try is to remove both of your stemmer filters and add SnowballPorterFilterFactory with language="English" instead.

提交回复
热议问题