also significantly increase noteId matches

This commit is contained in:
perf3ct
2024-11-26 03:52:20 +00:00
parent a97a0660ea
commit 7fdaedd468

View File

@@ -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