Class TestRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.query_rules.TestRequest
- All Implemented Interfaces:
JsonpSerializable
Test a query ruleset. Evaluate match criteria against a query ruleset to
identify the rules that would match that criteria.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TestRequest>Json deserializer forTestRequeststatic final Endpoint<TestRequest,TestResponse, ErrorResponse> Endpoint "query_rules.test". -
Method Summary
Modifier and TypeMethodDescriptionRequired - The match criteria to apply to rules in the given query ruleset.static TestRequestfinal StringRequired - The unique identifier of the query ruleset to be created or updatedvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forTestRequest -
_ENDPOINT
Endpoint "query_rules.test".
-
-
Method Details
-
of
-
matchCriteria
Required - The match criteria to apply to rules in the given query ruleset. Match criteria should match the keys defined in thecriteria.metadatafield of the rule.API name:
match_criteria -
rulesetId
Required - The unique identifier of the query ruleset to be created or updatedAPI name:
ruleset_id -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupTestRequestDeserializer
-