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

Spellchecker's dictionary iterator misbehaves

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • None
    • core/search
    • None
    • Any (mine is Fedora Core 4 - Linux pc983 2.6.16-1.2111_FC4 #1 Sat May 20 19:59:40 EDT 2006 i686 i686 i386 GNU/Linux)

    Description

      In LuceneDictionary, the LuceneIterator.hasNext() method has two issues that makes it misbehave:

      1) If hasNext is called more than once, items are skipped
      2) Much more seriously, when comparing fieldnames it is done with != rather than .equals() with the potential result that nothing is indexed

      Attachments

        1. LuceneDictionary.java.diff
          0.4 kB
          Karl Wettin
        2. LuceneDictionary.java.diff
          0.5 kB
          Kåre Fiedler Christiansen

        Activity

          People

            Unassigned Unassigned
            kfc Kåre Fiedler Christiansen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: