--- template: overrides/main.html --- # Search The [built-in search plugin][1] provides client-side search inside the browser and is implemented using [lunr.js][2] which includes stemmers for the English language by default, while stemmers for other languages are included with [lunr-languages][3], both of which are integrated with this theme. [1]: https://www.mkdocs.org/user-guide/configuration/#search [2]: https://lunrjs.com [3]: https://github.com/MihaiValentin/lunr-languages ## Installation The search plugin is a built-in plugin, and thus doesn't need to be installed. ## Configuration Add the following lines to `mkdocs.yml`: ``` yaml plugins: - search ``` ### Language > Default: best match for `theme.language`, automatically set Material for MkDocs selects the (best-)matching stemmer for the given theme language. Multilingual search can be enabled in `mkdocs.yml` by explicitly defining the search language(s): ``` yaml plugins: - search: lang: - en - de - ru ``` The following language codes are supported:
ar
/ Arabicda
/ Danishdu
/ Dutchen
/ Englishfi
/ Finnishfr
/ Frenchde
/ Germanhu
/ Hungarianit
/ Italianja
/ Japaneseno
/ Norwegianpt
/ Portugesero
/ Romanianru
/ Russianes
/ Spanishsv
/ Swedishth
/ Thaitr
/ Turkishvi
/ Vietnamese