ComplexPhraseQuery highlight problem after rewriting using ComplexPhraseQuery.rewrite(IndexReader) [LUCENE-4743]
Open
affects-version:3.6
legacy-jira-label:complexqueryparser
legacy-jira-label:Highlighter
legacy-jira-label:newbie
legacy-jira-label:QueryParser
legacy-jira-priority:Major
module:core/search
module:highlighter
module:queryparser
type:bug
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
Just want to ask an assistance using ComplexPhraseQuery. I mean, when it comes to highlighting the hits are not correct. I also started using ComplexPhraseQueryParser to support complex proximity searches.
---
Migrated from [LUCENE-4743](https://issues.apache.org/jira/browse/LUCENE-4743) by Jason Nacional, updated Oct 09 2015
Contributor guide
Research direction
Start by reproducing the incorrect highlighting with ComplexPhraseQuery and ComplexPhraseQueryParser, then trace how ComplexPhraseQuery.rewrite(IndexReader) changes the query before highlighting. Identify the expected versus actual highlighted hits and use that comparison to define the fix and its regression coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100