script api search ignores hoisting by default

This commit is contained in:
zadam
2021-04-06 21:56:46 +02:00
parent 2d0cb5b66e
commit c43b20ec2b
8 changed files with 28 additions and 22 deletions

View File

@@ -225,7 +225,8 @@ function search(req) {
const searchContext = new SearchContext({
fastSearch: false,
includeArchivedNotes: true,
fuzzyAttributeSearch: false
fuzzyAttributeSearch: false,
ignoreHoistedNote: true
});
return searchService.findNotesWithQuery(searchString, searchContext)