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)
- [ ]
This commit is contained in:
Kevin Hu 2024-08-22 10:02:04 +08:00 committed by GitHub
parent 59ba34e167
commit 642006c8e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ class EsQueryer:
@staticmethod @staticmethod
def subSpecialChar(line): def subSpecialChar(line):
return re.sub(r"([:\{\}/\[\]\-\*\"\(\)\|~\^])", r"\\\1", line).strip() return re.sub(r"([:\{\}/\[\]\-\*\"\(\)\|\+~\^])", r"\\\1", line).strip()
@staticmethod @staticmethod
def isChinese(line): def isChinese(line):