Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6396

TermAutomatonQuery should act more like a conjunction

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • New

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: