You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "James Dyer (Updated) (JIRA)" <ji...@apache.org> on 2011/11/17 16:38:51 UTC
[jira] [Updated] (SOLR-2853) SpellCheckCollator.collate method
creates the a PossibilityIterator with maxTries instead of maxCollations
[ https://issues.apache.org/jira/browse/SOLR-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Dyer updated SOLR-2853:
-----------------------------
Attachment: SOLR-2853.patch
Updated patch & added a unit test.
With "spellcheck.maxCollationTries=0&spellcheck.maxCollations=2", the patched version will return 2 collations as requested. Prior to the patch, "spellcheck.maxCollations" is ignored if "spellcheck.maxCollationTries" is zero.
> SpellCheckCollator.collate method creates the a PossibilityIterator with maxTries instead of maxCollations
> ----------------------------------------------------------------------------------------------------------
>
> Key: SOLR-2853
> URL: https://issues.apache.org/jira/browse/SOLR-2853
> Project: Solr
> Issue Type: Bug
> Components: spellchecker
> Affects Versions: 3.3, 4.0
> Reporter: Matt Traynham
> Priority: Minor
> Attachments: SOLR-2853.patch, SOLR-2853.patch
>
>
> Class SpellCheckCollator creates a new possibility iterator based on the spellcheck results. The iterator is created with:
> PossibilityIterator possibilityIter = new PossibilityIterator(result.getSuggestions(), maxTries, maxEvaluations);
> The issue is maxTries, should be maxCollations. Correct me if I'm wrong.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org