diff --git a/integrations/weaviate/src/haystack_integrations/document_stores/weaviate/document_store.py b/integrations/weaviate/src/haystack_integrations/document_stores/weaviate/document_store.py index 087a61388..f3cecde30 100644 --- a/integrations/weaviate/src/haystack_integrations/document_stores/weaviate/document_store.py +++ b/integrations/weaviate/src/haystack_integrations/document_stores/weaviate/document_store.py @@ -199,7 +199,7 @@ def _to_data_object(self, document: Document) -> Dict[str, Any]: def _convert_weaviate_v4_object_to_v3_object(self, data: Object) -> Dict[str, Any]: properties = self._collection.config.get().properties properties_with_date_type = [ - p.name for p in properties if p.data_type.name == "DATE" and p.name in data.properties + p.name for p in properties if p.data_type.name == "DATE" and data.properties.get(p.name) ] v4_object = data.__dict__