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

BooleanQuery.rewriteNoScoring - optimize away any SHOULD clauses if at least 1 MUST/FILTER clause and 0==minShouldMatch

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0, 8.2
    • None
    • None
    • New

    Description

      I haven't thought this through completely, let alone write up a patch / test case, but IIUC...

      We should be able to optimize {{ BooleanQuery rewriteNoScoring() }} so that (after converting MUST clauses to FILTER clauses) we can check for the common case of 0==getMinimumNumberShouldMatch() and throw away any SHOULD clauses as long as there is is at least one FILTER clause.

      Attachments

        1. LUCENE-7840.patch
          5 kB
          Atri Sharma
        2. LUCENE-7840.patch
          5 kB
          Atri Sharma
        3. LUCENE-7840.patch
          5 kB
          Atri Sharma

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment