public class SearchDocumentResponse extends Object
from(SearchResponse) method.| Modifier and Type | Method and Description |
|---|---|
static SearchDocumentResponse |
from(org.elasticsearch.search.SearchHits searchHits,
String scrollId,
org.elasticsearch.search.aggregations.Aggregations aggregations)
creates a
SearchDocumentResponse from SearchHits with the given scrollId and aggregations |
static SearchDocumentResponse |
from(org.elasticsearch.action.search.SearchResponse searchResponse)
creates a SearchDocumentResponse from the
SearchResponse |
org.elasticsearch.search.aggregations.Aggregations |
getAggregations() |
float |
getMaxScore() |
String |
getScrollId() |
List<SearchDocument> |
getSearchDocuments() |
long |
getTotalHits() |
String |
getTotalHitsRelation() |
public long getTotalHits()
public String getTotalHitsRelation()
public float getMaxScore()
public String getScrollId()
public List<SearchDocument> getSearchDocuments()
public org.elasticsearch.search.aggregations.Aggregations getAggregations()
public static SearchDocumentResponse from(org.elasticsearch.action.search.SearchResponse searchResponse)
SearchResponsesearchResponse - must not be nullpublic static SearchDocumentResponse from(org.elasticsearch.search.SearchHits searchHits, @Nullable String scrollId, @Nullable org.elasticsearch.search.aggregations.Aggregations aggregations)
SearchDocumentResponse from SearchHits with the given scrollId and aggregationssearchHits - the SearchHits to processscrollId - scrollIdaggregations - aggregationsSearchDocumentResponseCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.