diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d9985d9..1d3e1115 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Removed ### Fixed ### Updated APIs +- Updated opensearch-py APIs to reflect [opensearch-api-specification@7452827](https://github.com/opensearch-project/opensearch-api-specification/commit/745282767026703ea27967d2705633c3e2661c97) - Updated opensearch-py APIs to reflect [opensearch-api-specification@f2afd71](https://github.com/opensearch-project/opensearch-api-specification/commit/f2afd7171406c7477fbd644d74087bb0e2948c75) - Updated opensearch-py APIs to reflect [opensearch-api-specification@49cd814](https://github.com/opensearch-project/opensearch-api-specification/commit/49cd8140663f32f7c8b638ddc295683344edba61) ### Security diff --git a/opensearchpy/_async/client/__init__.py b/opensearchpy/_async/client/__init__.py index 05904b27..d740912e 100644 --- a/opensearchpy/_async/client/__init__.py +++ b/opensearchpy/_async/client/__init__.py @@ -2115,6 +2115,7 @@ async def scroll( "analyze_wildcard", "analyzer", "batched_reduce_size", + "cancel_after_time_interval", "ccs_minimize_roundtrips", "default_operator", "df", @@ -2130,6 +2131,7 @@ async def scroll( "include_named_queries_score", "lenient", "max_concurrent_shard_requests", + "phase_took", "pre_filter_shard_size", "preference", "pretty", @@ -2208,6 +2210,9 @@ async def search( used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large. Default is 512. + :arg cancel_after_time_interval: The time after which the search + request will be canceled.Request-level parameter takes precedence over + `cancel_after_time_interval` cluster setting. :arg ccs_minimize_roundtrips: If true, network round-trips between the coordinating node and the remote clusters are minimized when executing cross-cluster search (CCS) requests. Default is True. @@ -2253,6 +2258,8 @@ async def search( concurrently.This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests. Default is 5. + :arg phase_took: Indicates whether to return phase-level `took` + time values in the response. Default is false. :arg pre_filter_shard_size: Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the diff --git a/opensearchpy/_async/client/cat.py b/opensearchpy/_async/client/cat.py index b5b64a5c..6e29839b 100644 --- a/opensearchpy/_async/client/cat.py +++ b/opensearchpy/_async/client/cat.py @@ -407,9 +407,7 @@ async def health( "GET", "/_cat/health", params=params, headers=headers ) - @query_params( - "error_trace", "filter_path", "help", "human", "pretty", "s", "source" - ) + @query_params("error_trace", "filter_path", "human", "pretty", "source") async def help( self, params: Any = None, @@ -423,13 +421,10 @@ async def help( errors. :arg filter_path: Comma-separated list of filters used to reduce the response. - :arg help: Return help information. Default is false. :arg human: Whether to return human readable values for statistics. :arg pretty: Whether to pretty format the returned JSON response. - :arg s: Comma-separated list of column names or column aliases - to sort by. :arg source: The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. """ diff --git a/opensearchpy/client/__init__.py b/opensearchpy/client/__init__.py index eb513048..9ee3b7aa 100644 --- a/opensearchpy/client/__init__.py +++ b/opensearchpy/client/__init__.py @@ -2115,6 +2115,7 @@ def scroll( "analyze_wildcard", "analyzer", "batched_reduce_size", + "cancel_after_time_interval", "ccs_minimize_roundtrips", "default_operator", "df", @@ -2130,6 +2131,7 @@ def scroll( "include_named_queries_score", "lenient", "max_concurrent_shard_requests", + "phase_took", "pre_filter_shard_size", "preference", "pretty", @@ -2208,6 +2210,9 @@ def search( used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large. Default is 512. + :arg cancel_after_time_interval: The time after which the search + request will be canceled.Request-level parameter takes precedence over + `cancel_after_time_interval` cluster setting. :arg ccs_minimize_roundtrips: If true, network round-trips between the coordinating node and the remote clusters are minimized when executing cross-cluster search (CCS) requests. Default is True. @@ -2253,6 +2258,8 @@ def search( concurrently.This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests. Default is 5. + :arg phase_took: Indicates whether to return phase-level `took` + time values in the response. Default is false. :arg pre_filter_shard_size: Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the diff --git a/opensearchpy/client/cat.py b/opensearchpy/client/cat.py index 0962b3b2..eaa155ca 100644 --- a/opensearchpy/client/cat.py +++ b/opensearchpy/client/cat.py @@ -407,9 +407,7 @@ def health( "GET", "/_cat/health", params=params, headers=headers ) - @query_params( - "error_trace", "filter_path", "help", "human", "pretty", "s", "source" - ) + @query_params("error_trace", "filter_path", "human", "pretty", "source") def help( self, params: Any = None, @@ -423,13 +421,10 @@ def help( errors. :arg filter_path: Comma-separated list of filters used to reduce the response. - :arg help: Return help information. Default is false. :arg human: Whether to return human readable values for statistics. :arg pretty: Whether to pretty format the returned JSON response. - :arg s: Comma-separated list of column names or column aliases - to sort by. :arg source: The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. """