mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-25 22:29:25 -05:00
initial work on note fulltext (schema changes, updating...)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
CREATE VIRTUAL TABLE note_fulltext USING fts5(noteId UNINDEXED, title, titleHash UNINDEXED, content, contentHash UNINDEXED);
|
||||
@@ -0,0 +1,10 @@
|
||||
const repository = require('../../src/services/repository');
|
||||
const noteFulltextService = require('../../src/services/note_fulltext');
|
||||
|
||||
module.exports = async () => {
|
||||
const notes = await repository.getEntities('SELECT * FROM notes WHERE isDeleted = 0 AND isProtected = 0');
|
||||
|
||||
for (const note of notes) {
|
||||
await noteFulltextService.updateNoteFulltext(note);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user