mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
make sure exact noteId match comes on the top in search
This commit is contained in:
@@ -22,6 +22,10 @@ class SearchResult {
|
||||
|
||||
const note = becca.notes[this.noteId];
|
||||
|
||||
if (note.noteId.toLowerCase() === fulltextQuery) {
|
||||
this.score += 100;
|
||||
}
|
||||
|
||||
if (note.title.toLowerCase() === fulltextQuery) {
|
||||
this.score += 100; // high reward for exact match #3470
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user