You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2015/04/06 17:06:12 UTC

[jira] [Updated] (LUCENE-6396) TermAutomatonQuery should act more like a conjunction

     [ https://issues.apache.org/jira/browse/LUCENE-6396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated LUCENE-6396:
--------------------------------
    Issue Type: Wish  (was: Bug)

> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org