Include singular search results when search for pl

2019-07-18 12:20发布

I'm working with Solr 4.1, and got it working correctly. I have the terms in the document which contains "school". It gives search result correctly when searching for "school". However, I want Solr to include these results when searching for "schools".

So basically I want Solr to include singular terms in its search results when searching for plural terms.

Any idea how to do it?

标签: solr solr4
1条回答
Ridiculous、
2楼-- · 2019-07-18 12:53

You need to apply stemming to your indexed fields in order to achieve this behavior. Please see the Stemming Wiki Page for a complete explanation and an example fieldType to support stemming.

查看更多
登录 后发表回答