Skip to content

Build your personal knowledge base with Trilium Notes

add back comment

perf3cta97a0660ea26
diff --git a/src/services/search/search_result.ts b/src/services/search/search_result.ts
index 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 descendants
const beforeTokenScore = this.score;
// Add scores for partial matches with lower weights
this.addScoreForStrings(tokens, note.title, 1.5);