mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 00:29:28 -05:00
Tweak search query
This commit is contained in:
parent
02a6108235
commit
d5477c7afd
@ -284,7 +284,7 @@ class UserDirectoryStore(SQLBaseStore):
|
|||||||
INNER JOIN user_directory USING (user_id)
|
INNER JOIN user_directory USING (user_id)
|
||||||
WHERE vector @@ to_tsquery('english', ?)
|
WHERE vector @@ to_tsquery('english', ?)
|
||||||
ORDER BY
|
ORDER BY
|
||||||
ts_rank_cd(vector, to_tsquery('english', ?)) DESC,
|
ts_rank_cd(vector, to_tsquery('english', ?), 1) DESC,
|
||||||
display_name IS NULL,
|
display_name IS NULL,
|
||||||
avatar_url IS NULL
|
avatar_url IS NULL
|
||||||
LIMIT ?
|
LIMIT ?
|
||||||
|
Loading…
Reference in New Issue
Block a user