» npm install docusaurus-lunr-search
» npm install @aldridged/docusaurus-plugin-lunr
» npm install @mia-platform/docusaurus-lunr-search
You need to edit that file and implement your own searchbar component. You can do yarn swizzle @docusaurus/theme-search-algolia SearchBar instead if you want to modify it from the algolia searchbar
It's possible to create your own custom offline search component, so for Docusaurus didn't have any inbuilt offline search option.
Running the command
yarn swizzle @docusaurus/theme-classic SearchBar will create a bootstrapped search component where you have to write your own logic for search.
The offline search option is one of the most requested features in Docusaurus and the community people are working on it. There is a GitHub issue for it - https://github.com/facebook/docusaurus/issues/776 here you can check the progress of the feature.
There is a third-party plugin which will provide an offline search for Docusaurus - https://github.com/lelouch77/docusaurus-lunr-search