lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Commented) (JIRA)" <>
Subject [jira] [Commented] (LUCENE-2557) FuzzyQuery - fuzzy terms and misspellings are ranked higher than exact matches
Date Fri, 09 Mar 2012 14:50:58 GMT


Robert Muir commented on LUCENE-2557:

the fact is that it doesn't make sense to fully score fuzzy queries if your query contains
exact and fuzzy matches (the current default), and it doesnt make sense to use a constant
score either (your suggestion), a default that does score but uses the idf of the search term
would give much better default results.

IDF is an implementation detail of the similarity in trunk. Some scoring systems don't even
use IDF.

If you want what you describe: what is the problem? use TopTermsBoostOnlyRewrite and apply
the "IDF" or whatever you want of the search-term yourself as the query boost.
> FuzzyQuery - fuzzy terms and misspellings are ranked higher than exact matches
> ------------------------------------------------------------------------------
>                 Key: LUCENE-2557
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/query/scoring
>    Affects Versions: 3.0.2
>            Reporter: Jingkei Ly
>         Attachments: LUCENE-2557.patch, idf-scoring-test-case.patch
> The FuzzyQuery often causes misspellings to be ranked higher than the exact match, which
seems to be an undesirable property generally. 
> For example, in an index of surnames, if I search using a FuzzyQuery for "smith", the
misspellings such as "smiith", or "smiht" would appear near the top of the search results
ahead of documents that match "smith".

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message