public static interface Hits.Builder extends SdkPojo, 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.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, 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 method that creates an instance of theHit.Builder avoiding the need to create one
manually via Hit.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #hit(List.
hit - a consumer that will call methods on
Hit.Builder#hit(java.util.Collection) Copyright © 2023. All rights reserved.