I have a scenario where I have used SnowballPorterFilterFactory to stem that field.
Now it stores all talent types like ex: Actor, Dancer, Singer, Model, etc.
This stemming helps me to search using
Actor in mumbai
AND
Actors in mumbai
Both.
Now I want to search with
show all who sings in mumbai
How can I match sing with singer ??
It does not matching for now ..
Use the "Analysis" page of the Solr admin interface to see what stemming is being performed for
singer
. This allows you to see each step for both terms, and what the end result for bothsing
andsinger
is.The difference is probably casued by the fact that they're not actually the same word - singer is a subject, while sing is a verb, and stemming them to the same word might give bad results. You may get better results by using a synonym word list in this case. The correct stemming of
singer
is probably justsinger
(singer, singers).