fastest and least broken exact search fix
parent
f73a1d4e5f
commit
74b06fd60e
|
@ -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)
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue