Class RankEvalRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.core.RankEvalRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<RankEvalRequest.Builder,RankEvalRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class RankEvalRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<RankEvalRequest.Builder,RankEvalRequest>
Allows to evaluate the quality of ranked search results over a set of typical search queries.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RankEvalRequest> Json deserializer forRankEvalRequeststatic final Endpoint<RankEvalRequest, RankEvalResponse, ErrorResponse> Endpoint "rank_eval". -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanIffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indexes.protected voidapplyQueryParameters(Map<String, String> params) static RankEvalRequest.Builderbuilder()booleanfinal List<ExpandWildcard> Whether to expand wildcard expression to concrete indexes that are open, closed or both.inthashCode()final BooleanIftrue, missing or closed indexes are not included in the response.index()Comma-separated list of data streams, indexes, and index aliases used to limit the request.final RankEvalMetricmetric()API name:metricstatic RankEvalRequestfinal List<RankEvalRequestItem> requests()Required - A set of typical search requests, together with their provided ratings.final SearchTypeSearch operation typevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forRankEvalRequest -
_ENDPOINT
Endpoint "rank_eval".
-
-
Method Details
-
of
public static RankEvalRequest of(Function<RankEvalRequest.Builder, ObjectBuilder<RankEvalRequest>> fn) -
allowNoIndices
Iffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indexes. This behavior applies even if the request targets other open indexes. For example, a request targetingfoo*,bar*returns an error if an index starts withfoobut no index starts withbar.API name:
allow_no_indices -
expandWildcards
Whether to expand wildcard expression to concrete indexes that are open, closed or both.API name:
expand_wildcards -
index
Comma-separated list of data streams, indexes, and index aliases used to limit the request. Wildcard (*) expressions are supported. To target all data streams and indexes in a cluster, omit this parameter or use_allor*.API name:
index -
metric
API name:metric -
requests
Required - A set of typical search requests, together with their provided ratings.API name:
requests -
searchType
Search operation typeAPI name:
search_type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RankEvalRequest.Builder,RankEvalRequest> - Returns:
- a new builder instance.
-
builder
-
setupRankEvalRequestDeserializer
protected static void setupRankEvalRequestDeserializer(ObjectDeserializer<RankEvalRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-