diff --git a/elasticsearch/_async/client/search_application.py b/elasticsearch/_async/client/search_application.py index ae515a9da..83a6bcc0e 100644 --- a/elasticsearch/_async/client/search_application.py +++ b/elasticsearch/_async/client/search_application.py @@ -349,6 +349,7 @@ async def search( human: t.Optional[bool] = None, params: t.Optional[t.Mapping[str, t.Any]] = None, pretty: t.Optional[bool] = None, + typed_keys: t.Optional[bool] = None, body: t.Optional[t.Dict[str, t.Any]] = None, ) -> ObjectApiResponse[t.Any]: """ @@ -359,6 +360,8 @@ async def search( :param name: The name of the search application to be searched. :param params: Query parameters specific to this request, which will override any defaults specified in the template. + :param typed_keys: Determines whether aggregation names are prefixed by their + respective types in the response. """ if name in SKIP_IN_PATH: raise ValueError("Empty value passed for parameter 'name'") @@ -374,6 +377,8 @@ async def search( __query["human"] = human if pretty is not None: __query["pretty"] = pretty + if typed_keys is not None: + __query["typed_keys"] = typed_keys if not __body: if params is not None: __body["params"] = params diff --git a/elasticsearch/_sync/client/search_application.py b/elasticsearch/_sync/client/search_application.py index cd5c93eb3..9a84a9301 100644 --- a/elasticsearch/_sync/client/search_application.py +++ b/elasticsearch/_sync/client/search_application.py @@ -349,6 +349,7 @@ def search( human: t.Optional[bool] = None, params: t.Optional[t.Mapping[str, t.Any]] = None, pretty: t.Optional[bool] = None, + typed_keys: t.Optional[bool] = None, body: t.Optional[t.Dict[str, t.Any]] = None, ) -> ObjectApiResponse[t.Any]: """ @@ -359,6 +360,8 @@ def search( :param name: The name of the search application to be searched. :param params: Query parameters specific to this request, which will override any defaults specified in the template. + :param typed_keys: Determines whether aggregation names are prefixed by their + respective types in the response. """ if name in SKIP_IN_PATH: raise ValueError("Empty value passed for parameter 'name'") @@ -374,6 +377,8 @@ def search( __query["human"] = human if pretty is not None: __query["pretty"] = pretty + if typed_keys is not None: + __query["typed_keys"] = typed_keys if not __body: if params is not None: __body["params"] = params