[
https://issues.apache.org/jira/browse/LUCENE-6396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14482125#comment-14482125
]
Michael McCandless commented on LUCENE-6396:
--------------------------------------------
+1
Tricky ... we somehow need to "cast" the automaton to the equivalent (dropping
positional info) boolean query...
> TermAutomatonQuery should act more like a conjunction
> -----------------------------------------------------
>
> Key: LUCENE-6396
> URL: https://issues.apache.org/jira/browse/LUCENE-6396
> Project: Lucene - Core
> Issue Type: Wish
> Reporter: Robert Muir
>
> TermAutomatonQuery currently acts like a disjunction of its terms, and then
> in countMatches() it reads positions to find a match.
> Ideally it would act more like a conjunction, that only starts reading
> positions when its possible to reach an accept state via the set of
> PostingsEnums positioned on the current document.
> If the query is (a|b) (c|d) then it shouldnt even read positions if only 'a'
> or 'a and b' are positioned at the current document, for example. it should
> move on.
> It would also be great to support two-phase iteration here.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]