fix(opensearch): update logger warning (#2999)

This commit is contained in:
Akarsha Sehwag
2025-06-20 10:58:51 -04:00
committed by GitHub
parent 2754f45387
commit 1fa0f0a157

View File

@@ -83,8 +83,8 @@ class OpenSearchDB(VectorStoreBase):
},
}
logger.warning(f"Creating index {name}, it might take 1-2 minutes...")
if not self.client.indices.exists(index=name):
logger.warning(f"Creating index {name}, it might take 1-2 minutes...")
self.client.indices.create(index=name, body=index_settings)
# Wait for index to be ready