lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cao Manh Dat (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-6558) Highlighter not working for CustomScoreQuery
Date Fri, 12 Jun 2015 09:57:01 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-6558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Cao Manh Dat updated LUCENE-6558:
---------------------------------
    Attachment: LUCENE-6558.patch

Here is patch file for this issue (fix on both Highlighter and FastVectorHighlighter). 
Confirm that PostHighlighter not fail for this bug.

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


Mime
View raw message