Lucene - Core
  1. Lucene - Core
  2. LUCENE-4249

The PayloadTermWeight explanation hides the details of the payload score

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial 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);
      
      1. LUCENE-4249.patch
        3 kB
        Scott Smerchek

        Activity

        Hide
        Scott Smerchek added a comment -

        Once I can get past the hurdles of creating my first patch from the git mirror, I'll upload it.

        Show
        Scott Smerchek added a comment - Once I can get past the hurdles of creating my first patch from the git mirror, I'll upload it.
        Hide
        Robert Muir added a comment -

        Thanks Scott. git formatted patches are fine in my opinion: lets get this fixed

        Show
        Robert Muir added a comment - Thanks Scott. git formatted patches are fine in my opinion: lets get this fixed
        Hide
        Robert Muir added a comment -

        Thanks Scott!

        Show
        Robert Muir added a comment - Thanks Scott!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development