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

When sorting by field, IndexSearcher should not compute scores by default

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.9
    • core/search
    • None
    • New

    Description

      In 2.9 we've added the ability to turn off scoring (maxScore &
      trackScores, separately) when sorting by field.

      I expect most apps don't use the scores when sorting by field, and
      there's a sizable performance gain when scoring is off, so I think for
      2.9 we should not score by default, and add show in CHANGES how to
      enable scoring if you rely on it.

      If there are no objections, I'll commit that change in a day or two
      (it's trivial).

      Attachments

        1. LUCENE-1656.patch
          7 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: