about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/db.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db.rs b/src/db.rs
index a4f86977c5f4..22438d2b8766 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<SearchPosts> for DbExecutor {