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

Calling score() should be ok even if needsScores is false

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.1, 6.0
    • None
    • None
    • New

    Description

      Currently if you use approximations on a disjunction scorer and call score() while needsScores was set to false, then you might run into exceptions.

      The reason is that when scores are not needed then the scorer doesn't maintain the list of scorers positioned on the current doc ID and you can eg. end up with exhausted scorers in this list.

      Attachments

        1. LUCENE-6329.patch
          1 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: