useDuxtSearch()
Search across every source, ranked together.
Signature
const { search, init, labelled } = useDuxtSearch();
Returns
| Value | What it is |
|---|---|
search | Run a query, across every source |
init | Build the index, called when the dialog first opens |
labelled | Results 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?