public static interface Hits.Builder extends CopyableBuilder<Hits.Builder,Hits>
| Modifier and Type | Method and Description |
|---|---|
Hits.Builder |
cursor(String cursor)
A cursor that can be used to retrieve the next set of matching documents when you want to page through a
large result set.
|
Hits.Builder |
found(Long found)
The total number of documents that match the search request.
|
Hits.Builder |
hit(Collection<Hit> hit)
A document that matches the search request.
|
Hits.Builder |
hit(Consumer<Hit.Builder>... hit)
A document that matches the search request.
|
Hits.Builder |
hit(Hit... hit)
A document that matches the search request.
|
Hits.Builder |
start(Long start)
The index of the first matching document.
|
copyapply, buildHits.Builder found(Long found)
The total number of documents that match the search request.
found - The total number of documents that match the search request.Hits.Builder start(Long start)
The index of the first matching document.
start - The index of the first matching document.Hits.Builder cursor(String cursor)
A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.
cursor - A cursor that can be used to retrieve the next set of matching documents when you want to page through
a large result set.Hits.Builder hit(Collection<Hit> hit)
A document that matches the search request.
hit - A document that matches the search request.Hits.Builder hit(Hit... hit)
A document that matches the search request.
hit - A document that matches the search request.Hits.Builder hit(Consumer<Hit.Builder>... hit)
A document that matches the search request.
This is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #hit(List) .hit - a consumer that will call methods on List.Builder #hit(List) Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.