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

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: master (9.0), 8.2
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: