Add Supa account and search changes

This commit is contained in:
Fabian Freund
2026-05-22 18:10:22 +02:00
parent 3a19865b2e
commit 51289f1266
374 changed files with 54061 additions and 5013 deletions
@@ -31,7 +31,9 @@ sealed class FtsQueryBuilder {
///a whitespace (group 2)
static final _tokenizePattern = RegExp('"([^"]+)"|([^ ]+)');
///Reserved FTS5 baewords
///Reserved FTS5 barewords. Compared case-insensitively — FTS5 treats them
///as operators regardless of casing, so user-typed lowercase `and`/`or`/
///`not` would otherwise leak through as content trigrams and pollute hits.
static const _reservedBarewords = {'AND', 'OR', 'NOT'};
///Checks if string is an bareword accoring to:
@@ -43,7 +45,7 @@ sealed class FtsQueryBuilder {
);
static bool _isReservedBareword(Bareword input) =>
_reservedBarewords.contains(input.word);
_reservedBarewords.contains(input.word.toUpperCase());
late final _Phrase _tokens;