The search functionality in the theme is powered by Fuse.js and runs entirely in the browser. This post explains how it works, how the search index is built, and how to customize it for multilingual and subdirectory deployments.
How search works
Search is client-side:
- Hugo generates a JSON index (
index.json) that contains the title, plain content, tags, categories, and other metadata for each page. - The search page loads
fuse.jsand downloads the JSON index. - Fuse.js performs a fast in-browser search and renders the results.
Because the index is a normal Hugo output, it follows your baseURL and language configuration automatically.
