Skip to content

Commit

Permalink
Switched the _cluster API body to the AWS supported flat format
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiDiwanTT committed Sep 26, 2023
1 parent 382a3c1 commit 1bf3ad3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/search/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 1bf3ad3

Please sign in to comment.