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

PayloadFunction explains are trappy and duplicate the scoring

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment