chore: search cleanup
This commit is contained in:
parent
71eaab3a36
commit
6833d054cc
4 changed files with 25 additions and 24 deletions
|
@ -107,9 +107,10 @@ window.addEventListener("load", () => {
|
|||
"total_plays",
|
||||
],
|
||||
searchOptions: {
|
||||
boost: { title: 2, tags: 1.5 },
|
||||
prefix: true,
|
||||
fuzzy: 0.3,
|
||||
fuzzy: 0.2,
|
||||
boost: { title: 2, tags: 1.5 },
|
||||
sort: (a, b) => b.score - a.score,
|
||||
},
|
||||
});
|
||||
const $form = document.querySelector(".search__form");
|
||||
|
@ -295,4 +296,4 @@ window.addEventListener("load", () => {
|
|||
updateSearchResults(nextResults);
|
||||
});
|
||||
})();
|
||||
});
|
||||
});
|
Reference in a new issue