diff --git a/airflow/providers/opensearch/hooks/opensearch.py b/airflow/providers/opensearch/hooks/opensearch.py index f3cd5b33a50fa..5338a52ab5862 100644 --- a/airflow/providers/opensearch/hooks/opensearch.py +++ b/airflow/providers/opensearch/hooks/opensearch.py @@ -31,8 +31,8 @@ class OpenSearchHook(BaseHook): """ Provide a thin wrapper around the OpenSearch client. - :param open_search_conn_id: Connection to use with Open Search - :param log_query: Whether to log the query used for Open Search + :param open_search_conn_id: Connection to use with OpenSearch + :param log_query: Whether to log the query used for OpenSearch """ conn_name_attr = "opensearch_conn_id" @@ -107,11 +107,11 @@ def delete(self, index_name: str, query: dict | None = None, doc_id: int | None @staticmethod def get_ui_field_behaviour() -> dict[str, Any]: - """Returns custom UI field behaviour for Open Search Connection.""" + """Returns custom UI field behaviour for OpenSearch Connection.""" return { "hidden_fields": ["schema"], "relabeling": { - "extra": "Open Search Configuration", + "extra": "OpenSearch Configuration", }, "placeholders": { "extra": json.dumps( diff --git a/airflow/providers/opensearch/operators/opensearch.py b/airflow/providers/opensearch/operators/opensearch.py index 97073fff76007..f362271ae31da 100644 --- a/airflow/providers/opensearch/operators/opensearch.py +++ b/airflow/providers/opensearch/operators/opensearch.py @@ -38,7 +38,7 @@ class OpenSearchQueryOperator(BaseOperator): For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:OpenSearchQueryOperator` - :param query: A Dictionary Open Search DSL query. + :param query: A Dictionary OpenSearch DSL query. :param search_object: A Search object from opensearch-dsl. :param index_name: The name of the index to search for documents. :param opensearch_conn_id: opensearch connection to use @@ -97,7 +97,7 @@ def execute(self, context: Context) -> Any: class OpenSearchCreateIndexOperator(BaseOperator): """ - Create a new index on an Open Search cluster with a given index name. + Create a new index on an OpenSearch cluster with a given index name. .. seealso:: For more information on how to use this operator, take a look at the guide: @@ -127,7 +127,7 @@ def hook(self) -> OpenSearchHook: return OpenSearchHook(open_search_conn_id=self.opensearch_conn_id, log_query=False) def execute(self, context: Context) -> Any: - """Creates an index on an Open Search cluster.""" + """Creates an index on an OpenSearch cluster.""" try: self.hook.client.indices.create(index=self.index_name, body=self.index_body) except OpenSearchException as e: diff --git a/airflow/providers/opensearch/provider.yaml b/airflow/providers/opensearch/provider.yaml index a0bddd79d5103..f06da750e13fe 100644 --- a/airflow/providers/opensearch/provider.yaml +++ b/airflow/providers/opensearch/provider.yaml @@ -17,9 +17,9 @@ --- package-name: apache-airflow-providers-opensearch -name: Opensearch +name: OpenSearch description: | - `Opensearch `__ + `OpenSearch `__ suspended: false source-date-epoch: 1700148078 @@ -31,7 +31,7 @@ dependencies: - opensearch-py>=2.2.0 integrations: - - integration-name: Opensearch + - integration-name: OpenSearch external-doc-url: https://opensearch.org/ how-to-guide: - /docs/apache-airflow-providers-opensearch/operators/opensearch.rst @@ -39,12 +39,12 @@ integrations: tags: [software] hooks: - - integration-name: Opensearch + - integration-name: OpenSearch python-modules: - airflow.providers.opensearch.hooks.opensearch operators: - - integration-name: Opensearch + - integration-name: OpenSearch python-modules: - airflow.providers.opensearch.operators.opensearch diff --git a/docs/apache-airflow-providers-opensearch/commits.rst b/docs/apache-airflow-providers-opensearch/commits.rst index e08f4d9e6820c..a80865c7eef20 100644 --- a/docs/apache-airflow-providers-opensearch/commits.rst +++ b/docs/apache-airflow-providers-opensearch/commits.rst @@ -20,7 +20,7 @@ Package apache-airflow-providers-opensearch ------------------------------------------------------ -`Opensearch `__ +`OpenSearch `__ This is detailed commit list of changes for versions provider package: ``opensearch``. diff --git a/docs/apache-airflow-providers-opensearch/connections/opensearch.rst b/docs/apache-airflow-providers-opensearch/connections/opensearch.rst index 781f5da502cd4..a9fb6f24b1e18 100644 --- a/docs/apache-airflow-providers-opensearch/connections/opensearch.rst +++ b/docs/apache-airflow-providers-opensearch/connections/opensearch.rst @@ -24,7 +24,7 @@ The OpenSearch connection provides credentials for an OpenSearch instance. Configuring the Connection -------------------------- Host (required) - The host address of the Open Search instance. + The host address of the OpenSearch instance. Login (required) The login user. Password (required) diff --git a/docs/apache-airflow-providers-opensearch/operators/index.rst b/docs/apache-airflow-providers-opensearch/operators/index.rst index bc0f38e1108f6..2c964ec90495f 100644 --- a/docs/apache-airflow-providers-opensearch/operators/index.rst +++ b/docs/apache-airflow-providers-opensearch/operators/index.rst @@ -18,7 +18,7 @@ -Open Search Operators +OpenSearch Operators ====================== diff --git a/docs/apache-airflow-providers-opensearch/operators/opensearch.rst b/docs/apache-airflow-providers-opensearch/operators/opensearch.rst index 77bb8a270e84f..cd39a59566fbb 100644 --- a/docs/apache-airflow-providers-opensearch/operators/opensearch.rst +++ b/docs/apache-airflow-providers-opensearch/operators/opensearch.rst @@ -27,11 +27,11 @@ Operators .. _howto/operator:OpenSearchCreateIndexOperator: -Create an Index in Open Search -============================== +Create an Index in OpenSearch +============================= Use :class:`~airflow.providers.opensearch.operators.opensearch.OpenSearchCreateIndexOperator` -to create a new index in an Open Search domain. +to create a new index in an OpenSearch domain. @@ -45,10 +45,10 @@ to create a new index in an Open Search domain. .. _howto/operator:OpenSearchAddDocumentOperator: Add a Document to an Index on OpenSearch -========================================= +======================================== Use :class:`~airflow.providers.opensearch.operators.opensearch.OpenSearchAddDocumentOperator` -to add single documents to an Open Search Index +to add single documents to an OpenSearch Index .. exampleinclude:: /../../tests/system/providers/opensearch/example_opensearch.py :language: python @@ -59,11 +59,11 @@ to add single documents to an Open Search Index .. _howto/operator:OpenSearchQueryOperator: -Run a query against an Open Search Index -========================================= +Run a query against an OpenSearch Index +======================================= Use :class:`~airflow.providers.opensearch.operators.opensearch.OpenSearchQueryOperator` -to run a query against an Open Search index. +to run a query against an OpenSearch index. .. exampleinclude:: /../../tests/system/providers/opensearch/example_opensearch.py :language: python