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

Allow MatchAllDocsQuery to skip counting hits

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.0
    • Fix Version/s: 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      MatchAllDocsQuery currently uses a private bulk scorer with no specialisations for setMinCompetitiveScore().  We've seen what looks to be something like a halving of the performance of MatchAllDocsQuery in elasticsearch benchmarks running on 8.0 snapshots, and it looks as though this is because it's paying the price of keeping track of competitive scores, but not actually making use of the new infrastructure.  We should modify the bulk scorer to early-terminate if setMinCompetitiveScore() is called with a value greater than the query's boost.

        Attachments

        1. LUCENE-8607.patch
          2 kB
          Alan Woodward
        2. LUCENE-8607.patch
          3 kB
          Alan Woodward

          Activity

            People

            • Assignee:
              romseygeek Alan Woodward
              Reporter:
              romseygeek Alan Woodward
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: