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

highlighter problems with overlapping tokens

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: core/other
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: