@@ -571,7 +571,8 @@ async def clear_scroll(
571
571
body : t .Optional [t .Dict [str , t .Any ]] = None ,
572
572
) -> ObjectApiResponse [t .Any ]:
573
573
"""
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.
575
576
576
577
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/clear-scroll-api.html>`_
577
578
@@ -621,7 +622,11 @@ async def close_point_in_time(
621
622
body : t .Optional [t .Dict [str , t .Any ]] = None ,
622
623
) -> ObjectApiResponse [t .Any ]:
623
624
"""
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.
625
630
626
631
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html>`_
627
632
@@ -1624,10 +1629,11 @@ async def field_caps(
1624
1629
body : t .Optional [t .Dict [str , t .Any ]] = None ,
1625
1630
) -> ObjectApiResponse [t .Any ]:
1626
1631
"""
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.
1631
1637
1632
1638
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html>`_
1633
1639
@@ -2163,7 +2169,10 @@ async def mget(
2163
2169
body : t .Optional [t .Dict [str , t .Any ]] = None ,
2164
2170
) -> ObjectApiResponse [t .Any ]:
2165
2171
"""
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.
2167
2176
2168
2177
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html>`_
2169
2178
@@ -2284,7 +2293,13 @@ async def msearch(
2284
2293
typed_keys : t .Optional [bool ] = None ,
2285
2294
) -> ObjectApiResponse [t .Any ]:
2286
2295
"""
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`.
2288
2303
2289
2304
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html>`_
2290
2305
@@ -2416,7 +2431,7 @@ async def msearch_template(
2416
2431
typed_keys : t .Optional [bool ] = None ,
2417
2432
) -> ObjectApiResponse [t .Any ]:
2418
2433
"""
2419
- Runs multiple templated searches with a single request .
2434
+ Run multiple templated searches.
2420
2435
2421
2436
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html>`_
2422
2437
@@ -2511,7 +2526,11 @@ async def mtermvectors(
2511
2526
body : t .Optional [t .Dict [str , t .Any ]] = None ,
2512
2527
) -> ObjectApiResponse [t .Any ]:
2513
2528
"""
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.
2515
2534
2516
2535
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html>`_
2517
2536
@@ -2622,13 +2641,15 @@ async def open_point_in_time(
2622
2641
body : t .Optional [t .Dict [str , t .Any ]] = None ,
2623
2642
) -> ObjectApiResponse [t .Any ]:
2624
2643
"""
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.
2632
2653
2633
2654
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html>`_
2634
2655
@@ -2795,8 +2816,8 @@ async def rank_eval(
2795
2816
body : t .Optional [t .Dict [str , t .Any ]] = None ,
2796
2817
) -> ObjectApiResponse [t .Any ]:
2797
2818
"""
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.
2800
2821
2801
2822
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html>`_
2802
2823
@@ -2994,7 +3015,7 @@ async def render_search_template(
2994
3015
body : t .Optional [t .Dict [str , t .Any ]] = None ,
2995
3016
) -> ObjectApiResponse [t .Any ]:
2996
3017
"""
2997
- Renders a search template as a search request body.
3018
+ Render a search template. Render a search template as a search request body.
2998
3019
2999
3020
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/render-search-template-api.html>`_
3000
3021
@@ -3120,7 +3141,22 @@ async def scroll(
3120
3141
body : t .Optional [t .Dict [str , t .Any ]] = None ,
3121
3142
) -> ObjectApiResponse [t .Any ]:
3122
3143
"""
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.
3124
3160
3125
3161
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll>`_
3126
3162
@@ -3310,9 +3346,9 @@ async def search(
3310
3346
body : t .Optional [t .Dict [str , t .Any ]] = None ,
3311
3347
) -> ObjectApiResponse [t .Any ]:
3312
3348
"""
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.
3316
3352
3317
3353
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html>`_
3318
3354
@@ -3742,7 +3778,7 @@ async def search_mvt(
3742
3778
body : t .Optional [t .Dict [str , t .Any ]] = None ,
3743
3779
) -> BinaryApiResponse :
3744
3780
"""
3745
- Search a vector tile. Searches a vector tile for geospatial values.
3781
+ Search a vector tile. Search a vector tile for geospatial values.
3746
3782
3747
3783
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-vector-tile-api.html>`_
3748
3784
@@ -3912,7 +3948,7 @@ async def search_template(
3912
3948
body : t .Optional [t .Dict [str , t .Any ]] = None ,
3913
3949
) -> ObjectApiResponse [t .Any ]:
3914
3950
"""
3915
- Runs a search with a search template.
3951
+ Run a search with a search template.
3916
3952
3917
3953
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html>`_
3918
3954
@@ -4044,9 +4080,15 @@ async def terms_enum(
4044
4080
body : t .Optional [t .Dict [str , t .Any ]] = None ,
4045
4081
) -> ObjectApiResponse [t .Any ]:
4046
4082
"""
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.
4050
4092
4051
4093
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-terms-enum.html>`_
4052
4094
@@ -4144,8 +4186,8 @@ async def termvectors(
4144
4186
body : t .Optional [t .Dict [str , t .Any ]] = None ,
4145
4187
) -> ObjectApiResponse [t .Any ]:
4146
4188
"""
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.
4149
4191
4150
4192
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html>`_
4151
4193
0 commit comments