mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 23:13:43 +08:00
fix broken saved search, closes #1234
This commit is contained in:
parent
a82b8cdb37
commit
70995a7691
1 changed files with 7 additions and 1 deletions
|
@ -58,7 +58,13 @@ async function searchFromNote(req) {
|
|||
|
||||
searchResultNoteIds = await searchFromRelation(note, relationName);
|
||||
} else {
|
||||
searchResultNoteIds = searchService.searchNotes(json.searchString)
|
||||
const searchContext = new SearchContext({
|
||||
includeNoteContent: true,
|
||||
excludeArchived: true,
|
||||
fuzzyAttributeSearch: false
|
||||
});
|
||||
|
||||
searchResultNoteIds = searchService.findNotesWithQuery(json.searchString, searchContext)
|
||||
.map(sr => sr.noteId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue