You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cao Manh Dat (JIRA)" <ji...@apache.org> on 2015/06/12 10:20:00 UTC

[jira] [Commented] (LUCENE-6558) Highlighter not working for CustomScoreQuery

    [ https://issues.apache.org/jira/browse/LUCENE-6558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14583133#comment-14583133 ] 

Cao Manh Dat commented on LUCENE-6558:
--------------------------------------

This bug appear both in PostHIghlighter and FastVectorHighlighter. Should I create three different issues or merge all issues to this one?

> 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
>         Attachments: LUCENE-6558.patch
>
>
> Highlighter 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org