Test a query ruleset

Auth

Evaluate match criteria against a query ruleset to identify the rules that would match that criteria.

Required privileges

Cluster privileges manage_search_query_rules

Path parameters

ruleset_id string required

The unique identifier of the query ruleset to be created or updated

Request body

match_criteria map string to object required

The match criteria to apply to rules in the given query ruleset. Match criteria should match the keys defined in the criteria.metadata field of the rule.

Response

application/json
total_matched_rules number required
matched_rules object[] required
ruleset_id string required

Ruleset unique identifier

rule_id string required

Rule unique identifier within that ruleset