Test a query ruleset POST /_query_rules/{ruleset_id}/_test Version 8.19 Latest: v9 Auth POST Test a query ruleset Overview Path Body Responses Expand all Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. Required privileges Cluster manage_search_query_rules Expand all 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. Responses 200 application/json total_matched_rules number required matched_rules object[] required − Hide 2 properties ruleset_id string required Ruleset unique identifier rule_id string required Rule unique identifier within that ruleset