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

TermsQuery should rewrite to BooleanQuery if < 50 terms

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • core/search
    • None
    • New

    Description

      If there aren't many terms in a TermsQuery (perhaps 50), it should be faster for TermsQuery to rewrite to a BooleanQuery so that there is disjunction/skipping. Above some number of terms, there is overhead in BQ/DisjunctionScorer's PriorityQueue.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: