lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Ingersoll (JIRA)" <>
Subject [jira] Resolved: (LUCENE-2479) need the ability to also sort SpellCheck results by freq, instead of just by Edit Distance+freq
Date Tue, 17 Aug 2010 21:34:16 GMT


Grant Ingersoll resolved LUCENE-2479.

    Fix Version/s: 3.1
       Resolution: Fixed

Committed revision 986477 (trunk).  One minor variation from the patch in that I added a bit
more testing.

Committed revision 986495.(3.x).

> need the ability to also sort SpellCheck results by freq, instead of just by Edit Distance+freq
> -----------------------------------------------------------------------------------------------
>                 Key: LUCENE-2479
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: contrib/spellchecker
>         Environment: all
>            Reporter: Gerald DeConto
>            Assignee: Grant Ingersoll
>             Fix For: 3.1, 4.0
>         Attachments: LUCENE-2479.patch
> This issue was first noticed and reported in this Solr thread;
> Basically, there are situations where it would be useful to sort by freq first, instead
of the current "sort by edit distance, and then subsort by freq if edit distance is equal"
> The author of the thread suggested "What I think would work even better than allowing
a custom compareTo function would be to incorporate the frequency directly into the distance
function.  This would allow for greater control over the trade-off between frequency and edit
> However, custom compareTo functions are not always be possible (ie if a certain version
of Lucene must be used, because it was release with Solr) and incorporating freq directly
into the distance function may be overkill (ie depending on the implementation)
> it is suggested that we have a simple modification of the existing compareTo function
in Lucene to allow users to specify if they want the existing sort method or if they want
to sort by freq.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message