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

highlighter problems with overlapping tokens

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.1
    • core/other
    • None

    Description

      The lucene highlighter has problems when tokens that overlap are generated.

      For example, if analysis of iPod generates the tokens "i", "pod", "ipod" (with pod and ipod in the same position),
      then the highlighter will output this as iipod, regardless of if any of those tokens are highlighted.

      Discovered via http://issues.apache.org/jira/browse/SOLR-24

      Attachments

        1. Highlighter.java.diff
          2 kB
          Kerang Lv
        2. highlight_overlap.diff
          18 kB
          Yonik Seeley

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yseeley@gmail.com Yonik Seeley
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: