Class 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
    • 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 Detail

      • ExplanationHolder

        public ExplanationHolder()
    • Method Detail

      • 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)