airflow.providers.opensearch.hooks.opensearch¶
Classes¶
Typed arguments to the open search client. |
|
Provide a thin wrapper around the OpenSearch client. |
Module Contents¶
- class airflow.providers.opensearch.hooks.opensearch.OpenSearchClientArguments[source]¶
Bases:
TypedDict
Typed arguments to the open search client.
- class airflow.providers.opensearch.hooks.opensearch.OpenSearchHook(open_search_conn_id, log_query, open_search_conn_class=RequestsHttpConnection, **kwargs)[source]¶
Bases:
airflow.sdk.BaseHook
Provide a thin wrapper around the OpenSearch client.
- Parameters:
- property client: opensearchpy.OpenSearch[source]¶
This function is intended for Operators that forward high level client objects.
- search(query, index_name, **kwargs)[source]¶
Run a search query against the connected OpenSearch cluster.