public interface ExplainableSearchScript extends LeafSearchScript
SearchScript which can provided an Explanation of the score
This is currently not used inside elasticsearch but it is used, see for example here:
https://github.com/elasticsearch/elasticsearch/issues/8561| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.Explanation |
explain(org.apache.lucene.search.Explanation subQueryScore)
Build the explanation of the current document being scored
The script score needs the Explanation of the sub query score because it might use _score and
want to explain how that was computed.
|
runAsDouble, runAsFloat, runAsLong, setDocument, setSourcesetScorerrun, setNextVar, unwraporg.apache.lucene.search.Explanation explain(org.apache.lucene.search.Explanation subQueryScore)
throws IOException
subQueryScore - the Explanation for _scoreIOExceptionCopyright © 2009–2017. All rights reserved.