You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2017/03/01 06:52:45 UTC
[jira] [Closed] (LUCENE-7717) UnifiedHighlighter doesn't highlight
PrefixQuery with multi-byte chars
[ https://issues.apache.org/jira/browse/LUCENE-7717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley closed LUCENE-7717.
--------------------------------
Resolution: Fixed
> UnifiedHighlighter doesn't highlight PrefixQuery with multi-byte chars
> ----------------------------------------------------------------------
>
> Key: LUCENE-7717
> URL: https://issues.apache.org/jira/browse/LUCENE-7717
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/highlighter
> Affects Versions: 5.1, 6.3, 6.4.1
> Reporter: Dmitry Malinin
> Assignee: David Smiley
> Fix For: 6.4.2
>
> Attachments: LUCENE-7717.patch, LUCENE-7717.patch
>
>
> UnifiedHighlighter highlighter = new UnifiedHighlighter(null, new StandardAnalyzer());
> Query query = new PrefixQuery(new Term("title", "я"));
> String testData = "я";
> Object snippet = highlighter.highlightWithoutSearcher(fieldName, query, testData, 1);
> System.out.printf("testData=[%s] Query=%s snippet=[%s]\n", testData, query, snippet==null?null:snippet.toString());
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org