You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2018/01/06 15:37:00 UTC

[jira] [Created] (LUCENE-8121) UnifiedHighlighter can highlight terms within SpanNear clauses at unmatched positions

David Smiley created LUCENE-8121:
------------------------------------

             Summary: UnifiedHighlighter can highlight terms within SpanNear clauses at unmatched positions
                 Key: LUCENE-8121
                 URL: https://issues.apache.org/jira/browse/LUCENE-8121
             Project: Lucene - Core
          Issue Type: Bug
          Components: modules/highlighter
            Reporter: David Smiley
            Assignee: David Smiley
            Priority: Minor
             Fix For: 7.3


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. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org