public static interface SuggestModel.Builder extends SdkPojo, CopyableBuilder<SuggestModel.Builder,SuggestModel>
| Modifier and Type | Method and Description |
|---|---|
SuggestModel.Builder |
found(Long found)
The number of documents that were found to match the query string.
|
SuggestModel.Builder |
query(String query)
The query string specified in the suggest request.
|
SuggestModel.Builder |
suggestions(Collection<SuggestionMatch> suggestions)
The documents that match the query string.
|
SuggestModel.Builder |
suggestions(Consumer<SuggestionMatch.Builder>... suggestions)
The documents that match the query string.
|
SuggestModel.Builder |
suggestions(SuggestionMatch... suggestions)
The documents that match the query string.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSuggestModel.Builder query(String query)
The query string specified in the suggest request.
query - The query string specified in the suggest request.SuggestModel.Builder found(Long found)
The number of documents that were found to match the query string.
found - The number of documents that were found to match the query string.SuggestModel.Builder suggestions(Collection<SuggestionMatch> suggestions)
The documents that match the query string.
suggestions - The documents that match the query string.SuggestModel.Builder suggestions(SuggestionMatch... suggestions)
The documents that match the query string.
suggestions - The documents that match the query string.SuggestModel.Builder suggestions(Consumer<SuggestionMatch.Builder>... suggestions)
The documents that match the query string.
This is a convenience method that creates an instance of theSuggestionMatch.Builder avoiding the need to
create one manually via
SuggestionMatch.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #suggestions(List.
suggestions - a consumer that will call methods on
SuggestionMatch.Builder#suggestions(java.util.Collection) Copyright © 2023. All rights reserved.