[
https://issues.apache.org/jira/browse/SOLR-4111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Dyer resolved SOLR-4111.
------------------------------
Resolution: Fixed
Fix Version/s: 5.0
4.1
Assignee: James Dyer
committed.
Trunk: r1413036
4x: r1413038
Thanks for finding & reporting this, Tomas.
> Context-Sensitive SpellCheck Collation is not really being tested on
> IndexBasedSpellChecker
> -------------------------------------------------------------------------------------------
>
> Key: SOLR-4111
> URL: https://issues.apache.org/jira/browse/SOLR-4111
> Project: Solr
> Issue Type: Bug
> Affects Versions: 4.0
> Reporter: Tomás Fernández Löbbe
> Assignee: James Dyer
> Priority: Trivial
> Fix For: 4.1, 5.0
>
> Attachments: SOLR-4111.patch
>
>
> Looks like a typo in the code.
> SpellCheckCollatorTest.testContextSensitiveCollate() has:
> {code:java}
> // DirectSolrSpellChecker IndexBasedSpellChecker
> String[] dictionary = {"direct", "default_teststop" };
> for(int i=0 ; i<1 ; i++) {
> ... test stuff using dictionary[i]...
> }
> {code}
> where it should be
> {code:java}
> // DirectSolrSpellChecker IndexBasedSpellChecker
> String[] dictionary = {"direct", "default_teststop" };
> for(int i=0 ; i<=1 ; i++) {
> ... test stuff using dictionary[i]...
> }
> {code}
> due to this, the tests are not being run with a IndexBasedSpellChecker.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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]