Class Explanation

java.lang.Object
org.springframework.data.elasticsearch.core.document.Explanation

public class Explanation extends Object
class that holds explanations returned from an Elasticsearch search. Note: the new Elasticsearch client does not return the match property in search hits anymore, probably because a returned hit always is a match.
Author:
Peter-Josef Meisch
  • Constructor Details

  • Method Details

    • isMatch

      public boolean isMatch()
    • getValue

      public Double getValue()
    • getDescription

      public @Nullable String getDescription()
    • getDetails

      public List<Explanation> getDetails()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object