diff --git a/docs/sphinx/api.rst b/docs/sphinx/api.rst index 60fc55072..72977c161 100644 --- a/docs/sphinx/api.rst +++ b/docs/sphinx/api.rst @@ -150,6 +150,12 @@ Rollup Indices .. autoclass:: RollupClient :members: +Search Applications +------------------- + +.. autoclass:: SearchApplicationClient + :members: + Searchable Snapshots -------------------- diff --git a/elasticsearch/client.py b/elasticsearch/client.py index a140c9b4f..06c49ba7c 100644 --- a/elasticsearch/client.py +++ b/elasticsearch/client.py @@ -45,6 +45,9 @@ from ._sync.client.monitoring import MonitoringClient as MonitoringClient # noqa: F401 from ._sync.client.nodes import NodesClient as NodesClient # noqa: F401 from ._sync.client.rollup import RollupClient as RollupClient # noqa: F401 +from ._sync.client.search_application import ( # noqa: F401 + SearchApplicationClient as SearchApplicationClient, +) from ._sync.client.searchable_snapshots import ( # noqa: F401 SearchableSnapshotsClient as SearchableSnapshotsClient, ) @@ -94,6 +97,7 @@ "MonitoringClient", "NodesClient", "RollupClient", + "SearchApplicationClient", "SearchableSnapshotsClient", "SecurityClient", "ShutdownClient", diff --git a/utils/run-black.py b/utils/run-black.py index 76c62a1a7..36c57d48d 100644 --- a/utils/run-black.py +++ b/utils/run-black.py @@ -30,9 +30,9 @@ def is_hot() -> bool: map( int, re.findall( - r"\s\+([0-9]{2})\.[0-9]", + r"_input\:\s([0-9]{2})\.[0-9]", subprocess.check_output( - "sensors", + "sensors -u", shell=True, stderr=subprocess.STDOUT, ).decode("utf-8"),