You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Christoph Goller (Jira)" <ji...@apache.org> on 2020/03/11 17:30:00 UTC
[jira] [Created] (LUCENE-9274) UnifiedHighlighter cannot handle
SpanMultiTermQueryWrapper with an Automaton of type SINGLE
Christoph Goller created LUCENE-9274:
----------------------------------------
Summary: UnifiedHighlighter cannot handle SpanMultiTermQueryWrapper with an Automaton of type SINGLE
Key: LUCENE-9274
URL: https://issues.apache.org/jira/browse/LUCENE-9274
Project: Lucene - Core
Issue Type: Bug
Affects Versions: 8.4
Reporter: Christoph Goller
MultiTermHighlighting.extractAutomata ignores a Term from a SINGLE Automaton and Highlighting does not work.
Of course an AutomatonQuery with a single term does not make much sense, but it may be generated by an automatic process.
Possible fixes:
* Either implement consumeTerms in MultiTermHighlighting.AutomataCollector
* Or remove special case for SINGLE in CompiledAutomaton.visit
I attatch a Unit Test
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org