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 SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TestRequest>Json deserializer forTestRequeststatic final Endpoint<TestRequest,TestResponse, ErrorResponse> Endpoint "query_rules.test".
- 
Method SummaryModifier 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.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forTestRequest
- 
_ENDPOINTEndpoint "query_rules.test".
 
- 
- 
Method Details- 
of
- 
matchCriteriaRequired - 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
- 
rulesetIdRequired - The unique identifier of the query ruleset to be created or updatedAPI name: ruleset_id
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupTestRequestDeserializer
 
-