fix broken saved search, closes #1234

This commit is contained in:
zadam 2020-09-14 20:00:36 +02:00
parent a82b8cdb37
commit 70995a7691

View file

@ -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);
}
}