lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meghana <meghana.rav...@amultek.com>
Subject RE: "fuzzy prefix" search
Date Fri, 25 Nov 2011 10:19:48 GMT
Hi Uwe ,
I need to do something similar... can u plz tell me how can i pass integer
in my fuzzy search query? 
say for ex. i am searching like q=major~0.6 
i want to match terms after prefix "maj".  how can i pass integer to do that
way ? 

Thanks.



Uwe Schindler wrote
> 
> Hi,
> 
> You can pass an integer to FuzzyQuery which defines the number of
> characters
> that are seen as prefix. So all terms must match this prefix and the rest
> of
> each term is matched using fuzzy.
> 
> Uwe
> 
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@
> 
>> -----Original Message-----
>> From: Clemens Wyss [mailto:clemensdev@]
>> Sent: Monday, May 02, 2011 1:47 PM
>> To: java-user@.apache
>> Subject: "fuzzy prefix" search
>> 
>> I'd like to search fuzzily but not on a full term.
>> E.g.
>> I have a text "Merlot del Ticino"
>> I'd like
>> "mer", "merr", "melo", ... to match.
>> 
>> If I use FuzzyQuery only "merlot,  "merlott" hit. What Query-combination
>> should I use?
>> 
>> Thx
>> Clemens
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@.apache
>> For additional commands, e-mail: java-user-help@.apache
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@.apache
> For additional commands, e-mail: java-user-help@.apache
> 


--
View this message in context: http://lucene.472066.n3.nabble.com/fuzzy-prefix-search-tp2889563p3535742.html
Sent from the Lucene - Java Users mailing list archive at Nabble.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