mirror of
https://github.com/fmhy/edit.git
synced 2026-01-13 07:21:08 +11:00
Add fuzzy/exact search toggle to VPLocalSearchBox
Co-authored-by: eli32-vlc <84105075+eli32-vlc@users.noreply.github.com>
This commit is contained in:
parent
5e6a3ecd28
commit
e3ae5c4256
2 changed files with 924 additions and 1 deletions
|
|
@ -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[])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue