To begin, create an account on Orama Cloud.
-
Create a new index from Dashboard.
-
Use the following schema:
-
Then, using the API key and index ID from dashboard, create a script to sync search indexes.
-
Create a route handler in your Next.js app to export search indexes.
-
Run the script after next build
.
To search documents on the client side, use Fumadocs UI Search Dialog, or make your own implementation.
In addition, the headless search client of Fumadocs can handle state management for React.