Search
Implement document search in your docs
Fumadocs UI provides a good-looking search UI for your docs, the search functionality is instead provided and documented on Fumadocs Core.
See Document Search.
Search UI
Open with ⌘ K or Ctrl K.
Disable Search
To opt-out of document search, disable it from root provider.
Hot Keys
Customise the hot keys to trigger search dialog.
Replace Search Dialog
Make a <RootProvider />
wrapper with use client
directive.
Use it instead of your previous Root Provider
Search Client
When not specified, it uses the fetch
search client powered by Orama.
fetch
Handle search with an API endpoint, the search engine is Orama by default, but you may use other engine as well.
You can pass options to the search client:
Tag Filter
Add UI for filtering results by tags, configure Tag Filter on search server and add the following:
Algolia
For the setup guide, see Integrate Algolia Search.
While generally we recommend building your own search with their client-side SDK, you can also plug the built-in dialog interface.
-
Replace
appId
,apiKey
andindexName
with your desired values. -
Replace the default search dialog with your new component.
Note
The built-in implementation doesn't use instant search (their official javascript client).
Tag Filter
Same as default search client, you can configure Tag Filter on the dialog.
Orama Cloud
For the setup guide, see Integrate Orama Cloud.
- Replace
endpoint
,apiKey
with your desired values. - Replace the default search dialog with your new component.
Community Integrations
A list of integrations maintained by community.
Built-in UI
If you want to use the built-in search dialog UI instead of building your own,
you may use the SearchDialog
component.
Unstable
It is an internal API, might break during iterations
How is this guide?