mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix broken saved search, closes #1234
This commit is contained in:
parent
a82b8cdb37
commit
70995a7691
@ -58,7 +58,13 @@ async function searchFromNote(req) {
|
|||||||
|
|
||||||
searchResultNoteIds = await searchFromRelation(note, relationName);
|
searchResultNoteIds = await searchFromRelation(note, relationName);
|
||||||
} else {
|
} 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);
|
.map(sr => sr.noteId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user