From a97a0660ea261d383d7d8bc6a979c2a3c408ec6a Mon Sep 17 00:00:00 2001 From: perf3ct Date: Tue, 26 Nov 2024 03:41:01 +0000 Subject: [PATCH] add back comment --- src/services/search/search_result.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/search/search_result.ts b/src/services/search/search_result.ts index c1da6b7df..a9190674b 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);