lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: Singular to plural
Date Thu, 07 Feb 2013 10:57:45 GMT
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: uwe@thetaphi.de

> -----Original Message-----
> From: amita [mailto:amita_bhakkad@persistent.co.in]
> Sent: Thursday, February 07, 2013 8:54 AM
> To: general@lucene.apache.org
> 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.


Mime
View raw message