Files
elasticsearch-js/docs/reference/api/QueryRulesPutRuleRequest.md
2025-05-28 10:02:30 -05:00

1.4 KiB

QueryRulesPutRuleRequest [interface-QueryRulesPutRuleRequest]

Name Type Description
actions QueryRulesQueryRuleActions The actions to take when the rule is matched. The format of this action depends on the rule type.
body string ({ [key: string]: any; } & { ruleset_id?: never; rule_id?: never; type?: never; criteria?: never; actions?: never; priority?: never; })
criteria QueryRulesQueryRuleCriteria QueryRulesQueryRuleCriteria[]
priority integer  
querystring { [key: string]: any; } & { ruleset_id?: never; rule_id?: never; type?: never; criteria?: never; actions?: never; priority?: never; } All values in querystring will be added to the request querystring.
rule_id Id The unique identifier of the query rule within the specified ruleset to be created or updated.
ruleset_id Id The unique identifier of the query ruleset containing the rule to be created or updated.
type QueryRulesQueryRuleType The type of rule.