diff --git a/search.js b/search.js index 1bbc50a..ffa08ec 100644 --- a/search.js +++ b/search.js @@ -4,7 +4,24 @@ const TAGS = "tags" const TITLE = "title" const fuse = new Fuse(data, { - keys: [ HEADERS, PATH, TAGS, TITLE ], + keys: [ + { + name: HEADERS, + weight: 1 + }, + { + name: PATH, + weight: 1 + }, + { + name: TAGS, + weight: 1 + }, + { + name: TITLE, + weight: 1.5 + } + ], includeMatches: true })