chore: search cleanup

This commit is contained in:
Cory Dransfeldt 2024-10-19 18:19:51 -07:00
parent 71eaab3a36
commit 6833d054cc
No known key found for this signature in database
4 changed files with 25 additions and 24 deletions

View file

@ -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);
});
})();
});
});