mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
also significantly increase noteId matches
This commit is contained in:
@@ -30,9 +30,9 @@ class SearchResult {
|
||||
const normalizedQuery = fulltextQuery.toLowerCase();
|
||||
const normalizedTitle = note.title.toLowerCase();
|
||||
|
||||
// Note ID exact match
|
||||
// Note ID exact match, also significantly increase
|
||||
if (note.noteId.toLowerCase() === fulltextQuery) {
|
||||
this.score += 100;
|
||||
this.score += 1000;
|
||||
}
|
||||
|
||||
// Title matching scores - significantly increase the exact match score
|
||||
|
||||
Reference in New Issue
Block a user