Files
elasticsearch-js/docs/reference/api/QueryRules.md
2025-05-27 15:30:21 -05:00

9.2 KiB

QueryRules

Constructor

::: new QueryRules(transport: Transport); :::

Properties

Name Type Description
acceptedParams Record<string, { path: string[]; body: string[]; query: string[]; }>  
transport Transport  

Methods

Name Signature Description
deleteRule deleteRule(this: [That](./That.md), params: [QueryRulesDeleteRuleRequest](./QueryRulesDeleteRuleRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[QueryRulesDeleteRuleResponse](./QueryRulesDeleteRuleResponse.md)>; Delete a query rule. Delete a query rule within a query ruleset. This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API.