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

No need to wrap with ConstantWeight when needsScores is false

Details

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

    Description

      Today ConstantScoreQuery always wraps the inner weight into a ConstantWeight, but this is only necessary if scores are needed.

      Attachments

        1. LUCENE-6262.patch
          2 kB
          Adrien Grand

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: