[
https://issues.apache.org/jira/browse/LUCENE-7717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15891753#comment-15891753
]
Dmitry Malinin commented on LUCENE-7717:
----------------------------------------
Hello Christine
I saw your test. I think that
- "I" is not suitable data for test, because StandardAnalyzer converts data to
lower case (but PrefixQuery doesn't)
- why "random"? Сould be better make text array String[] texts = {"i", "я", }
and run for each?
- and I mean that result should be, for example, "<b>q</b>" for data "q" and
query "q*" and so on for multi-byte data (assertEquals("<b>"+text+"</b>",
snippetString);)
Best regards
> 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]