lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Dyer (JIRA)" <>
Subject [jira] [Updated] (SOLR-2576) DirectSolrSpellChecker is not returning frequency information
Date Tue, 07 Jun 2011 18:55:59 GMT


James Dyer updated SOLR-2576:

    Attachment: SOLR-2576.patch

This patch fixes DirectSolrSpellChecker to correctly forward the frequency data.  Results
are now consistent with IndexBasedSpellChecker.  An additional DSSC unit test is also added.

I also changed the method name "SpellingResult.add(Token token, int docFreq)" to "SpellingResult.addFrequency(Token
token, int docFreq)" .  This less-ambiguous method name should help prevent this kind of error
in the future.  Note, however, if back-porting to 3.x, it might be wise to add back a deprecated
"SpellingResult.add(Token token, int docFreq)" method.   This will prevent us from breaking
anyone's custom solr spellcheckers...

> DirectSolrSpellChecker is not returning frequency information
> -------------------------------------------------------------
>                 Key: SOLR-2576
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 4.0
>            Reporter: James Dyer
>            Priority: Minor
>             Fix For: 4.0
>         Attachments: SOLR-2576.patch
> DirectSolrSpellChecker is not returning frequency information.  This also causes the
"correctlySpelled" flag in extended results to sometimes be wrong.  

This message is automatically generated by JIRA.
For more information on JIRA, see:

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

View raw message