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):