public static interface SearchResponse.Builder extends CloudSearchDomainResponse.Builder, CopyableBuilder<SearchResponse.Builder,SearchResponse>
| Modifier and Type | Method and Description |
|---|---|
SearchResponse.Builder |
facets(Map<String,BucketInfo> facets)
The requested facet information.
|
default SearchResponse.Builder |
hits(Consumer<Hits.Builder> hits)
The documents that match the search criteria.
|
SearchResponse.Builder |
hits(Hits hits)
The documents that match the search criteria.
|
SearchResponse.Builder |
stats(Map<String,FieldStats> stats)
The requested field statistics information.
|
default SearchResponse.Builder |
status(Consumer<SearchStatus.Builder> status)
The status information returned for the search request.
|
SearchResponse.Builder |
status(SearchStatus status)
The status information returned for the search request.
|
buildsdkHttpResponse, sdkHttpResponsecopyapply, buildSearchResponse.Builder status(SearchStatus status)
The status information returned for the search request.
status - The status information returned for the search request.default SearchResponse.Builder status(Consumer<SearchStatus.Builder> status)
The status information returned for the search request.
This is a convenience that creates an instance of theSearchStatus.Builder avoiding the need to
create one manually via SearchStatus.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to status(SearchStatus).status - a consumer that will call methods on SearchStatus.Builderstatus(SearchStatus)SearchResponse.Builder hits(Hits hits)
The documents that match the search criteria.
hits - The documents that match the search criteria.default SearchResponse.Builder hits(Consumer<Hits.Builder> hits)
The documents that match the search criteria.
This is a convenience that creates an instance of theHits.Builder avoiding the need to create one
manually via Hits.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to hits(Hits).hits - a consumer that will call methods on Hits.Builderhits(Hits)SearchResponse.Builder facets(Map<String,BucketInfo> facets)
The requested facet information.
facets - The requested facet information.SearchResponse.Builder stats(Map<String,FieldStats> stats)
The requested field statistics information.
stats - The requested field statistics information.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.