chore(db): Arbitrarily limit search result size

... until pagination is in place.
This commit is contained in:
Vincent Ambo 2018-04-14 22:05:35 +02:00 committed by Vincent Ambo
parent 39d1cd64bc
commit dae97fdaf5

View file

@ -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 {