From 4f41c48e0d0ea4dcb16d48f893e4f1cabf27d0a9 Mon Sep 17 00:00:00 2001 From: Giambattista Bloisi Date: Sat, 27 Jul 2024 14:33:21 +0200 Subject: [PATCH] initial stage --- airflow/dags/init_opensearch_templates.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/airflow/dags/init_opensearch_templates.py b/airflow/dags/init_opensearch_templates.py index 986f22b..228afc3 100644 --- a/airflow/dags/init_opensearch_templates.py +++ b/airflow/dags/init_opensearch_templates.py @@ -1002,7 +1002,7 @@ def init_opensearch(os_client: OpenSearch): }) try: - os_client.indices.delete_index_template(name="interoperability") + os_client.indices.get_index_template("interoperability") except NotFoundError: pass @@ -1029,12 +1029,15 @@ def init_opensearch(os_client: OpenSearch): "alternativeIdentifiers": { "type": "object", "properties": { - "properties": { - "type": { - "type": "keyword" - }, - "value": { - "type": "keyword" + "alternativeIdentifier": { + "type": "object", + "properties": { + "type": { + "type": "keyword" + }, + "value": { + "type": "keyword" + } } } }