Skip to content

FastVectorHighlighter Overlapping Queries Do Not Highlight [LUCENE-7593] #8644

@asfimport

Description

@asfimport

Example Text:
ABCDEF

Example Query:
AB or ABC

I got two terms hit, (AB, startOffset=0, endOffset=2, weight=4), (ABC, startOffset=0, endOffset=3, weight=5), in FieldPhraseList's constructor, line 103, addIfNoOverlap, only (AB) were highlighted, and (ABC) with higher weight had been dropped because offset overlapping


Migrated from LUCENE-7593 by Luo Ji, updated Mar 07 2018

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions