[
https://issues.apache.org/jira/browse/LUCENE-7717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley updated LUCENE-7717:
---------------------------------
Affects Version/s: 5.1
Fix Version/s: 6.4.2
Summary: UnifiedHighlighter doesn't highlight PrefixQuery with
multi-byte chars (was: UnifiedHighlighter don't work with russian PrefixQuery)
Closing. I'll create a linked follow-up bug issue for WildcardQuery (also
applies to Regexp) where we can discuss how to deal with that -- the more
overall fix. I don't think that one should hold up a 6.4.2. It'll likely
result in removing the PrefixQuery and TermRangeQuery sections in
MultiTermHighlighting.
> 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: [email protected]
For additional commands, e-mail: [email protected]