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

SpellChecker min score is increased by time

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.9
    • 2.1
    • core/search
    • None

    Description

      The minimum score, an instance variable, is modified in a search. That is wrong, since it makes it 1. thread unsafe and 2. not working.

      Lucky enought it is only used from the one and same method call, so I simply compied the instance variable to a local method variable.

      float min = this.min;

      Attachments

        1. SpellChecker.java.diff
          0.5 kB
          Karl Wettin

        Activity

          People

            yseeley@gmail.com Yonik Seeley
            karl.wettin Karl Wettin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: