Class RankEvalRequest.Builder
java.lang.Object
org.opensearch.client.opensearch._global.RankEvalRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<RankEvalRequest>
- Enclosing class:
- RankEvalRequest
public static class RankEvalRequest.Builder extends java.lang.Object implements ObjectBuilder<RankEvalRequest>
Builder for
RankEvalRequest.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RankEvalRequest.BuilderaddIndex(java.lang.String value)Add a value toindex(List), creating the list if needed.RankEvalRequest.BuilderaddRequests(java.util.function.Function<RankEvalRequestItem.Builder,ObjectBuilder<RankEvalRequestItem>> fn)Add a value torequests(List), creating the list if needed.RankEvalRequest.BuilderaddRequests(RankEvalRequestItem value)Add a value torequests(List), creating the list if needed.RankEvalRequest.BuilderallowNoIndices(java.lang.Boolean value)If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices.RankEvalRequestbuild()Builds aRankEvalRequest.RankEvalRequest.BuilderexpandWildcards(jakarta.json.JsonValue value)API name:expand_wildcardsRankEvalRequest.BuilderignoreUnavailable(java.lang.Boolean value)If true, missing or closed indices are not included in the response.RankEvalRequest.Builderindex(java.lang.String... value)Comma-separated list of data streams, indices, and index aliases used to limit the request.RankEvalRequest.Builderindex(java.util.List<java.lang.String> value)Comma-separated list of data streams, indices, and index aliases used to limit the request.RankEvalRequest.Buildermetric(java.util.function.Function<RankEvalMetric.Builder,ObjectBuilder<RankEvalMetric>> fn)Definition of the evaluation metric to calculate API name:metricRankEvalRequest.Buildermetric(RankEvalMetric value)Definition of the evaluation metric to calculate API name:metricRankEvalRequest.Builderrequests(java.util.function.Function<RankEvalRequestItem.Builder,ObjectBuilder<RankEvalRequestItem>> fn)Setrequests(List)to a singleton list.RankEvalRequest.Builderrequests(java.util.List<RankEvalRequestItem> value)A set of typical search requests, together with their provided ratings API name:requestsRankEvalRequest.Builderrequests(RankEvalRequestItem... value)A set of typical search requests, together with their provided ratings API name:requestsRankEvalRequest.BuildersearchType(java.lang.String value)API name:search_type
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Comma-separated list of data streams, indices, and index aliases used to limit the request. Wildcard (*) expressions are supported. To target all data streams and indices in a cluster, omit this parameter or use _all or *. API name:index -
index
Comma-separated list of data streams, indices, and index aliases used to limit the request. Wildcard (*) expressions are supported. To target all data streams and indices in a cluster, omit this parameter or use _all or *. API name:index -
addIndex
Add a value toindex(List), creating the list if needed. -
allowNoIndices
If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. API name:allow_no_indices -
expandWildcards
API name:expand_wildcards -
ignoreUnavailable
If true, missing or closed indices are not included in the response. API name:ignore_unavailable -
searchType
API name:search_type -
requests
A set of typical search requests, together with their provided ratings API name:requests -
requests
A set of typical search requests, together with their provided ratings API name:requests -
addRequests
Add a value torequests(List), creating the list if needed. -
requests
public RankEvalRequest.Builder requests(java.util.function.Function<RankEvalRequestItem.Builder,ObjectBuilder<RankEvalRequestItem>> fn)Setrequests(List)to a singleton list. -
addRequests
public RankEvalRequest.Builder addRequests(java.util.function.Function<RankEvalRequestItem.Builder,ObjectBuilder<RankEvalRequestItem>> fn)Add a value torequests(List), creating the list if needed. -
metric
Definition of the evaluation metric to calculate API name:metric -
metric
public RankEvalRequest.Builder metric(java.util.function.Function<RankEvalMetric.Builder,ObjectBuilder<RankEvalMetric>> fn)Definition of the evaluation metric to calculate API name:metric -
build
Builds aRankEvalRequest.- Specified by:
buildin interfaceObjectBuilder<RankEvalRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-