Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
add back comment
perf3cta97a0660ea26
diff --git a/src/services/search/search_result.ts b/src/services/search/search_result.tsindex c1da6b7df3..a9190674b8 100644--- a/src/services/search/search_result.ts+++ b/src/services/search/search_result.ts@@ -48,6 +48,7 @@ class SearchResult {this.score += 120;}+ // notes with matches on its own note title as opposed to ancestors or descendantsconst beforeTokenScore = this.score;// Add scores for partial matches with lower weightsthis.addScoreForStrings(tokens, note.title, 1.5);