From 597ce8c9cfddd293e9e3f0d798a403c32fee4f3e Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 23 May 2025 17:04:20 +0200 Subject: [PATCH] Sanitize out "-" and remove the arbitrary 100 query limit --- lib/db.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.dart b/lib/db.dart index a6b12fb..fde4972 100644 --- a/lib/db.dart +++ b/lib/db.dart @@ -390,6 +390,7 @@ END; return []; } + ftsQuery = ftsQuery.replaceAll('-', ' '); debugPrint('FTS query: "$ftsQuery"'); // Execute the FTS query @@ -401,7 +402,6 @@ END; JOIN notes n ON notes_fts.rowid = n.id WHERE notes_fts MATCH ? ORDER BY rank - LIMIT 100 ''', [ftsQuery], );