Kevin Hu
commited on
Commit
·
cff0ce8
1
Parent(s):
cd22cf3
filter out + in es query (#2046)
Browse files### What problem does this PR solve?
#2028
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ]
- rag/nlp/query.py +1 -1
rag/nlp/query.py
CHANGED
@@ -32,7 +32,7 @@ class EsQueryer:
|
|
32 |
|
33 |
@staticmethod
|
34 |
def subSpecialChar(line):
|
35 |
-
return re.sub(r"([:\{\}/\[\]\-\*\"\(\)
|
36 |
|
37 |
@staticmethod
|
38 |
def isChinese(line):
|
|
|
32 |
|
33 |
@staticmethod
|
34 |
def subSpecialChar(line):
|
35 |
+
return re.sub(r"([:\{\}/\[\]\-\*\"\(\)\|\+~\^])", r"\\\1", line).strip()
|
36 |
|
37 |
@staticmethod
|
38 |
def isChinese(line):
|