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

Never update offsets in CompoundWordTokenFilterBase

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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
          jpountz Adrien Grand added a comment -

          Here is a patch.

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

          I just committed the patch on trunk and branch_4x.

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

          Bulk close resolved 4.4 issues

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development