From 35853b60dc7649b26f6ac6fb0d03a6bbb61b00f1 Mon Sep 17 00:00:00 2001 From: Vladimir Blagojevic Date: Mon, 9 Sep 2024 14:36:12 +0200 Subject: [PATCH] Small fix --- .../document_stores/opensearch/document_store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/opensearch/src/haystack_integrations/document_stores/opensearch/document_store.py b/integrations/opensearch/src/haystack_integrations/document_stores/opensearch/document_store.py index b043695c6..91cd1ac8b 100644 --- a/integrations/opensearch/src/haystack_integrations/document_stores/opensearch/document_store.py +++ b/integrations/opensearch/src/haystack_integrations/document_stores/opensearch/document_store.py @@ -134,7 +134,7 @@ def client(self) -> OpenSearch: **self._kwargs, ) - if self.client.indices.exists(index=self._index): # type:ignore + if self._client.indices.exists(index=self._index): # type:ignore logger.debug( "The index '%s' already exists. The `embedding_dim`, `method`, `mappings`, and " "`settings` values will be ignored.", @@ -143,7 +143,7 @@ def client(self) -> OpenSearch: elif self._create_index: # Create the index if it doesn't exist body = {"mappings": self._mappings, "settings": self._settings} - self.client.indices.create(index=self._index, body=body) # type:ignore + self._client.indices.create(index=self._index, body=body) # type:ignore return self._client def create_index(