Class SearchDocumentResponse

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

public class SearchDocumentResponse extends Object
This represents the complete search response from Elasticsearch, including the returned documents.
Since:
4.0
Author:
Peter-Josef Meisch, Haibo Liu, Mohamed El Harrougui
  • Constructor Details

  • Method Details

    • getTotalHits

      public long getTotalHits()
    • getTotalHitsRelation

      public String getTotalHitsRelation()
    • getMaxScore

      public float getMaxScore()
    • getExecutionDuration

      public Duration getExecutionDuration()
    • getScrollId

      public @Nullable String getScrollId()
    • getSearchDocuments

      public List<SearchDocument> getSearchDocuments()
    • getAggregations

      public @Nullable AggregationsContainer<?> getAggregations()
    • getSuggest

      public @Nullable Suggest getSuggest()
    • getPointInTimeId

      public @Nullable String getPointInTimeId()
      Since:
      5.0
    • getSearchShardStatistics

      public @Nullable SearchShardStatistics getSearchShardStatistics()