Robert Muir created LUCENE-6396:
-----------------------------------
Summary: TermAutomatonQuery should act more like a conjunction
Key: LUCENE-6396
URL: https://issues.apache.org/jira/browse/LUCENE-6396
Project: Lucene - Core
Issue Type: Bug
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]