Skip to content

Commit 332b761

Browse files
Auto-generated API code
1 parent 4863795 commit 332b761

File tree

4 files changed

+40
-38
lines changed

4 files changed

+40
-38
lines changed

elasticsearch_serverless/_async/client/async_search.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ async def delete(
3636
pretty: t.Optional[bool] = None,
3737
) -> ObjectApiResponse[t.Any]:
3838
"""
39-
Deletes an async search by identifier. If the search is still running, the search
40-
request will be cancelled. Otherwise, the saved search results are deleted. If
41-
the Elasticsearch security features are enabled, the deletion of a specific async
42-
search is restricted to: the authenticated user that submitted the original search
43-
request; users that have the `cancel_task` cluster privilege.
39+
Delete an async search. If the asynchronous search is still running, it is cancelled.
40+
Otherwise, the saved search results are deleted. If the Elasticsearch security
41+
features are enabled, the deletion of a specific async search is restricted to:
42+
the authenticated user that submitted the original search request; users that
43+
have the `cancel_task` cluster privilege.
4444
4545
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
4646
@@ -85,9 +85,9 @@ async def get(
8585
] = None,
8686
) -> ObjectApiResponse[t.Any]:
8787
"""
88-
Retrieves the results of a previously submitted async search request given its
89-
identifier. If the Elasticsearch security features are enabled, access to the
90-
results of a specific async search is restricted to the user or API key that
88+
Get async search results. Retrieve the results of a previously submitted asynchronous
89+
search request. If the Elasticsearch security features are enabled, access to
90+
the results of a specific async search is restricted to the user or API key that
9191
submitted it.
9292
9393
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
@@ -148,7 +148,7 @@ async def status(
148148
pretty: t.Optional[bool] = None,
149149
) -> ObjectApiResponse[t.Any]:
150150
"""
151-
Get async search status Retrieves the status of a previously submitted async
151+
Get async search status. Retrieve the status of a previously submitted async
152152
search request given its identifier, without retrieving search results. If the
153153
Elasticsearch security features are enabled, use of this API is restricted to
154154
the `monitoring_user` role.
@@ -323,15 +323,15 @@ async def submit(
323323
body: t.Optional[t.Dict[str, t.Any]] = None,
324324
) -> ObjectApiResponse[t.Any]:
325325
"""
326-
Runs a search request asynchronously. When the primary sort of the results is
327-
an indexed field, shards get sorted based on minimum and maximum value that they
328-
hold for that field, hence partial results become available following the sort
329-
criteria that was requested. Warning: Async search does not support scroll nor
330-
search requests that only include the suggest section. By default, Elasticsearch
331-
doesn’t allow you to store an async search response larger than 10Mb and an attempt
332-
to do this results in an error. The maximum allowed size for a stored async search
333-
response can be set by changing the `search.max_async_search_response_size` cluster
334-
level setting.
326+
Run an async search. When the primary sort of the results is an indexed field,
327+
shards get sorted based on minimum and maximum value that they hold for that
328+
field. Partial results become available following the sort criteria that was
329+
requested. Warning: Asynchronous search does not support scroll or search requests
330+
that include only the suggest section. By default, Elasticsearch does not allow
331+
you to store an async search response larger than 10Mb and an attempt to do this
332+
results in an error. The maximum allowed size for a stored async search response
333+
can be set by changing the `search.max_async_search_response_size` cluster level
334+
setting.
335335
336336
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
337337

elasticsearch_serverless/_async/client/indices.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ async def analyze(
137137
body: t.Optional[t.Dict[str, t.Any]] = None,
138138
) -> ObjectApiResponse[t.Any]:
139139
"""
140-
Performs analysis on a text string and returns the resulting tokens.
140+
Get tokens from text analysis. The analyze API performs [analysis](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html)
141+
on a text string and returns the resulting tokens.
141142
142143
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html>`_
143144

elasticsearch_serverless/_sync/client/async_search.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ def delete(
3636
pretty: t.Optional[bool] = None,
3737
) -> ObjectApiResponse[t.Any]:
3838
"""
39-
Deletes an async search by identifier. If the search is still running, the search
40-
request will be cancelled. Otherwise, the saved search results are deleted. If
41-
the Elasticsearch security features are enabled, the deletion of a specific async
42-
search is restricted to: the authenticated user that submitted the original search
43-
request; users that have the `cancel_task` cluster privilege.
39+
Delete an async search. If the asynchronous search is still running, it is cancelled.
40+
Otherwise, the saved search results are deleted. If the Elasticsearch security
41+
features are enabled, the deletion of a specific async search is restricted to:
42+
the authenticated user that submitted the original search request; users that
43+
have the `cancel_task` cluster privilege.
4444
4545
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
4646
@@ -85,9 +85,9 @@ def get(
8585
] = None,
8686
) -> ObjectApiResponse[t.Any]:
8787
"""
88-
Retrieves the results of a previously submitted async search request given its
89-
identifier. If the Elasticsearch security features are enabled, access to the
90-
results of a specific async search is restricted to the user or API key that
88+
Get async search results. Retrieve the results of a previously submitted asynchronous
89+
search request. If the Elasticsearch security features are enabled, access to
90+
the results of a specific async search is restricted to the user or API key that
9191
submitted it.
9292
9393
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
@@ -148,7 +148,7 @@ def status(
148148
pretty: t.Optional[bool] = None,
149149
) -> ObjectApiResponse[t.Any]:
150150
"""
151-
Get async search status Retrieves the status of a previously submitted async
151+
Get async search status. Retrieve the status of a previously submitted async
152152
search request given its identifier, without retrieving search results. If the
153153
Elasticsearch security features are enabled, use of this API is restricted to
154154
the `monitoring_user` role.
@@ -323,15 +323,15 @@ def submit(
323323
body: t.Optional[t.Dict[str, t.Any]] = None,
324324
) -> ObjectApiResponse[t.Any]:
325325
"""
326-
Runs a search request asynchronously. When the primary sort of the results is
327-
an indexed field, shards get sorted based on minimum and maximum value that they
328-
hold for that field, hence partial results become available following the sort
329-
criteria that was requested. Warning: Async search does not support scroll nor
330-
search requests that only include the suggest section. By default, Elasticsearch
331-
doesn’t allow you to store an async search response larger than 10Mb and an attempt
332-
to do this results in an error. The maximum allowed size for a stored async search
333-
response can be set by changing the `search.max_async_search_response_size` cluster
334-
level setting.
326+
Run an async search. When the primary sort of the results is an indexed field,
327+
shards get sorted based on minimum and maximum value that they hold for that
328+
field. Partial results become available following the sort criteria that was
329+
requested. Warning: Asynchronous search does not support scroll or search requests
330+
that include only the suggest section. By default, Elasticsearch does not allow
331+
you to store an async search response larger than 10Mb and an attempt to do this
332+
results in an error. The maximum allowed size for a stored async search response
333+
can be set by changing the `search.max_async_search_response_size` cluster level
334+
setting.
335335
336336
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
337337

elasticsearch_serverless/_sync/client/indices.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ def analyze(
137137
body: t.Optional[t.Dict[str, t.Any]] = None,
138138
) -> ObjectApiResponse[t.Any]:
139139
"""
140-
Performs analysis on a text string and returns the resulting tokens.
140+
Get tokens from text analysis. The analyze API performs [analysis](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html)
141+
on a text string and returns the resulting tokens.
141142
142143
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html>`_
143144

0 commit comments

Comments
 (0)