Krunal
Krunal

Reputation: 3269

Include singular search results when search for plural in Solr

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?

Upvotes: 2

Views: 2751

Answers (1)

Paige Cook
Paige Cook

Reputation: 22555

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.

Upvotes: 3

Related Questions