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 0914f7ac2..6f7a6c96e 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 @@ -237,7 +237,7 @@ def _search_documents(self, **kwargs) -> List[Document]: def filter_documents(self, filters: Optional[Dict[str, Any]] = None) -> List[Document]: if filters and "operator" not in filters and "conditions" not in filters: - msg = "Legacy filters support has been removed. See https://docs.haystack.deepset.ai/docs/metadata-filtering for more details." + msg = "Invalid filter syntax. See https://docs.haystack.deepset.ai/docs/metadata-filtering for details." raise ValueError(msg) if filters: