Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
also significantly increase noteId matches
perf3ct7fdaedd468f2
diff --git a/src/services/search/search_result.ts b/src/services/search/search_result.tsindex a9190674b8..9a0f71f9ce 100644--- a/src/services/search/search_result.ts+++ b/src/services/search/search_result.ts@@ -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 increaseif (note.noteId.toLowerCase() === fulltextQuery) {- this.score += 100;+ this.score += 1000;}// Title matching scores - significantly increase the exact match score