Docs
Search
Configure the small offline fuzzy search index.
No external service
Hugo renders search.json from your regular pages on every build. The browser fetches that single file the first time someone opens search, so there is no API, hosted index, or post-build command.
The index contains each page’s title, URL, section, headings, description, and the first part of its plain text. Set noSearch: true in front matter to omit a page.
Matching
Queries are split into terms. Every term must match somewhere on a page. Matches are scored with weights—title, headings, description, then body—and exact words outrank prefixes, substrings, and one- or two-edit typos. The ten best pages are shown.
Controls
Press / or Ctrl/⌘+K to open search. Use the arrow keys to move through results and Enter to open one. Esc closes the dialog.