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:
parent
54803c4ef2
commit
6f2c3a3c3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue