From 1bf3ad353b61f34dbe375fdcbc9c2496d9696c63 Mon Sep 17 00:00:00 2001 From: Rishi Diwan Date: Tue, 26 Sep 2023 14:01:33 +0530 Subject: [PATCH] Switched the _cluster API body to the AWS supported flat format --- core/search/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/search/service.py b/core/search/service.py index aad21dc2e8..8efb159a51 100644 --- a/core/search/service.py +++ b/core/search/service.py @@ -168,8 +168,9 @@ def __init__(self, client: OpenSearch, base_revision_name: str): self._indexes_created: List[str] = [] # Documents are not allowed to automatically create indexes. + # AWS OpenSearch only accepts the "flat" format self._client.cluster.put_settings( - body={"persistent": {"action": {"auto_create_index": "false"}}} + body={"persistent": {"action.auto_create_index": "false"}} ) def indexes_created(self) -> List[str]: