#1259 Add more weight to char.name in fuzzy search
This commit is contained in:
parent
50924a0672
commit
5c6343e85e
|
@ -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 },
|
||||
|
|
Loading…
Reference in New Issue