We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ad22a commit 0a1da30Copy full SHA for 0a1da30
docarray/index/backends/weaviate.py
@@ -225,9 +225,7 @@ def _create_schema(self) -> None:
225
schema["properties"] = properties
226
schema["class"] = self.index_name
227
228
- # TODO: Use exists() instead of contains() when available
229
- # see https://github.com/weaviate/weaviate-python-client/issues/232
230
- if self._client.schema.contains(schema):
+ if self._client.schema.exists(self.index_name):
231
logging.warning(
232
f"Found index {self.index_name} with schema {schema}. Will reuse existing schema."
233
)
0 commit comments