Skip to content
duxt

useDuxtSearch()

Search across every source, ranked together.

Signature

const { search, init, labelled } = useDuxtSearch();

Returns

ValueWhat it is
searchRun a query, across every source
initBuild the index, called when the dialog first opens
labelledResults carrying the source they came from

Notes

The index is built on first use, not on page load: a reader who never searches never pays for it.

Was this page helpful?