Robert Muir created LUCENE-4250:
-----------------------------------

             Summary: PayloadFunction explains are trappy and duplicate the 
scoring
                 Key: LUCENE-4250
                 URL: https://issues.apache.org/jira/browse/LUCENE-4250
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Robert Muir
         Attachments: LUCENE-4250.patch

the default implementation is basically never useful:

{code}
result.setDescription("Unimpl Payload Function Explain");
result.setValue(1);
{code}

Instead we should just do this:

{code}
result.setDescription(getClass().getSimpleName() + ".docScore()");
result.setValue(docScore(docId, field, numPayloadsSeen, payloadScore));
{code}

And remove all the overriden impls in our Min/Max/Avg that just
duplicate their scoring function.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to