lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Funny results with Fuzzy
Date Tue, 25 Oct 2005 12:16:30 GMT

On 25 Oct 2005, at 07:35, Rob Young wrote:
>> Try setting the QueryParser.setFuzzyPrefixLength to 1.
>>
>>
> That would be a great start. How would I implement that if I'm  
> using FuzzyQuery rather than QueryParser?

Use the FuzzyQuery constructor that sets this value:

     <http://lucene.apache.org/java/docs/api/org/apache/lucene/search/ 
FuzzyQuery.html#FuzzyQuery(org.apache.lucene.index.Term,%20float,% 
20int)>

Erik


---------------------------------------------------------------------
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