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

PayloadFunction explains are trappy and duplicate the scoring

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-BETA, 6.0
    • None
    • None
    • New

    Description

      the default implementation is basically never useful:

      result.setDescription("Unimpl Payload Function Explain");
      result.setValue(1);
      

      Instead we should just do this:

      result.setDescription(getClass().getSimpleName() + ".docScore()");
      result.setValue(docScore(docId, field, numPayloadsSeen, payloadScore));
      

      And remove all the overriden impls in our Min/Max/Avg that just
      duplicate their scoring function.

      Attachments

        1. LUCENE-4250.patch
          7 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: