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 forTestRequest
static 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 TestRequest
final String
Required - The unique identifier of the query ruleset to be created or updatedvoid
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
Methods 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.metadata
field 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupTestRequestDeserializer
-