Fix library search queries on fts columns (#6219)
This fixes a regression introduced in 8818ba340a
.
This commit is contained in:
parent
289ea31f8c
commit
587e72b8c3
|
@ -80,7 +80,7 @@ LibraryQuery::LibraryQuery(const QueryOptions& options)
|
||||||
if (Song::kFtsColumns.contains(
|
if (Song::kFtsColumns.contains(
|
||||||
"fts" + columntoken,
|
"fts" + columntoken,
|
||||||
Qt::CaseInsensitive)) { // Is it a FTS column?
|
Qt::CaseInsensitive)) { // Is it a FTS column?
|
||||||
query += "fts" + columntoken + subtoken + "* ";
|
query += "fts" + columntoken + ":" + subtoken + "* ";
|
||||||
} else if (Song::kColumns.contains(columntoken, Qt::CaseInsensitive)) {
|
} else if (Song::kColumns.contains(columntoken, Qt::CaseInsensitive)) {
|
||||||
// We need to extract the operator and the value from the subtoken
|
// We need to extract the operator and the value from the subtoken
|
||||||
QRegExp operatorRe("^(" + kNumericCompOperators.join("|") + ")(.*)");
|
QRegExp operatorRe("^(" + kNumericCompOperators.join("|") + ")(.*)");
|
||||||
|
|
Loading…
Reference in New Issue