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

The PayloadTermWeight explanation hides the details of the payload score

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-BETA, 6.0
    • Component/s: core/search
    • Labels:
    • Lucene Fields:
      New

      Description

      I'm using the PayloadTermQuery and scoring documents using a custom algorithm based on the payloads of the matching terms. The algorithm is implemented in the custom PayloadFunction and I have added an Override for the explain. However, the PayloadTermWeight explanation hides the details of the payload score...

      Explanation payloadExpl = new Explanation(scorer.getPayloadScore(), "scorePayload(...)");
      

      This is different than the way that PayloadNearSpanWeight explains the payload. It actually asks the payload function for the explanation rather than hiding it:

      Explanation payloadExpl = function.explain(doc, scorer.payloadsSeen, scorer.payloadScore);
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              smerchek Scott Smerchek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: