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

Incorrect return value from SimpleNaiveBayesClassifier.assignClass

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.1, 6.0
    • None
    • None
    • New

    Description

      The local copy of BytesRef referenced by foundClass is affected by subsequent TermsEnum.iterator.next() calls as the shared BytesRef.bytes changes.

      If a term "test" gives a good match and a next term in the terms collection is "classification" with a lower match score then the return result will be "clas"

      Attachments

        1. LUCENE-4959.patch
          6 kB
          Alexey Kutin

        Activity

          People

            jpountz Adrien Grand
            alexeyline Alexey Kutin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: