Sanitize out "-" and remove the arbitrary 100 query limit

This commit is contained in:
2025-05-23 17:04:20 +02:00
parent c2202bdfef
commit 597ce8c9cf

View File

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