[ https://issues.apache.org/jira/browse/LUCENE-7717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15888464#comment-15888464 ]
David Smiley commented on LUCENE-7717: -------------------------------------- At some point _after_ MultiTermHighlighting.java was first written, PrefixQuery was altered to be a subclass of AutomatonQuery. So PrefixQuery detection could simply be removed now, I think, since it's handled via AutomatonQuery condition. I'm working on debugging to see _why_ this fails & a proper test. (the test would go in TestUnifiedHighlighterMTQ by the way) > 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 > > > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org