[
https://issues.apache.org/jira/browse/LUCENE-7717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley updated LUCENE-7717:
---------------------------------
Attachment: LUCENE-7717.patch
Here's a patch. It fixed the MultiTermHighlighting class in both the
{{postingshighlight}} package as well as {{uhighlight}}. It adds a test method
to {{TestUnifiedHighlighterMTQ}}. I also beefed up the test for a related
method {{testWhichMTQMatched}} to avoid potential inadvertent changes to the
CharRunAutomata toString that people might depend on. It appears there was no
breakage in this case but until I added more query types, wether it did or
didn't break wasn't apparent.
> UnifiedHighlighter don't work with russian PrefixQuery
> ------------------------------------------------------
>
> Key: LUCENE-7717
> URL: https://issues.apache.org/jira/browse/LUCENE-7717
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/highlighter
> Affects Versions: 6.3, 6.4.1
> Reporter: Dmitry Malinin
> Assignee: David Smiley
> 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]