Class RankEvalRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RankEvalRequest.Builder>
co.elastic.clients.elasticsearch.core.RankEvalRequest.Builder
- All Implemented Interfaces:
WithJson<RankEvalRequest.Builder>,ObjectBuilder<RankEvalRequest>
- Enclosing class:
- RankEvalRequest
public static class RankEvalRequest.Builder extends WithJsonObjectBuilderBase<RankEvalRequest.Builder> implements ObjectBuilder<RankEvalRequest>
Builder for
RankEvalRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description 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(ExpandWildcard value, ExpandWildcard... values)Whether to expand wildcard expression to concrete indices that are open, closed or both.RankEvalRequest.BuilderexpandWildcards(java.util.List<ExpandWildcard> list)Whether to expand wildcard expression to concrete indices that are open, closed or both.RankEvalRequest.BuilderignoreUnavailable(java.lang.Boolean value)If true, missing or closed indices are not included in the response.RankEvalRequest.Builderindex(java.lang.String value, java.lang.String... values)Required - Comma-separated list of data streams, indices, and index aliases used to limit the request.RankEvalRequest.Builderindex(java.util.List<java.lang.String> list)Required - Comma-separated list of data streams, indices, and index aliases used to limit the request.RankEvalRequest.Buildermetric(RankEvalMetric value)Definition of the evaluation metric to calculateRankEvalRequest.Buildermetric(java.util.function.Function<RankEvalMetric.Builder,ObjectBuilder<RankEvalMetric>> fn)Definition of the evaluation metric to calculateRankEvalRequest.Builderrequests(RankEvalRequestItem value, RankEvalRequestItem... values)Required - A set of typical search requests, together with their provided ratingsRankEvalRequest.Builderrequests(java.util.function.Function<RankEvalRequestItem.Builder,ObjectBuilder<RankEvalRequestItem>> fn)Required - A set of typical search requests, together with their provided ratingsRankEvalRequest.Builderrequests(java.util.List<RankEvalRequestItem> list)Required - A set of typical search requests, together with their provided ratingsRankEvalRequest.BuildersearchType(java.lang.String value)Search operation typeprotected RankEvalRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final RankEvalRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values)Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
index
Required - 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:
indexAdds all elements of
listtoindex. -
index
Required - 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:
indexAdds one or more values to
index. -
metric
Definition of the evaluation metric to calculateAPI name:
metric -
metric
public final RankEvalRequest.Builder metric(java.util.function.Function<RankEvalMetric.Builder,ObjectBuilder<RankEvalMetric>> fn)Definition of the evaluation metric to calculateAPI name:
metric -
requests
Required - A set of typical search requests, together with their provided ratingsAPI name:
requestsAdds all elements of
listtorequests. -
requests
public final RankEvalRequest.Builder requests(RankEvalRequestItem value, RankEvalRequestItem... values)Required - A set of typical search requests, together with their provided ratingsAPI name:
requestsAdds one or more values to
requests. -
requests
public final RankEvalRequest.Builder requests(java.util.function.Function<RankEvalRequestItem.Builder,ObjectBuilder<RankEvalRequestItem>> fn)Required - A set of typical search requests, together with their provided ratingsAPI name:
requestsAdds a value to
requestsusing a builder lambda. -
searchType
Search operation typeAPI name:
search_type -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RankEvalRequest.Builder>
-
build
Builds aRankEvalRequest.- Specified by:
buildin interfaceObjectBuilder<RankEvalRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-