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

The PayloadTermWeight explanation hides the details of the payload score

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.0-BETA, 6.0
    • core/search
    • 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

        1. LUCENE-4249.patch
          3 kB
          Scott Smerchek

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: