From 8bc55b4bbca7542b07ba2f88f4becfefed5c3f0a Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Mon, 4 Aug 2025 06:06:03 +0000 Subject: [PATCH] Auto-generated API code --- elasticsearch/_async/client/esql.py | 11 +- elasticsearch/_async/client/inference.py | 107 ++++++++++++++++++++ elasticsearch/_async/client/sql.py | 2 +- elasticsearch/_sync/client/esql.py | 11 +- elasticsearch/_sync/client/inference.py | 107 ++++++++++++++++++++ elasticsearch/_sync/client/sql.py | 2 +- elasticsearch/dsl/aggs.py | 20 ++++ elasticsearch/dsl/field.py | 26 +++++ elasticsearch/dsl/types.py | 123 ++++++++++++++++++++++- 9 files changed, 400 insertions(+), 9 deletions(-) diff --git a/elasticsearch/_async/client/esql.py b/elasticsearch/_async/client/esql.py index bca1e4255..7ecdd5dae 100644 --- a/elasticsearch/_async/client/esql.py +++ b/elasticsearch/_async/client/esql.py @@ -107,7 +107,12 @@ async def async_query( which has the name of all the columns. :param filter: Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on. - :param format: A short version of the Accept header, for example `json` or `yaml`. + :param format: A short version of the Accept header, e.g. json, yaml. `csv`, + `tsv`, and `txt` formats will return results in a tabular format, excluding + other metadata fields from the response. For async requests, nothing will + be returned if the async query doesn't finish within the timeout. The query + ID and running status are available in the `X-Elasticsearch-Async-Id` and + `X-Elasticsearch-Async-Is-Running` HTTP headers of the response, respectively. :param include_ccs_metadata: When set to `true` and performing a cross-cluster query, the response will include an extra `_clusters` object with information about the clusters that participated in the search along with info such as @@ -456,7 +461,9 @@ async def query( `all_columns` which has the name of all columns. :param filter: Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on. - :param format: A short version of the Accept header, e.g. json, yaml. + :param format: A short version of the Accept header, e.g. json, yaml. `csv`, + `tsv`, and `txt` formats will return results in a tabular format, excluding + other metadata fields from the response. :param include_ccs_metadata: When set to `true` and performing a cross-cluster query, the response will include an extra `_clusters` object with information about the clusters that participated in the search along with info such as diff --git a/elasticsearch/_async/client/inference.py b/elasticsearch/_async/client/inference.py index 0083677f4..f14f08142 100644 --- a/elasticsearch/_async/client/inference.py +++ b/elasticsearch/_async/client/inference.py @@ -391,6 +391,7 @@ async def put(