Jasmin Mamtora
Jasmin Mamtora

Reputation: 11

Singular/plural keyword search not working

I am facing a problem with singular and plural keyword search. For example, if I search men, it should return "men" and also "man". However, it is not working.

Upvotes: 0

Views: 305

Answers (1)

MatsLindh
MatsLindh

Reputation: 52822

The easiest way is to use a SynonymFilter with those terms that you're aware of - the hard part is thinking of every alternative.

While you usually use stemming to get the common stem for words, this problem is known as lemmatization - where you're interested in the different forms of a word, and not the common stem.

For Solr your best bet is probably to be to go for something like Solr Lemmatizer by Nicholas Ding.

Upvotes: 1

Related Questions