Meilisearch integration
Search your docs with Meilisearch, self-hosted or on Meilisearch Cloud.
toDocuments()andsync()fromfumadocs-core/search/meilisearchexport your pages and replace the documents of an index, old documents stay searchable until the new ones are indexed.meilisearchClient()fromfumadocs-core/search/client/meilisearchsearches from the browser withuseDocsSearch(), filtered by tag and locale.
const client = new Meilisearch({ host, apiKey: searchKey });
useDocsSearch({
client: meilisearchClient({ client, indexName: 'docs', locale }),
});Set it up with npx @fumadocs/cli feature search --provider meilisearch, or choose it in create-fumadocs-app.
Fix #3627
Simpler search sync setup
feature searchwrites the path of the pre-renderedstatic.jsonintoscripts/sync-content.ts, and thebuildscript runs it without arguments.- On TanStack Start, the path follows the Nitro output:
.output/public,.vercel/output/staticwith thevercelpreset, ordist/clientwithout Nitro. - Typesense documents are built in the
static.jsonroute, without a separatelib/export-search-indexes.ts.