You have to do stemming on both indexing and query side! If the query submitted 
by the user is also stemmed the plurals get singular and a result is found. The 
important rule for Lucene is: Use the same Analyzer for indexing and query 
parsing (which is in most cases true, there are some special cases, but not 
related to stemming).

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [email protected]

> -----Original Message-----
> From: amita [mailto:[email protected]]
> Sent: Thursday, February 07, 2013 8:54 AM
> To: [email protected]
> Subject: Singular to plural
> 
> Hi,
> 
> I am using Snowball Analyzer with English Stemmer. It stems the plural term
> to singular and shows the proper search result however there is problem
> with singular to plural.
> My requirement is if document title is "guest room", it should be shown in
> search result upon searching for "rooms". The terms indexed for my
> document title are "guest" and "room". Since "rooms" is not indexed for this
> document, it's not being shown currently.
> Is there any way to achieve this?
> 
> Regards,
> Amita
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Singular-
> to-plural-tp4038931.html
> Sent from the Lucene - General mailing list archive at Nabble.com.

Reply via email to