My plugin remembers the document id (that was matched in scorer) to a collection. When explain(id) is called it checks specified id in this collection and outputs "matched"/"not matched".
The questions.
0. This document is founded by the plugin, but explain(id) method takes the wrong ID. Why? It happens in the real installation, but in the test case - it works fine.
ID=342 and others come to explain(id) method. Note, it is not a document id - it is ID of the nested object (category). Why it happens?
I have a test case, based on ESIntegTestCase. It works fine with this document. But this document is not founded in the real index.
Is there a way to get an external document ID in explain() method using specified internal ID?
Once again. The ID from the query "GET some_idx/test/31" is an external ID, and ID that comes as a parameter of explain() method - is internal ID. Right?
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.