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

Spellchecker's dictionary iterator misbehaves

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      None
    • Environment:

      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.5 kB
          Kåre Fiedler Christiansen
        2. LuceneDictionary.java.diff
          0.4 kB
          Karl Wettin

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: