FastVectorHighlighter Overlapping Queries Do Not Highlight [LUCENE-7593]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
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](https://issues.apache.org/jira/browse/LUCENE-7593) by Luo Ji, updated Mar 07 2018
Contributor guide
Research direction
Start in FieldPhraseList's constructor at addIfNoOverlap, which the report identifies as dropping the overlapping ABC term after AB is accepted. Reproduce the AB or ABC example against ABCDEF and verify that the higher-weight overlapping match is highlighted rather than discarded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100