@@ -1766,18 +1766,7 @@ async def field_caps(
1766
1766
include_unmapped : t .Optional [bool ] = None ,
1767
1767
index_filter : t .Optional [t .Mapping [str , t .Any ]] = None ,
1768
1768
pretty : t .Optional [bool ] = None ,
1769
- runtime_mappings : t .Optional [
1770
- t .Mapping [
1771
- str ,
1772
- t .Union [
1773
- t .Mapping [str , t .Any ],
1774
- t .Union [
1775
- t .List [t .Mapping [str , t .Any ]],
1776
- t .Tuple [t .Mapping [str , t .Any ], ...],
1777
- ],
1778
- ],
1779
- ]
1780
- ] = None ,
1769
+ runtime_mappings : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
1781
1770
types : t .Optional [t .Union [t .List [str ], t .Tuple [str , ...]]] = None ,
1782
1771
) -> ObjectApiResponse [t .Any ]:
1783
1772
"""
@@ -2075,7 +2064,13 @@ async def get_source(
2075
2064
* ,
2076
2065
index : str ,
2077
2066
id : str ,
2067
+ error_trace : t .Optional [bool ] = None ,
2068
+ filter_path : t .Optional [
2069
+ t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
2070
+ ] = None ,
2071
+ human : t .Optional [bool ] = None ,
2078
2072
preference : t .Optional [str ] = None ,
2073
+ pretty : t .Optional [bool ] = None ,
2079
2074
realtime : t .Optional [bool ] = None ,
2080
2075
refresh : t .Optional [bool ] = None ,
2081
2076
routing : t .Optional [str ] = None ,
@@ -2127,8 +2122,16 @@ async def get_source(
2127
2122
raise ValueError ("Empty value passed for parameter 'id'" )
2128
2123
__path = f"/{ _quote (index )} /_source/{ _quote (id )} "
2129
2124
__query : t .Dict [str , t .Any ] = {}
2125
+ if error_trace is not None :
2126
+ __query ["error_trace" ] = error_trace
2127
+ if filter_path is not None :
2128
+ __query ["filter_path" ] = filter_path
2129
+ if human is not None :
2130
+ __query ["human" ] = human
2130
2131
if preference is not None :
2131
2132
__query ["preference" ] = preference
2133
+ if pretty is not None :
2134
+ __query ["pretty" ] = pretty
2132
2135
if realtime is not None :
2133
2136
__query ["realtime" ] = realtime
2134
2137
if refresh is not None :
@@ -3395,6 +3398,7 @@ async def search(
3395
3398
]
3396
3399
] = None ,
3397
3400
explain : t .Optional [bool ] = None ,
3401
+ ext : t .Optional [t .Mapping [str , t .Any ]] = None ,
3398
3402
fields : t .Optional [
3399
3403
t .Union [t .List [t .Mapping [str , t .Any ]], t .Tuple [t .Mapping [str , t .Any ], ...]]
3400
3404
] = None ,
@@ -3433,18 +3437,7 @@ async def search(
3433
3437
] = None ,
3434
3438
rest_total_hits_as_int : t .Optional [bool ] = None ,
3435
3439
routing : t .Optional [str ] = None ,
3436
- runtime_mappings : t .Optional [
3437
- t .Mapping [
3438
- str ,
3439
- t .Union [
3440
- t .Mapping [str , t .Any ],
3441
- t .Union [
3442
- t .List [t .Mapping [str , t .Any ]],
3443
- t .Tuple [t .Mapping [str , t .Any ], ...],
3444
- ],
3445
- ],
3446
- ]
3447
- ] = None ,
3440
+ runtime_mappings : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
3448
3441
script_fields : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
3449
3442
scroll : t .Optional [t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]] = None ,
3450
3443
search_after : t .Optional [
@@ -3528,6 +3521,7 @@ async def search(
3528
3521
that are open, closed or both.
3529
3522
:param explain: If true, returns detailed information about score computation
3530
3523
as part of a hit.
3524
+ :param ext: Configuration of search extensions defined by Elasticsearch plugins.
3531
3525
:param fields: Array of wildcard (*) patterns. The request returns values for
3532
3526
field names matching these patterns in the hits.fields property of the response.
3533
3527
:param from_: Starting document offset. By default, you cannot page through more
@@ -3668,6 +3662,8 @@ async def search(
3668
3662
__query ["expand_wildcards" ] = expand_wildcards
3669
3663
if explain is not None :
3670
3664
__body ["explain" ] = explain
3665
+ if ext is not None :
3666
+ __body ["ext" ] = ext
3671
3667
if fields is not None :
3672
3668
__body ["fields" ] = fields
3673
3669
if filter_path is not None :
@@ -3805,18 +3801,7 @@ async def search_mvt(
3805
3801
human : t .Optional [bool ] = None ,
3806
3802
pretty : t .Optional [bool ] = None ,
3807
3803
query : t .Optional [t .Mapping [str , t .Any ]] = None ,
3808
- runtime_mappings : t .Optional [
3809
- t .Mapping [
3810
- str ,
3811
- t .Union [
3812
- t .Mapping [str , t .Any ],
3813
- t .Union [
3814
- t .List [t .Mapping [str , t .Any ]],
3815
- t .Tuple [t .Mapping [str , t .Any ], ...],
3816
- ],
3817
- ],
3818
- ]
3819
- ] = None ,
3804
+ runtime_mappings : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
3820
3805
size : t .Optional [int ] = None ,
3821
3806
sort : t .Optional [
3822
3807
t .Union [
0 commit comments