@@ -1581,7 +1581,7 @@ async def delete_by_query(
1581
1581
If the request can target data streams, this argument determines whether
1582
1582
wildcard expressions match hidden data streams. It supports comma-separated
1583
1583
values, such as `open,hidden`.
1584
- :param from_: Starting offset (default: 0)
1584
+ :param from_: Skips the specified number of documents.
1585
1585
:param ignore_unavailable: If `false`, the request returns an error if it targets
1586
1586
a missing or closed index.
1587
1587
:param lenient: If `true`, format-based query failures (such as providing text
@@ -3420,7 +3420,8 @@ async def msearch(
3420
3420
computationally expensive named queries on a large number of hits may add
3421
3421
significant overhead.
3422
3422
:param max_concurrent_searches: Maximum number of concurrent searches the multi
3423
- search API can execute.
3423
+ search API can execute. Defaults to `max(1, (# of data nodes * min(search
3424
+ thread pool size, 10)))`.
3424
3425
:param max_concurrent_shard_requests: Maximum number of concurrent shard requests
3425
3426
that each sub-search request executes per node.
3426
3427
:param pre_filter_shard_size: Defines a threshold that enforces a pre-filter
@@ -3748,6 +3749,7 @@ async def open_point_in_time(
3748
3749
human : t .Optional [bool ] = None ,
3749
3750
ignore_unavailable : t .Optional [bool ] = None ,
3750
3751
index_filter : t .Optional [t .Mapping [str , t .Any ]] = None ,
3752
+ max_concurrent_shard_requests : t .Optional [int ] = None ,
3751
3753
preference : t .Optional [str ] = None ,
3752
3754
pretty : t .Optional [bool ] = None ,
3753
3755
routing : t .Optional [str ] = None ,
@@ -3803,6 +3805,8 @@ async def open_point_in_time(
3803
3805
a missing or closed index.
3804
3806
:param index_filter: Filter indices if the provided query rewrites to `match_none`
3805
3807
on every shard.
3808
+ :param max_concurrent_shard_requests: Maximum number of concurrent shard requests
3809
+ that each sub-search request executes per node.
3806
3810
:param preference: The node or shard the operation should be performed on. By
3807
3811
default, it is random.
3808
3812
:param routing: A custom value that is used to route operations to a specific
@@ -3830,6 +3834,8 @@ async def open_point_in_time(
3830
3834
__query ["human" ] = human
3831
3835
if ignore_unavailable is not None :
3832
3836
__query ["ignore_unavailable" ] = ignore_unavailable
3837
+ if max_concurrent_shard_requests is not None :
3838
+ __query ["max_concurrent_shard_requests" ] = max_concurrent_shard_requests
3833
3839
if preference is not None :
3834
3840
__query ["preference" ] = preference
3835
3841
if pretty is not None :
@@ -4370,7 +4376,7 @@ async def render_search_template(
4370
4376
human : t .Optional [bool ] = None ,
4371
4377
params : t .Optional [t .Mapping [str , t .Any ]] = None ,
4372
4378
pretty : t .Optional [bool ] = None ,
4373
- source : t .Optional [str ] = None ,
4379
+ source : t .Optional [t . Union [ str , t . Mapping [ str , t . Any ]] ] = None ,
4374
4380
body : t .Optional [t .Dict [str , t .Any ]] = None ,
4375
4381
) -> ObjectApiResponse [t .Any ]:
4376
4382
"""
@@ -5774,7 +5780,7 @@ async def search_template(
5774
5780
search_type : t .Optional [
5775
5781
t .Union [str , t .Literal ["dfs_query_then_fetch" , "query_then_fetch" ]]
5776
5782
] = None ,
5777
- source : t .Optional [str ] = None ,
5783
+ source : t .Optional [t . Union [ str , t . Mapping [ str , t . Any ]] ] = None ,
5778
5784
typed_keys : t .Optional [bool ] = None ,
5779
5785
body : t .Optional [t .Dict [str , t .Any ]] = None ,
5780
5786
) -> ObjectApiResponse [t .Any ]:
@@ -6512,7 +6518,7 @@ async def update_by_query(
6512
6518
wildcard expressions match hidden data streams. It supports comma-separated
6513
6519
values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`,
6514
6520
`hidden`, `none`.
6515
- :param from_: Starting offset (default: 0)
6521
+ :param from_: Skips the specified number of documents.
6516
6522
:param ignore_unavailable: If `false`, the request returns an error if it targets
6517
6523
a missing or closed index.
6518
6524
:param lenient: If `true`, format-based query failures (such as providing text
0 commit comments