Class SearchDocumentResponse
java.lang.Object
org.springframework.data.elasticsearch.core.document.SearchDocumentResponse
This represents the complete search response from Elasticsearch, including the returned documents.
- Since:
- 4.0
- Author:
- Peter-Josef Meisch, Haibo Liu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
A function to convert aSearchDocument
async into an entity. -
Constructor Summary
ConstructorsConstructorDescriptionSearchDocumentResponse
(long totalHits, String totalHitsRelation, float maxScore, String scrollId, String pointInTimeId, List<SearchDocument> searchDocuments, AggregationsContainer<?> aggregationsContainer, Suggest suggest, SearchShardStatistics searchShardStatistics) -
Method Summary
Modifier and TypeMethodDescriptionfloat
long
-
Constructor Details
-
SearchDocumentResponse
public SearchDocumentResponse(long totalHits, String totalHitsRelation, float maxScore, @Nullable String scrollId, @Nullable String pointInTimeId, List<SearchDocument> searchDocuments, @Nullable AggregationsContainer<?> aggregationsContainer, @Nullable Suggest suggest, @Nullable SearchShardStatistics searchShardStatistics)
-
-
Method Details
-
getTotalHits
public long getTotalHits() -
getTotalHitsRelation
-
getMaxScore
public float getMaxScore() -
getScrollId
-
getSearchDocuments
-
getAggregations
-
getSuggest
-
getPointInTimeId
- Since:
- 5.0
-
getSearchShardStatistics
-