Lucene - Core
  1. Lucene - Core
  2. LUCENE-5018

Never update offsets in CompoundWordTokenFilterBase

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      CompoundWordTokenFilterBase and its children DictionaryCompoundWordTokenFilter and HyphenationCompoundWordTokenFilter update offsets. This can make OffsetAttributeImpl trip an exception when chained with other filters that group tokens together such as ShingleFilter, see http://www.gossamer-threads.com/lists/lucene/java-dev/196376?page=last.

        Issue Links

          Activity

          Hide
          Adrien Grand added a comment -

          Here is a patch.

          Show
          Adrien Grand added a comment - Here is a patch.
          Hide
          Adrien Grand added a comment -

          I just committed the patch on trunk and branch_4x.

          Show
          Adrien Grand added a comment - I just committed the patch on trunk and branch_4x.
          Hide
          Steve Rowe added a comment -

          Bulk close resolved 4.4 issues

          Show
          Steve Rowe added a comment - Bulk close resolved 4.4 issues

            People

            • Assignee:
              Adrien Grand
              Reporter:
              Adrien Grand
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development