'-' is considered as 'NOT' operator by FTS, leading to unexpected results. Not sure how to escape it, better to replace it for now
This commit is contained in:
parent
f43d1576e3
commit
08a4629565
|
@ -49,6 +49,7 @@ LibraryQuery::LibraryQuery(const QueryOptions& options)
|
|||
token.remove('(');
|
||||
token.remove(')');
|
||||
token.remove('"');
|
||||
token.replace('-', ' ');
|
||||
|
||||
if (token.contains(':')) {
|
||||
// Only prefix fts if the token is a valid column name.
|
||||
|
|
Loading…
Reference in New Issue