Skip to content

Build your personal knowledge base with Trilium Notes

also significantly increase noteId matches

perf3ct7fdaedd468f2
diff --git a/src/services/search/search_result.ts b/src/services/search/search_result.ts
index 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 increase
if (note.noteId.toLowerCase() === fulltextQuery) {
- this.score += 100;
+ this.score += 1000;
}
// Title matching scores - significantly increase the exact match score