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

problem with edgengramtokenfilter and highlighter

Details

    • New, Patch Available

    Description

      i ran into a problem while using the edgengramtokenfilter, it seems to report incorrect offsets when generating tokens, more specifically all the tokens have offset 0 and term length as start and end, this leads to goofy highlighting behavior when creating edge grams for tokens beyond the first one, i created a small patch that takes into account the start of the original token and adds that to the reported start/end offsets.

      Attachments

        1. LUCENE-2266.patch
          2 kB
          Joe Calderon
        2. LUCENE-2266.patch
          5 kB
          Robert Muir

        Activity

          People

            rcmuir Robert Muir
            calderon.joe Joe Calderon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: