Add option to search in path for sqlite #402

This commit is contained in:
2023-10-16 21:14:46 -04:00
parent 49a21a5a25
commit f423863acb
7 changed files with 27 additions and 12 deletions

View File

@@ -160,7 +160,8 @@ void database_fts_index(database_t *db) {
CRASH_IF_NOT_SQLITE_OK(sqlite3_exec(
db->db,
"INSERT INTO search(rowid, name, content, title) SELECT id, name, content, title from document_view",
"INSERT INTO search(rowid, name, content, title, path) "
"SELECT id, name, content, title, path from document_view",
NULL, NULL, NULL));
}