Your local exact search (#4535)

* Initial plan

* Add fuzzy/exact search toggle to VPLocalSearchBox

Co-authored-by: eli32-vlc <84105075+eli32-vlc@users.noreply.github.com>

* Complete fuzzy/exact search toggle implementation with screenshots

Co-authored-by: eli32-vlc <84105075+eli32-vlc@users.noreply.github.com>

* Add minisearch dependency and update screenshots with actual interface

Co-authored-by: eli32-vlc <84105075+eli32-vlc@users.noreply.github.com>

* Remove temporary comment and restore web fonts preset

Co-authored-by: eli32-vlc <84105075+eli32-vlc@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Zenith Rifle 2026-01-04 13:39:22 +08:00 committed by GitHub
parent 11dff3a3bd
commit bfda08e659
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 993 additions and 1 deletions

View file

@ -121,7 +121,7 @@ export const search: DefaultTheme.Config['search'] = {
},
searchOptions: {
combineWith: 'AND',
fuzzy: true,
fuzzy: false,
// @ts-ignore
boostDocument: (documentId, term, storedFields: Record) => {
const titles = (storedFields?.titles as string[])