Description
docusaurus-lunr-search is a Docusaurus plugin that adds offline search to a documentation site, built on the lunr search library. It builds a search index during the project build, so search works on the static site without a server. The README requires Docusaurus v3.9.2 or later and Node.js 20 or later. You install the package with npm, and if npm reports an unable to resolve dependency tree error, the README says to use the legacy peer dependencies flag. If the lunr package fails to install, you add it by hand. Then you register the plugin in docusaurus.config.js and run a full build, because the search index is generated only by a full build and the local development server does not provide search. A languages option takes lunr language codes for stemming. The README also lists options such as indexBaseUrl, excludeRoutes, includeRoutes, stopWords and excludeTags, and it links a demo website.…
Highlights
- Offline search for Docusaurus sites
- Language stemming through lunr-languages
- Include or exclude routes and tags
- Stop words and result highlighting options
Ratings & Reviews
No ratings yet
Be the first to rate Docusaurus Lunr Search.
People also visit
Docusaurus Lunr Search FAQ
What does it add?
Offline search for a Docusaurus documentation site, built on the lunr search library.
Why doesn't search work in the dev server?
The search index is only generated by a full project build, so build the site and serve the built output, as the README explains.
Which versions are needed?
Docusaurus v3.9.2 or later and Node.js 20 or later.
Can I search in other languages?
Yes. The languages option takes language codes for stemming, and the README links the supported lunr-languages list.
Which routes can I exclude?
Use excludeRoutes to leave routes out of the search, or includeRoutes to search only specific routes.
What are the best Docusaurus Lunr Search alternatives?
Popular alternatives to Docusaurus Lunr Search include Doc2dash, Buzee Tauri and GraphQL-Markdown. See all Docusaurus Lunr Search alternatives





