public static interface DocumentRelevanceConfiguration.Builder extends SdkPojo, CopyableBuilder<DocumentRelevanceConfiguration.Builder,DocumentRelevanceConfiguration>
| Modifier and Type | Method and Description |
|---|---|
DocumentRelevanceConfiguration.Builder |
name(String name)
The name of the index field.
|
default DocumentRelevanceConfiguration.Builder |
relevance(Consumer<Relevance.Builder> relevance)
Provides information for tuning the relevance of a field in a search.
|
DocumentRelevanceConfiguration.Builder |
relevance(Relevance relevance)
Provides information for tuning the relevance of a field in a search.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDocumentRelevanceConfiguration.Builder name(String name)
The name of the index field.
name - The name of the index field.DocumentRelevanceConfiguration.Builder relevance(Relevance relevance)
Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.
relevance - Provides information for tuning the relevance of a field in a search. When a query includes terms that
match the field, the results are given a boost in the response based on these tuning parameters.default DocumentRelevanceConfiguration.Builder relevance(Consumer<Relevance.Builder> relevance)
Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.
This is a convenience method that creates an instance of theRelevance.Builder avoiding the need to
create one manually via Relevance.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to relevance(Relevance).
relevance - a consumer that will call methods on Relevance.Builderrelevance(Relevance)Copyright © 2023. All rights reserved.