Hi,

Yes, if you want flowers to match flower you will want to apply stemming.  You 
can use the Snowball for English.  I don't have any code handy, but you can see 
how it's done if you look at Lucene's unit test for Snowball Analyzer.


Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: RanjithStar <[email protected]>
> To: [email protected]
> Sent: Tuesday, December 16, 2008 10:31:06 AM
> Subject: Stemming issues
> 
> 
> 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?
> -- 
> View this message in context: 
> http://www.nabble.com/Stemming-issues-tp21035261p21035261.html
> Sent from the Nutch - User mailing list archive at Nabble.com.

Reply via email to