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

Improve handling of MatchNoDocsQuery in rewrite rules

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.1
    • None
    • None
    • New

    Description

      Having MatchNoDocsQuery in your query tree usually doesn't make the query slower, but by recognizing it in rewrite rules, we could perform rewrites which would then sometimes unlock other rewrite rules.

      For instance if you have a boolean query with 2 should clauses where one is a MatchAllDocsQuery and the other one is a MatchNoDocsQuery, we would naively run it as a disjunction today, while we could rewrite it to a MatchAllDocsQuery and leverage its specialized bulk scorer.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jpountz Adrien Grand
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m