From 642006c8e23ba0a6762ed634124d21534f7d2345 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Thu, 22 Aug 2024 10:02:04 +0800 Subject: [PATCH] filter out + in es query (#2046) ### What problem does this PR solve? #2028 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] --- rag/nlp/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/nlp/query.py b/rag/nlp/query.py index 40f1d2bf6..ccd1a5af2 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):