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

Allow ConstantScoreQuery to skip counting hits

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.1, master (9.0)
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      We already have a ConstantScoreScorer that knows how to early terminate the collection but the ConstantScoreQuery uses a private scorer that doesn't take advantage of setMinCompetitiveScore. This issue is about reusing the ConstantScoreScorer in the ConstantScoreQuery in order to early terminate queries that don't need to compute the total number of hits.

        Attachments

        1. LUCENE-8732.patch
          5 kB
          Jim Ferenczi

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jim.ferenczi Jim Ferenczi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: