[
https://issues.apache.org/jira/browse/LUCENE-6558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14583613#comment-14583613
]
ASF subversion and git services commented on LUCENE-6558:
---------------------------------------------------------
Commit 1685117 from [~mikemccand] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1685117 ]
LUCENE-6558: fix highlighters to work with CustomScoreQuery
> Highlighter not working for CustomScoreQuery
> --------------------------------------------
>
> Key: LUCENE-6558
> URL: https://issues.apache.org/jira/browse/LUCENE-6558
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/highlighter
> Affects Versions: 5.2
> Reporter: Cao Manh Dat
> Fix For: 5.3, Trunk
>
> Attachments: LUCENE-6558.patch
>
>
> Highlighter and FastVectorHighlighter not working for CustomScoreQuery
> {code}
> 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
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]