#1259 Add more weight to char.name in fuzzy search

This commit is contained in:
Cohee 2023-10-19 14:03:38 +03:00
parent 50924a0672
commit 5c6343e85e
1 changed files with 1 additions and 1 deletions

View File

@ -1164,7 +1164,7 @@ function highlightDefaultContext() {
export function fuzzySearchCharacters(searchValue) {
const fuse = new Fuse(characters, {
keys: [
{ name: 'data.name', weight: 5 },
{ name: 'data.name', weight: 8 },
{ name: 'data.description', weight: 3 },
{ name: 'data.mes_example', weight: 3 },
{ name: 'data.scenario', weight: 2 },