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

Boolean rewrite could remove more MatchAllDocsQuery filters

Details

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

    Description

      It seems that BooleanQuery rewrites will remove a MatchAllDocsQuery 'filter' clause only if there is at least one 'must' clause. I think we could also remove the 'filter' clause if there are no 'must' clauses, but at least one other 'filter' clause.

      This could let queries like #field:value #: be rewritten to #field:value.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jtibshirani Julie Tibshirani
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1h
                  1h