Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

filter out + in es query (#2046)

Kevin Hu642006c8e23b
diff --git a/rag/nlp/query.py b/rag/nlp/query.py
index 40f1d2bf62..ccd1a5af2c 100644
--- a/rag/nlp/query.py
+++ b/rag/nlp/query.py
@@ -32,7 +32,7 @@ class EsQueryer:
@staticmethod
def subSpecialChar(line):
- return re.sub(r"([:\{\}/\[\]\-\*\"\(\)\|~\^])", r"\\\1", line).strip()
+ return re.sub(r"([:\{\}/\[\]\-\*\"\(\)\|\+~\^])", r"\\\1", line).strip()
@staticmethod
def isChinese(line):