Skip to content
duxt

useFuzzySearch()

Typo tolerance beside the exact index.

Signature

const { search } = useFuzzySearch(items);

Returns

A search function that scores near-misses.

Notes

It runs only when the exact search returns nothing, and the UI says so — a reader who mistyped should get the page, but should also be told that is what happened.

Was this page helpful?