public class SearchDocumentResponseBuilder extends Object
SearchDocumentResponse instances.| Constructor and Description |
|---|
SearchDocumentResponseBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static <T> SearchDocumentResponse |
from(org.elasticsearch.search.SearchHits searchHits,
String scrollId,
org.elasticsearch.search.aggregations.Aggregations aggregations,
org.elasticsearch.search.suggest.Suggest suggestES,
SearchDocumentResponse.EntityCreator<T> entityCreator)
creates a
SearchDocumentResponseBuilder from SearchHits with the given scrollId aggregations and
suggest |
static <T> SearchDocumentResponse |
from(org.elasticsearch.action.search.SearchResponse searchResponse,
SearchDocumentResponse.EntityCreator<T> entityCreator)
creates a SearchDocumentResponse from the
SearchResponse |
public static <T> SearchDocumentResponse from(org.elasticsearch.action.search.SearchResponse searchResponse, SearchDocumentResponse.EntityCreator<T> entityCreator)
SearchResponseT - entity typesearchResponse - must not be nullentityCreator - function to create an entity from a SearchDocumentpublic static <T> SearchDocumentResponse from(org.elasticsearch.search.SearchHits searchHits, @Nullable String scrollId, @Nullable org.elasticsearch.search.aggregations.Aggregations aggregations, @Nullable org.elasticsearch.search.suggest.Suggest suggestES, SearchDocumentResponse.EntityCreator<T> entityCreator)
SearchDocumentResponseBuilder from SearchHits with the given scrollId aggregations and
suggestT - entity typesearchHits - the SearchHits to processscrollId - scrollIdaggregations - aggregationssuggestES - the suggestion response from ElasticsearchentityCreator - function to create an entity from a SearchDocumentSearchDocumentResponseCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.