Get all query rulesets
- GET /_query_rules
Get summarized information about the query rulesets.
- Cluster privileges:
manage_search_query_rules
Response
application/json
-
countnumberrequired -
resultsQueryRulesetListItemrequired -
ruleset_idstring Idrequired -
A unique identifier for the ruleset.
-
rule_total_countnumberrequired -
The number of rules associated with the ruleset.
-
rule_criteria_types_countsmap string to numberrequired -
A map of criteria type (for example,
exact) to the number of rules of that type.NOTE: The counts in
rule_criteria_types_countsmay be larger than the value ofrule_total_countbecause a rule may have multiple criteria. -
rule_type_countsmap string to numberrequired -
A map of rule type (for example,
pinned) to the number of rules of that type.