Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Sep 9, 2024
1 parent 098d46e commit 35853b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand All @@ -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(
Expand Down

0 comments on commit 35853b6

Please sign in to comment.