You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Vadim Gindin <vg...@detectum.com> on 2018/01/19 11:57:02 UTC
Custom explain implementation - how to transfer the data
Assume, I have some scorer. During the execution of score() method, I'm
caching a document id and scoring details to a Map. Further, in the
explain(docID) method, I'm taking scoring details from that map by docID.
Is it a correct scheme? If no how to implement it correctly?
Regards,
Vadim Gindin
Re: Custom explain implementation - how to transfer the data
Posted by Adrien Grand <jp...@gmail.com>.
In general, the right way to proceed is to recompute the map the same way
in explain() that it would be computed in score().
Le ven. 19 janv. 2018 à 12:57, Vadim Gindin <vg...@detectum.com> a écrit :
> Assume, I have some scorer. During the execution of score() method, I'm
> caching a document id and scoring details to a Map. Further, in the
> explain(docID) method, I'm taking scoring details from that map by docID.
> Is it a correct scheme? If no how to implement it correctly?
>
> Regards,
> Vadim Gindin
>