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

UnifiedHighlighter can highlight terms within SpanNear clauses at unmatched positions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The UnifiedHighlighter (and original Highlighter) highlight phrases by converting to a SpanQuery and using the Spans start and end positions to assume that every occurrence of the underlying terms between those positions are to be highlighted. But this is inaccurate; see LUCENE-5455 for a good example, and also LUCENE-2287. The solution is to use the SpanCollector API which was introduced after the phrase matching aspects of those highlighters were developed.

        Attachments

        1. LUCENE-2287_UH_SpanCollector.patch
          87 kB
          David Smiley
        2. LUCENE-2287_UH_SpanCollector.patch
          54 kB
          David Smiley

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: