mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
add back comment
This commit is contained in:
@@ -48,6 +48,7 @@ class SearchResult {
|
|||||||
this.score += 120;
|
this.score += 120;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// notes with matches on its own note title as opposed to ancestors or descendants
|
||||||
const beforeTokenScore = this.score;
|
const beforeTokenScore = this.score;
|
||||||
// Add scores for partial matches with lower weights
|
// Add scores for partial matches with lower weights
|
||||||
this.addScoreForStrings(tokens, note.title, 1.5);
|
this.addScoreForStrings(tokens, note.title, 1.5);
|
||||||
|
|||||||
Reference in New Issue
Block a user