Package org.elasticsearch.script
Class ScoreScript.ExplanationHolder
- java.lang.Object
-
- org.elasticsearch.script.ScoreScript.ExplanationHolder
-
- Enclosing class:
- ScoreScript
public static class ScoreScript.ExplanationHolder extends Object
A helper to take in an explanation from a script and turn it into anExplanation
-
-
Constructor Summary
Constructors Constructor Description ExplanationHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Explanationget(double score, Explanation subQueryExplanation)voidset(String description)Explain the current score.
-
-
-
Method Detail
-
set
public void set(String description)
Explain the current score.- Parameters:
description- A textual description of how the score was calculated
-
get
public Explanation get(double score, Explanation subQueryExplanation)
-
-