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

Empty DisjunctionMaxQuery can rewrite to MatchNoDocsQuery

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 8.10
    • None
    • New

    Description

      It's possible to create a DisjunctionMaxQuery with no clauses. This could be rewritten to MatchNoDocsQuery, matching the approach we take for BooleanQuery.

      Attachments

        1. LUCENE-10022.patch
          2 kB
          David Harsha

        Activity

          People

            Unassigned Unassigned
            julietibs Julie Tibshirani
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: