Test a query ruleset
- POST /_query_rules/{ruleset_id}/_test
Evaluate match criteria against a query ruleset to identify the rules that would match that criteria.
- Cluster privileges:
manage_search_query_rules
Path Parameters
-
ruleset_idstring Idrequired -
The unique identifier of the query ruleset to be created or updated
Request
-
match_criteriamap string to objectrequired -
The match criteria to apply to rules in the given query ruleset. Match criteria should match the keys defined in the
criteria.metadatafield of the rule.
Response
application/json
-
total_matched_rulesnumberrequired -
matched_rulesQueryRulesetMatchedRulerequired -
ruleset_idstring Idrequired -
Ruleset unique identifier
-
rule_idstring Idrequired -
Rule unique identifier within that ruleset