Skip to content

Commit

Permalink
chore: increase min char match length
Browse files Browse the repository at this point in the history
  • Loading branch information
mumin-khan committed Apr 27, 2024
1 parent 1663101 commit 904d02d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/api/search/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export type TSearchedVideos = {

const fuzzySearch = (videos: TSearchedVideos[], searchQuery: string) => {
const searchedVideos = new Fuse(videos, {
minMatchCharLength: 3,
keys: ['title'],
}).search(searchQuery);

Expand Down

0 comments on commit 904d02d

Please sign in to comment.