mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
search now supports searching / ordering by note size
This commit is contained in:
@@ -15,7 +15,7 @@ async function search(note) {
|
||||
|
||||
if (searchScript) {
|
||||
searchResultNoteIds = await searchFromRelation(note, 'searchScript');
|
||||
} else if (searchString) {
|
||||
} else {
|
||||
const searchContext = new SearchContext({
|
||||
fastSearch: note.hasLabel('fastSearch'),
|
||||
ancestorNoteId: note.getRelationValue('ancestor'),
|
||||
@@ -27,8 +27,6 @@ async function search(note) {
|
||||
|
||||
searchResultNoteIds = searchService.findNotesWithQuery(searchString, searchContext)
|
||||
.map(sr => sr.noteId);
|
||||
} else {
|
||||
searchResultNoteIds = [];
|
||||
}
|
||||
|
||||
// we won't return search note's own noteId
|
||||
|
||||
Reference in New Issue
Block a user