Skip to content

Commit

Permalink
Add stemmer for other languages in the docs
Browse files Browse the repository at this point in the history
Close #1740
Close #1349
  • Loading branch information
Keats committed Jan 23, 2022
1 parent c9b2d35 commit 0084266
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/content/documentation/content/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ As each site will be different, Zola makes no assumptions about your search func
the JavaScript/CSS code to do an actual search and display results. You can look at how this site
implements it to get an idea: [search.js](https://github.com/getzola/zola/tree/master/docs/static/search.js).

If you are using a language other than English, you will also need to include the corresponding JavaScript stemmer file.
See <https://github.com/weixsong/lunr-languages#in-a-web-browser> for details.

## Configuring the search index
In some cases, the default indexing strategy is not suitable. You can customize which fields to include and whether
to truncate the content in the [search configuration](@/documentation/getting-started/configuration.md).

0 comments on commit 0084266

Please sign in to comment.