Lucene - Core
  1. Lucene - Core
  2. LUCENE-575

SpellChecker min score is increased by time

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.1
    • Component/s: core/search
    • Labels:
      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;

        Activity

        Hide
        Michael McCandless added a comment -

        Closing all issues that were resolved for 2.1.

        Show
        Michael McCandless added a comment - Closing all issues that were resolved for 2.1.
        Hide
        Yonik Seeley added a comment -

        I just commited this. Thanks Karl!

        Show
        Yonik Seeley added a comment - I just commited this. Thanks Karl!
        Hide
        Karl Wettin added a comment -

        This is just another push to get the patch committed.

        Show
        Karl Wettin added a comment - This is just another push to get the patch committed.
        Hide
        Karl Wettin added a comment -

        I would have to say this is for 2.0 as the SpellCheck does not work without it in most cases.

        Show
        Karl Wettin added a comment - I would have to say this is for 2.0 as the SpellCheck does not work without it in most cases.

          People

          • Assignee:
            Yonik Seeley
            Reporter:
            Karl Wettin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development