chore(db): Arbitrarily limit search result size
... until pagination is in place.
This commit is contained in:
parent
39d1cd64bc
commit
dae97fdaf5
1 changed files with 1 additions and 0 deletions
|
@ -162,6 +162,7 @@ SELECT post_id,
|
||||||
FROM search_index, search_query
|
FROM search_index, search_query
|
||||||
WHERE document @@ query
|
WHERE document @@ query
|
||||||
ORDER BY ts_rank(document, query) DESC
|
ORDER BY ts_rank(document, query) DESC
|
||||||
|
LIMIT 50
|
||||||
"#;
|
"#;
|
||||||
|
|
||||||
impl Handler<SearchPosts> for DbExecutor {
|
impl Handler<SearchPosts> for DbExecutor {
|
||||||
|
|
Loading…
Reference in a new issue