Package org.elasticsearch.script
Class ScoreScript.ExplanationHolder
org.elasticsearch.script.ScoreScript.ExplanationHolder
- Enclosing class:
- ScoreScript
public static class ScoreScript.ExplanationHolder
extends
A helper to take in an explanation from a script and turn it into an
Explanation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Explanation
get(double score, org.apache.lucene.search.Explanation subQueryExplanation)
void
description)
Explain the current score.Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
ExplanationHolder
public ExplanationHolder()
-
-
Method Details
-
set
public void set( description)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)
-