Package org.elasticsearch.script
Class ScoreScript.ExplanationHolder
java.lang.Object
org.elasticsearch.script.ScoreScript.ExplanationHolder
- Enclosing class:
- ScoreScript
A helper to take in an explanation from a script and turn it into an
Explanation
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ExplanationHolder
public ExplanationHolder()
-
-
Method Details
-
set
Explain the current score.- Parameters:
description
- A textual description of how the score was calculated
-
get
public org.apache.lucene.search.Explanation get(double score, org.apache.lucene.search.Explanation subQueryExplanation)
-