Class ScoreScript.ExplanationHolder

java.lang.Object
org.elasticsearch.script.ScoreScript.ExplanationHolder
Enclosing class:
ScoreScript

public static class ScoreScript.ExplanationHolder
extends java.lang.Object
A helper to take in an explanation from a script and turn it into an Explanation
  • Constructor Summary

    Constructors
    Constructor Description
    ExplanationHolder()  
  • Method Summary

    Modifier and Type Method Description
    org.apache.lucene.search.Explanation get​(double score, org.apache.lucene.search.Explanation subQueryExplanation)  
    void set​(java.lang.String description)
    Explain the current score.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExplanationHolder

      public ExplanationHolder()
  • Method Details

    • set

      public void set​(java.lang.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)