From 52b0a1a59187c1b0001c2c07351438554e0788b1 Mon Sep 17 00:00:00 2001 From: David Basoco Date: Thu, 4 Jul 2024 15:18:51 +0200 Subject: [PATCH] Fix not equal astra filter operator (#868) --- .../src/haystack_integrations/document_stores/astra/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/astra/src/haystack_integrations/document_stores/astra/filters.py b/integrations/astra/src/haystack_integrations/document_stores/astra/filters.py index 44cac25e6..e313ae13a 100644 --- a/integrations/astra/src/haystack_integrations/document_stores/astra/filters.py +++ b/integrations/astra/src/haystack_integrations/document_stores/astra/filters.py @@ -52,7 +52,7 @@ def _convert_filters(filters: Optional[Dict[str, Any]] = None) -> Optional[Dict[ # TODO consider other operators, or filters that are not with the same structure as field operator value OPERATORS = { "==": "$eq", - "!=": "$neq", + "!=": "$ne", ">": "$gt", ">=": "$gte", "<": "$lt",