Lucene - Core
  1. Lucene - Core
  2. LUCENE-865

SpellChecker not working because of stale IndexSearcher

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      The SpellChecker unit test did not work, because of a stale IndexReader and IndexSearcher instance after calling indexDictionary(Dictionary).

        Activity

        Hide
        Raiko Eckstein added a comment -

        Added Patch

        Show
        Raiko Eckstein added a comment - Added Patch
        Hide
        Otis Gospodnetic added a comment -

        This was already fixed in SpellChecker.java - I can see the same type of code is there in the current version of SpellChecker.java. Also, all spellchecker unit tests pass now.

        Show
        Otis Gospodnetic added a comment - This was already fixed in SpellChecker.java - I can see the same type of code is there in the current version of SpellChecker.java. Also, all spellchecker unit tests pass now.

          People

          • Assignee:
            Otis Gospodnetic
            Reporter:
            Raiko Eckstein
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development