Skip to content

Commit 9fc9277

Browse files
committed
Auto-generated API code
1 parent 332b761 commit 9fc9277

File tree

16 files changed

+456
-224
lines changed

16 files changed

+456
-224
lines changed

elasticsearch_serverless/_async/client/__init__.py

Lines changed: 73 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,8 @@ async def clear_scroll(
571571
body: t.Optional[t.Dict[str, t.Any]] = None,
572572
) -> ObjectApiResponse[t.Any]:
573573
"""
574-
Clears the search context and results for a scrolling search.
574+
Clear a scrolling search. Clear the search context and results for a scrolling
575+
search.
575576
576577
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/clear-scroll-api.html>`_
577578
@@ -621,7 +622,11 @@ async def close_point_in_time(
621622
body: t.Optional[t.Dict[str, t.Any]] = None,
622623
) -> ObjectApiResponse[t.Any]:
623624
"""
624-
Closes a point-in-time.
625+
Close a point in time. A point in time must be opened explicitly before being
626+
used in search requests. The `keep_alive` parameter tells Elasticsearch how long
627+
it should persist. A point in time is automatically closed when the `keep_alive`
628+
period has elapsed. However, keeping points in time has a cost; close them as
629+
soon as they are no longer required for search requests.
625630
626631
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html>`_
627632
@@ -1624,10 +1629,11 @@ async def field_caps(
16241629
body: t.Optional[t.Dict[str, t.Any]] = None,
16251630
) -> ObjectApiResponse[t.Any]:
16261631
"""
1627-
The field capabilities API returns the information about the capabilities of
1628-
fields among multiple indices. The field capabilities API returns runtime fields
1629-
like any other field. For example, a runtime field with a type of keyword is
1630-
returned as any other field that belongs to the `keyword` family.
1632+
Get the field capabilities. Get information about the capabilities of fields
1633+
among multiple indices. For data streams, the API returns field capabilities
1634+
among the stream’s backing indices. It returns runtime fields like any other
1635+
field. For example, a runtime field with a type of keyword is returned the same
1636+
as any other field that belongs to the `keyword` family.
16311637
16321638
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html>`_
16331639
@@ -2163,7 +2169,10 @@ async def mget(
21632169
body: t.Optional[t.Dict[str, t.Any]] = None,
21642170
) -> ObjectApiResponse[t.Any]:
21652171
"""
2166-
Allows to get multiple documents in one request.
2172+
Get multiple documents. Get multiple JSON documents by ID from one or more indices.
2173+
If you specify an index in the request URI, you only need to specify the document
2174+
IDs in the request body. To ensure fast responses, this multi get (mget) API
2175+
responds with partial results if one or more shards fail.
21672176
21682177
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html>`_
21692178
@@ -2284,7 +2293,13 @@ async def msearch(
22842293
typed_keys: t.Optional[bool] = None,
22852294
) -> ObjectApiResponse[t.Any]:
22862295
"""
2287-
Allows to execute several search operations in one request.
2296+
Run multiple searches. The format of the request is similar to the bulk API format
2297+
and makes use of the newline delimited JSON (NDJSON) format. The structure is
2298+
as follows: ``` header\\n body\\n header\\n body\\n ``` This structure is specifically
2299+
optimized to reduce parsing if a specific search ends up redirected to another
2300+
node. IMPORTANT: The final line of data must end with a newline character `\\n`.
2301+
Each newline character may be preceded by a carriage return `\\r`. When sending
2302+
requests to this endpoint the `Content-Type` header should be set to `application/x-ndjson`.
22882303
22892304
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html>`_
22902305
@@ -2416,7 +2431,7 @@ async def msearch_template(
24162431
typed_keys: t.Optional[bool] = None,
24172432
) -> ObjectApiResponse[t.Any]:
24182433
"""
2419-
Runs multiple templated searches with a single request.
2434+
Run multiple templated searches.
24202435
24212436
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html>`_
24222437
@@ -2511,7 +2526,11 @@ async def mtermvectors(
25112526
body: t.Optional[t.Dict[str, t.Any]] = None,
25122527
) -> ObjectApiResponse[t.Any]:
25132528
"""
2514-
Returns multiple termvectors in one request.
2529+
Get multiple term vectors. You can specify existing documents by index and ID
2530+
or provide artificial documents in the body of the request. You can specify the
2531+
index in the request body or request URI. The response contains a `docs` array
2532+
with all the fetched termvectors. Each element has the structure provided by
2533+
the termvectors API.
25152534
25162535
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html>`_
25172536
@@ -2622,13 +2641,15 @@ async def open_point_in_time(
26222641
body: t.Optional[t.Dict[str, t.Any]] = None,
26232642
) -> ObjectApiResponse[t.Any]:
26242643
"""
2625-
A search request by default executes against the most recent visible data of
2626-
the target indices, which is called point in time. Elasticsearch pit (point in
2627-
time) is a lightweight view into the state of the data as it existed when initiated.
2628-
In some cases, it’s preferred to perform multiple search requests using the same
2629-
point in time. For example, if refreshes happen between `search_after` requests,
2630-
then the results of those requests might not be consistent as changes happening
2631-
between searches are only visible to the more recent point in time.
2644+
Open a point in time. A search request by default runs against the most recent
2645+
visible data of the target indices, which is called point in time. Elasticsearch
2646+
pit (point in time) is a lightweight view into the state of the data as it existed
2647+
when initiated. In some cases, it’s preferred to perform multiple search requests
2648+
using the same point in time. For example, if refreshes happen between `search_after`
2649+
requests, then the results of those requests might not be consistent as changes
2650+
happening between searches are only visible to the more recent point in time.
2651+
A point in time must be opened explicitly before being used in search requests.
2652+
The `keep_alive` parameter tells Elasticsearch how long it should persist.
26322653
26332654
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html>`_
26342655
@@ -2795,8 +2816,8 @@ async def rank_eval(
27952816
body: t.Optional[t.Dict[str, t.Any]] = None,
27962817
) -> ObjectApiResponse[t.Any]:
27972818
"""
2798-
Enables you to evaluate the quality of ranked search results over a set of typical
2799-
search queries.
2819+
Evaluate ranked search results. Evaluate the quality of ranked search results
2820+
over a set of typical search queries.
28002821
28012822
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html>`_
28022823
@@ -2994,7 +3015,7 @@ async def render_search_template(
29943015
body: t.Optional[t.Dict[str, t.Any]] = None,
29953016
) -> ObjectApiResponse[t.Any]:
29963017
"""
2997-
Renders a search template as a search request body.
3018+
Render a search template. Render a search template as a search request body.
29983019
29993020
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/render-search-template-api.html>`_
30003021
@@ -3120,7 +3141,22 @@ async def scroll(
31203141
body: t.Optional[t.Dict[str, t.Any]] = None,
31213142
) -> ObjectApiResponse[t.Any]:
31223143
"""
3123-
Allows to retrieve a large numbers of results from a single search request.
3144+
Run a scrolling search. IMPORTANT: The scroll API is no longer recommend for
3145+
deep pagination. If you need to preserve the index state while paging through
3146+
more than 10,000 hits, use the `search_after` parameter with a point in time
3147+
(PIT). The scroll API gets large sets of results from a single scrolling search
3148+
request. To get the necessary scroll ID, submit a search API request that includes
3149+
an argument for the `scroll` query parameter. The `scroll` parameter indicates
3150+
how long Elasticsearch should retain the search context for the request. The
3151+
search response returns a scroll ID in the `_scroll_id` response body parameter.
3152+
You can then use the scroll ID with the scroll API to retrieve the next batch
3153+
of results for the request. If the Elasticsearch security features are enabled,
3154+
the access to the results of a specific scroll ID is restricted to the user or
3155+
API key that submitted the search. You can also use the scroll API to specify
3156+
a new scroll parameter that extends or shortens the retention period for the
3157+
search context. IMPORTANT: Results from a scrolling search reflect the state
3158+
of the index at the time of the initial search request. Subsequent indexing or
3159+
document changes only affect later search and scroll requests.
31243160
31253161
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll>`_
31263162
@@ -3310,9 +3346,9 @@ async def search(
33103346
body: t.Optional[t.Dict[str, t.Any]] = None,
33113347
) -> ObjectApiResponse[t.Any]:
33123348
"""
3313-
Returns search hits that match the query defined in the request. You can provide
3314-
search queries using the `q` query string parameter or the request body. If both
3315-
are specified, only the query parameter is used.
3349+
Run a search. Get search hits that match the query defined in the request. You
3350+
can provide search queries using the `q` query string parameter or the request
3351+
body. If both are specified, only the query parameter is used.
33163352
33173353
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html>`_
33183354
@@ -3742,7 +3778,7 @@ async def search_mvt(
37423778
body: t.Optional[t.Dict[str, t.Any]] = None,
37433779
) -> BinaryApiResponse:
37443780
"""
3745-
Search a vector tile. Searches a vector tile for geospatial values.
3781+
Search a vector tile. Search a vector tile for geospatial values.
37463782
37473783
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-vector-tile-api.html>`_
37483784
@@ -3912,7 +3948,7 @@ async def search_template(
39123948
body: t.Optional[t.Dict[str, t.Any]] = None,
39133949
) -> ObjectApiResponse[t.Any]:
39143950
"""
3915-
Runs a search with a search template.
3951+
Run a search with a search template.
39163952
39173953
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html>`_
39183954
@@ -4044,9 +4080,15 @@ async def terms_enum(
40444080
body: t.Optional[t.Dict[str, t.Any]] = None,
40454081
) -> ObjectApiResponse[t.Any]:
40464082
"""
4047-
The terms enum API can be used to discover terms in the index that begin with
4048-
the provided string. It is designed for low-latency look-ups used in auto-complete
4049-
scenarios.
4083+
Get terms in an index. Discover terms that match a partial string in an index.
4084+
This "terms enum" API is designed for low-latency look-ups used in auto-complete
4085+
scenarios. If the `complete` property in the response is false, the returned
4086+
terms set may be incomplete and should be treated as approximate. This can occur
4087+
due to a few reasons, such as a request timeout or a node error. NOTE: The terms
4088+
enum API may return terms from deleted documents. Deleted documents are initially
4089+
only marked as deleted. It is not until their segments are merged that documents
4090+
are actually deleted. Until that happens, the terms enum API will return terms
4091+
from these documents.
40504092
40514093
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-terms-enum.html>`_
40524094
@@ -4144,8 +4186,8 @@ async def termvectors(
41444186
body: t.Optional[t.Dict[str, t.Any]] = None,
41454187
) -> ObjectApiResponse[t.Any]:
41464188
"""
4147-
Get term vector information. Returns information and statistics about terms in
4148-
the fields of a particular document.
4189+
Get term vector information. Get information and statistics about terms in the
4190+
fields of a particular document.
41494191
41504192
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html>`_
41514193

elasticsearch_serverless/_async/client/async_search.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ async def status(
148148
pretty: t.Optional[bool] = None,
149149
) -> ObjectApiResponse[t.Any]:
150150
"""
151-
Get async search status. Retrieve the status of a previously submitted async
152-
search request given its identifier, without retrieving search results. If the
153-
Elasticsearch security features are enabled, use of this API is restricted to
154-
the `monitoring_user` role.
151+
Get the async search status. Get the status of a previously submitted async search
152+
request given its identifier, without retrieving search results. If the Elasticsearch
153+
security features are enabled, use of this API is restricted to the `monitoring_user`
154+
role.
155155
156156
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
157157

0 commit comments

Comments
 (0)