Fix too long query exception. (#4729)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu 2025-02-06 10:11:52 +08:00 committed by GitHub
parent 54803c4ef2
commit 6f2c3a3c3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -185,7 +185,7 @@ class FulltextQueryer:
for s in syns
]
)
if syns:
if syns and tms:
tms = f"({tms})^5 OR ({syns})^0.7"
qs.append(tms)