Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-883

make spell checker test case work again

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • None
    • None
    • New, Patch Available

    Description

      See attached path which makes the spellchecker test case work again. The problem without the patch is that consecutive calls to indexDictionary() will create a spelling index with duplicate words. Does anybody see a problem with this patch? I see that the spellchecker code is now used in Solr, isn't it? I didn't have time to test this patch inside Solr.

      Also see http://issues.apache.org/jira/browse/LUCENE-632, but the null check is included in this patch so the NPE described there cannot happen anymore.

      Attachments

        1. lucene-spellchecker-2.diff
          0.9 kB
          Daniel Naber

        Activity

          People

            Unassigned Unassigned
            lucenebugs@danielnaber.de Daniel Naber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: