You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alan Woodward (Jira)" <ji...@apache.org> on 2020/03/12 16:40:00 UTC
[jira] [Commented] (LUCENE-9274) UnifiedHighlighter cannot handle
SpanMultiTermQueryWrapper with an Automaton of type SINGLE
[ 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: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org