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

Make AssertingWeight check that scores are not computed when needsScores is false

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.3, 6.0
    • None
    • None
    • New

    Description

      Today nothing prevents you from calling score() if you don't need scores. But we could make AssertingWeight check it in order to make sure that we do not waste resources computing something we don't need.

      Attachments

        1. LUCENE-6526.patch
          12 kB
          Adrien Grand

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: