[
https://issues.apache.org/jira/browse/SOLR-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
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: https://issues.apache.org/jira/browse/SOLR-2576
> 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: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]