Include singular search results when search for pl

2019-07-18 12:51发布

问题:

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?

回答1:

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.



标签: solr solr4