Fix prefix searches - 'Maid' matches 'Iron Maiden'. SQLite FTS does not
seem to support suffix searches #726
This commit is contained in:
committed by
Craig Drummond
parent
fb6d4e0bee
commit
21b1ab89f7
@@ -900,10 +900,11 @@ bool LibraryDb::setFilter(const QString &f)
|
||||
str.remove(':');
|
||||
str.remove('*');
|
||||
if (str.length()>0) {
|
||||
tokens.append(QLatin1Char('"')+str+"\"* ");
|
||||
tokens.append(str+QLatin1String("* "));
|
||||
}
|
||||
}
|
||||
newFilter=tokens.join(" ");
|
||||
DBUG << newFilter;
|
||||
}
|
||||
if (newFilter!=filter) {
|
||||
filter=newFilter;
|
||||
|
||||
Reference in New Issue
Block a user