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