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

Remove trackDocScores from TopFieldCollector factory methods

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 8.0
    • None
    • None
    • New

    Description

      Computing scores on top hits is fine, but the current way it is implemented - at collection time - requires to read/decode more freqs/norms and compute more scores than necessary. It would be more efficient to compute scores of top hits as a post-collection step by only advancing the scorer to hits that made the top-N list.

      Attachments

        1. LUCENE-8412.patch
          81 kB
          Adrien Grand

        Activity

          People

            Unassigned Unassigned
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: