Lucene - Core
  1. Lucene - Core
  2. LUCENE-4250

PayloadFunction explains are trappy and duplicate the scoring

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-BETA, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development