webite: optimize search result. fix #159

This commit is contained in:
jaywcjlove 2022-11-21 16:13:20 +08:00
parent 3b3e6f3eb8
commit afbfcc2285

View File

@ -41,7 +41,7 @@ const fuse = new Fuse(REFS_DATA, {
matchEmptyQuery: !0,
threshold: .1,
keys: [
{ name: "name", weight: 12 },
{ name: "name", weight: 20 },
{ name: 'intro', weight: 2 },
{ name: 'tags', weight: 2 },
{ name: 'sections.t', weight: 5 }