[ https://issues.apache.org/jira/browse/LUCENE-4250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved LUCENE-4250. --------------------------------- Resolution: Fixed Fix Version/s: 5.0 4.0 > 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 > Fix For: 4.0, 5.0 > > 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