fastest and least broken exact search fix

pull/225/head
Aevann 2024-02-28 22:11:51 +02:00
parent f73a1d4e5f
commit 74b06fd60e
1 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ def searchcomments(v):
text = criteria['full_text']
comments = comments.filter(
Comment.body_ts.bool_op("@@")(
func.websearch_to_tsquery("english", text)
func.websearch_to_tsquery("simple", text)
)
)
@ -325,7 +325,7 @@ def searchmessages(v):
text = criteria['full_text']
comments = comments.filter(
Comment.body_ts.bool_op("@@")(
func.websearch_to_tsquery("english", text)
func.websearch_to_tsquery("simple", text)
)
)