lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Lucene FuzzyQuery
Date Fri, 07 Jun 2019 19:35:30 GMT
They only differ in 1 char and 5 letters long one 4 letters long the 
correct word:

Mains vs Main (correct)

FuzzyQuery Mains~2 cannot catch anything with Main in the first 74 hits.

the 75th hit has Main word.

Best regards

On 6/7/19 2:44 PM, Atri Sharma wrote:
>> i make sure i specify a string with 1 edit away misspelled and that
>> never gets hit but the word with correct spelling is in the index.
> How long are your query terms and the actual word? For fuzzy query to
> match, your edit distance needs to be less than the smaller of the
> query and the actual word.
> Also, fuzzy query can have issues matching words of 1 or 2 lengths.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message