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_id string Id required

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

Request

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