From dae97fdaf5a9541895d9719f1f58902cca846e2b Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 22:05:35 +0200 Subject: [PATCH] chore(db): Arbitrarily limit search result size ... until pagination is in place. --- src/db.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db.rs b/src/db.rs index a4f86977c..22438d2b8 100644 --- a/src/db.rs +++ b/src/db.rs @@ -162,6 +162,7 @@ SELECT post_id, FROM search_index, search_query WHERE document @@ query ORDER BY ts_rank(document, query) DESC + LIMIT 50 "#; impl Handler for DbExecutor {