Browse Source

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)
- [ ]
tags/v0.10.0
Kevin Hu 1 year ago
parent
commit
642006c8e2
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      rag/nlp/query.py

+ 1
- 1
rag/nlp/query.py View File

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

Loading…
Cancel
Save