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

Decompounders based on CompoundWordTokenFilterBase cannot be used with custom attributes

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4, 4.0-ALPHA
    • 3.5, 4.0-ALPHA
    • modules/analysis
    • None
    • Patch Available

    Description

      The CompoundWordTokenFilterBase.setToken method will call clearAttributes() and then will reset only the default Token attributes (term, position, flags, etc) resulting in any custom attributes losing their value. Commenting out clearAttributes() seems to do the trick, but will fail the TestCompoundWordTokenFilter tests..

      Attachments

        1. LUCENE-3508.patch
          32 kB
          Uwe Schindler
        2. LUCENE-3508.patch
          22 kB
          Uwe Schindler
        3. LUCENE-3508.patch
          22 kB
          Uwe Schindler
        4. LUCENE-3508.patch
          20 kB
          Uwe Schindler
        5. LUCENE-3508.patch
          16 kB
          Spyros Kapnissis

        Activity

          People

            uschindler Uwe Schindler
            spyk Spyros Kapnissis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: