add back comment

This commit is contained in:
perf3ct 2024-11-26 03:41:01 +00:00
parent bca7d9c4d2
commit a97a0660ea
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232

View File

@ -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);