Query rules
- class elasticsearch.client.QueryRulesClient(client)
- Parameters:
client (BaseClient)
- delete_rule(*, ruleset_id, rule_id, error_trace=None, filter_path=None, human=None, pretty=None)
Deletes a query rule within a query ruleset.
https://www.elastic.co/guide/en/elasticsearch/reference/8.16/delete-query-rule.html
- Parameters:
- Return type:
- delete_ruleset(*, ruleset_id, error_trace=None, filter_path=None, human=None, pretty=None)
Deletes a query ruleset.
https://www.elastic.co/guide/en/elasticsearch/reference/8.16/delete-query-ruleset.html
- get_rule(*, ruleset_id, rule_id, error_trace=None, filter_path=None, human=None, pretty=None)
Returns the details about a query rule within a query ruleset
https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-query-rule.html
- Parameters:
- Return type:
- get_ruleset(*, ruleset_id, error_trace=None, filter_path=None, human=None, pretty=None)
Returns the details about a query ruleset
https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-query-ruleset.html
- list_rulesets(*, error_trace=None, filter_path=None, from_=None, human=None, pretty=None, size=None)
Returns summarized information about existing query rulesets.
https://www.elastic.co/guide/en/elasticsearch/reference/8.16/list-query-rulesets.html
- put_rule(*, ruleset_id, rule_id, actions=None, criteria=None, type=None, error_trace=None, filter_path=None, human=None, pretty=None, priority=None, body=None)
Creates or updates a query rule within a query ruleset.
https://www.elastic.co/guide/en/elasticsearch/reference/8.16/put-query-rule.html
- Parameters:
ruleset_id (str) – The unique identifier of the query ruleset containing the rule to be created or updated
rule_id (str) – The unique identifier of the query rule within the specified ruleset to be created or updated
criteria (Mapping[str, Any] | Sequence[Mapping[str, Any]] | None)
priority (int | None)
error_trace (bool | None)
human (bool | None)
pretty (bool | None)
- Return type:
- put_ruleset(*, ruleset_id, rules=None, error_trace=None, filter_path=None, human=None, pretty=None, body=None)
Creates or updates a query ruleset.
https://www.elastic.co/guide/en/elasticsearch/reference/8.16/put-query-ruleset.html
- Parameters:
- Return type:
- test(*, ruleset_id, match_criteria=None, error_trace=None, filter_path=None, human=None, pretty=None, body=None)
Creates or updates a query ruleset.
https://www.elastic.co/guide/en/elasticsearch/reference/8.16/test-query-ruleset.html
- Parameters:
- Return type: