Stemming issues
0 posts in topic
Flat View  Flat View

Posted By:   RKR_star
Posted On:   Tuesday, December 16, 2008 10:56 AM

I use StandardAnalyzer(english only) for indexing and not using any stemmer now.
If I index the word 'flower' and try to do a search for 'flowers', it doesn't give any result. Similarily, if I had indexed for 'attacks' and search for 'attack', it won't give any result.

In order to make this work, do I need to stem the word 'flowers' as 'flower' before indexing? OR index as 'flowers' as such and while making a search does Lucene has any provision to search for 'flower' or 'flowers'? If so, how can it be accomplished?
Also, which stemmer can I use? snowball?

Can any one please add some code snippet for how to use it?
About | Sitemap | Contact