Fix prefix searches - 'Maid' matches 'Iron Maiden'. SQLite FTS does not

seem to support suffix searches
#726
This commit is contained in:
Craig Drummond
2015-08-29 17:15:29 +01:00
committed by Craig Drummond
parent fb6d4e0bee
commit 21b1ab89f7

View File

@@ -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;