Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
## [Unreleased]
### Added
### Updated APIs
- Updated opensearch-py APIs to reflect [opensearch-api-specification@578a78d](https://github.com/opensearch-project/opensearch-api-specification/commit/578a78dcec746e81da88f81ad442ab1836db7694)
### Changed
### Deprecated
### Removed
Expand Down
92 changes: 52 additions & 40 deletions opensearchpy/_async/client/__init__.py

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions opensearchpy/_async/client/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from ..plugins.query import QueryClient
from ..plugins.replication import ReplicationClient
from ..plugins.rollups import RollupsClient
from ..plugins.search_relevance import SearchRelevanceClient
from ..plugins.sm import SmClient
from ..plugins.sql import SqlClient
from ..plugins.transforms import TransformsClient
Expand All @@ -33,6 +34,7 @@


class PluginsClient(NamespacedClient):
search_relevance: Any
sm: Any
neural: Any
ltr: Any
Expand All @@ -53,6 +55,7 @@ class PluginsClient(NamespacedClient):
def __init__(self, client: Client) -> None:
super().__init__(client)

self.search_relevance = SearchRelevanceClient(client)
self.sm = SmClient(client)
self.neural = NeuralClient(client)
self.ltr = LtrClient(client)
Expand All @@ -78,6 +81,7 @@ def _dynamic_lookup(self, client: Any) -> None:
# Issue : https://github.com/opensearch-project/opensearch-py/issues/90#issuecomment-1003396742

plugins = [
"search_relevance",
"sm",
"neural",
"ltr",
Expand Down
12 changes: 12 additions & 0 deletions opensearchpy/_async/plugins/neural.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class NeuralClient(NamespacedClient):
"filter_path",
"flat_stat_paths",
"human",
"include_all_nodes",
"include_individual_nodes",
"include_info",
"include_metadata",
"pretty",
"source",
Expand Down Expand Up @@ -61,6 +64,15 @@ async def stats(
false.
:arg human: Whether to return human readable values for
statistics. Default is True.
:arg include_all_nodes: When `true` includes aggregated
statistics across all nodes in the `all_nodes` category. When `false`,
excludes the `all_nodes` category from the response. Default is True.
:arg include_individual_nodes: When `true` includes statistics
for individual nodes in the `nodes` category. When `false`, excludes the
`nodes` category from the response. Default is True.
:arg include_info: When `true` includes cluster-wide information
in the `info` category. When `false`, excludes the `info` category from
the response. Default is True.
:arg include_metadata: Whether to return stat metadata instead
of the raw stat value, includes additional information about the stat.
These can include things like type hints, time since last stats being
Expand Down
Loading
Loading