server: add postgres based newsreader search and disable tantivy
This commit is contained in:
@@ -14,6 +14,10 @@ WHERE
|
||||
NOT $2
|
||||
OR NOT is_read
|
||||
)
|
||||
AND (
|
||||
$5 :: text IS NULL
|
||||
OR to_tsvector('english', summary) @@ websearch_to_tsquery('english', $5)
|
||||
)
|
||||
ORDER BY
|
||||
date DESC,
|
||||
title OFFSET $3
|
||||
|
||||
Reference in New Issue
Block a user