Package org.elasticsearch.script
Interface ExplainableScoreScript
-
public interface ExplainableScoreScriptTo be implemented byScoreScriptwhich can provided anExplanationof the score This is currently not used inside elasticsearch but it is used, see for example here: https://github.com/elastic/elasticsearch/issues/8561
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Explanationexplain(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.
-
-
-
Method Detail
-
explain
Explanation explain(Explanation subQueryScore) throws IOException
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.- Parameters:
subQueryScore- the Explanation for _score- Throws:
IOException
-
-