To enable it, you only need to set
build_search_index = true in your
config.toml and Zola will
generate an index for the
default_language set for all pages not excluded from the search index.
It is very important to set the
default_language in your
config.toml if you are writing a site not in
English; the index building pipelines are very different depending on the language.
zola build or
zola serve, you should see two files in your static directory:
search_index.en.jsfor a default setup
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.