Highlighter and FastVectorHighlighter not working for CustomScoreQuery
CustomScoreQuery query = new CustomScoreQuery(termQuery);
QueryScorer scorer = new QueryScorer(query, FIELD_NAME);
Highlighter highlighter = new Highlighter(scorer);
String fragment = highlighter.getBestFragment(stream, storedField); // always return null
Here is patch file for this issue.
This bug appear both in PostHIghlighter and FastVectorHighlighter. Should I create three different issues or merge all issues to this one?
This is a good catch, thank you Cao Manh Dat!
Should I create three different issues or merge all issues to this one?
I think it's fine to fix all three with a single patch on this issue? Thank you!
Here is patch file for this issue (fix on both Highlighter and FastVectorHighlighter).
Confirm that PostHighlighter not fail for this bug.
Thanks Michael McCandless for fast response!
Commit 1685114 from Michael McCandless in branch 'dev/trunk'
[ https://svn.apache.org/r1685114 ]
LUCENE-6558: fix highlighters to work with CustomScoreQuery
Commit 1685117 from Michael McCandless in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1685117 ]
Thanks Cao Manh Dat!
Bulk close for 5.3.0 release