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], );