[
https://issues.apache.org/jira/browse/LUCENE-9274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17058078#comment-17058078
]
Alan Woodward commented on LUCENE-9274:
---------------------------------------
I think ideally we'd merge UnifiedHighlighter.extractTerms() and
MultiTermHighlighting.extractAutomata(), so that the single term here is
handled the same as terms from any other query. I know this is something that
[~dsmiley] has been thinking about?
> 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
> Priority: Major
> Attachments: TestUnifiedHighlighterMTQ.java
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]