diff --git a/script.js b/script.js index db99901..e017edf 100644 --- a/script.js +++ b/script.js @@ -881,7 +881,7 @@ JOIN tracks t ON t.id = f.rowid JOIN artists a ON a.id = t.artist_id LEFT JOIN albums al ON al.id = t.album_id - WHERE f MATCH ? + WHERE fts_tracks MATCH ? ORDER BY rank LIMIT ? OFFSET ? `, @@ -891,7 +891,7 @@ JOIN tracks t ON t.id = f.rowid JOIN artists a ON a.id = t.artist_id LEFT JOIN albums al ON al.id = t.album_id - WHERE f MATCH ? + WHERE fts_tracks MATCH ? ORDER BY a.name COLLATE NOCASE, t.title COLLATE NOCASE, COALESCE(t.year, 0) LIMIT ? OFFSET ? `, @@ -902,7 +902,7 @@ JOIN tracks t ON t.id = f.rowid JOIN artists a ON a.id = t.artist_id LEFT JOIN albums al ON al.id = t.album_id - WHERE f MATCH ? + WHERE fts_tracks MATCH ? `; function enableSearch() { @@ -1105,7 +1105,7 @@ FROM fts_tracks f JOIN tracks t ON t.id = f.rowid JOIN artists a ON a.id = t.artist_id - WHERE f MATCH ? + WHERE fts_tracks MATCH ? GROUP BY a.id ) AS matches `; @@ -1114,7 +1114,7 @@ FROM fts_tracks f JOIN tracks t ON t.id = f.rowid JOIN artists a ON a.id = t.artist_id - WHERE f MATCH ? + WHERE fts_tracks MATCH ? GROUP BY a.id ORDER BY a.name COLLATE NOCASE LIMIT ? OFFSET ?