@@ -1766,18 +1766,7 @@ async def field_caps(
17661766 include_unmapped : t .Optional [bool ] = None ,
17671767 index_filter : t .Optional [t .Mapping [str , t .Any ]] = None ,
17681768 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 ,
17811770 types : t .Optional [t .Union [t .List [str ], t .Tuple [str , ...]]] = None ,
17821771 ) -> ObjectApiResponse [t .Any ]:
17831772 """
@@ -2075,7 +2064,13 @@ async def get_source(
20752064 * ,
20762065 index : str ,
20772066 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 ,
20782072 preference : t .Optional [str ] = None ,
2073+ pretty : t .Optional [bool ] = None ,
20792074 realtime : t .Optional [bool ] = None ,
20802075 refresh : t .Optional [bool ] = None ,
20812076 routing : t .Optional [str ] = None ,
@@ -2127,8 +2122,16 @@ async def get_source(
21272122 raise ValueError ("Empty value passed for parameter 'id'" )
21282123 __path = f"/{ _quote (index )} /_source/{ _quote (id )} "
21292124 __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
21302131 if preference is not None :
21312132 __query ["preference" ] = preference
2133+ if pretty is not None :
2134+ __query ["pretty" ] = pretty
21322135 if realtime is not None :
21332136 __query ["realtime" ] = realtime
21342137 if refresh is not None :
@@ -3395,6 +3398,7 @@ async def search(
33953398 ]
33963399 ] = None ,
33973400 explain : t .Optional [bool ] = None ,
3401+ ext : t .Optional [t .Mapping [str , t .Any ]] = None ,
33983402 fields : t .Optional [
33993403 t .Union [t .List [t .Mapping [str , t .Any ]], t .Tuple [t .Mapping [str , t .Any ], ...]]
34003404 ] = None ,
@@ -3433,18 +3437,7 @@ async def search(
34333437 ] = None ,
34343438 rest_total_hits_as_int : t .Optional [bool ] = None ,
34353439 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 ,
34483441 script_fields : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
34493442 scroll : t .Optional [t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]] = None ,
34503443 search_after : t .Optional [
@@ -3528,6 +3521,7 @@ async def search(
35283521 that are open, closed or both.
35293522 :param explain: If true, returns detailed information about score computation
35303523 as part of a hit.
3524+ :param ext: Configuration of search extensions defined by Elasticsearch plugins.
35313525 :param fields: Array of wildcard (*) patterns. The request returns values for
35323526 field names matching these patterns in the hits.fields property of the response.
35333527 :param from_: Starting document offset. By default, you cannot page through more
@@ -3668,6 +3662,8 @@ async def search(
36683662 __query ["expand_wildcards" ] = expand_wildcards
36693663 if explain is not None :
36703664 __body ["explain" ] = explain
3665+ if ext is not None :
3666+ __body ["ext" ] = ext
36713667 if fields is not None :
36723668 __body ["fields" ] = fields
36733669 if filter_path is not None :
@@ -3805,18 +3801,7 @@ async def search_mvt(
38053801 human : t .Optional [bool ] = None ,
38063802 pretty : t .Optional [bool ] = None ,
38073803 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 ,
38203805 size : t .Optional [int ] = None ,
38213806 sort : t .Optional [
38223807 t .Union [
0 commit comments