lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesh" <emailg...@yahoo.co.in>
Subject Re: Wildcard query
Date Mon, 31 Aug 2009 09:47:46 GMT
Hi Anusham

I could understand that the Analyzer stems the word to base word and stores in DB. Users may
not know this internals and they tend to give "attenti*". 

My question is queryparser should stem the word and then apply /expand the wild card query.
Is this a bug with queryparser? OR Analyzer will not stem the word if it finds a wild card
operator in it?

Regards
Ganesh


----- Original Message ----- 
From: "Anshum" <anshumg@gmail.com>
To: <java-user@lucene.apache.org>
Sent: Monday, August 31, 2009 3:01 PM
Subject: Re: Wildcard query


> Hi Ganesh,
> 
> Its the snowball analyzer that uses English Stemmer which is causing this
> behavior. When you search for* 'attention'*, the query gets parsed to*'attent'
> *whereas when you search for *'attenti'* it stays as it is because the
> stemmer is not able to fit it anywhere.
> Could you tell me what is the goal that is to be met here? I suppose using
> just the Snowball analyzer here might be enough for you and you might just
> give the wildcard query a complete skip.
> 
> --
> Anshum Gupta
> Naukri Labs!
> http://ai-cafe.blogspot.com
> 
> The facts expressed here belong to everybody, the opinions to me. The
> distinction is yours to draw............
> 
> 
> On Mon, Aug 31, 2009 at 11:36 AM, Ganesh <emailgane@yahoo.co.in> wrote:
> 
>> Hello all,
>>
>> I am having some content with text "attention". If is search using "att*",
>> "attent*", the results are displayed. If i search for "attenti*" then no
>> results are displayed.
>>
>> I am using Snowball Analyzer for Indexing and Search (Lucene v2.4.1).
>>
>> Regards
>> Ganesh
>> Send instant messages to your online friends http://in.messenger.yahoo.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>
Send instant messages to your online friends http://in.messenger.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message