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

thaiwordfilter uses attributesource.copyTo incorrectly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The bug can be seen by https://builds.apache.org/hudson/job/Lucene-Solr-tests-only-3.x/7367/

      It looks like the issue is this lazy initialization of the cloned token: if the tokenstream is reused
      and the consumer is interested in a different set of attributes, it could be a problem.

      one probably-probably-not-totally-correct fix would be to add 'clonedToken = null;' to reset(), at
      least it would solve this case?

        Attachments

        1. LUCENE-3044.patch
          3 kB
          Robert Muir

          Activity

            People

            • Assignee:
              rcmuir Robert Muir
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: