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 an Explanation
  • Constructor Details

    • ExplanationHolder

      public ExplanationHolder()
  • Method Details

    • set

      public void set(String 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)