vaw Wiki
Reading preferences
Text size

Static search

On this page

Static search#

Search runs entirely in the browser against JSON generated from published notes. It uses no remote service, runtime API, or CDN. Search controls are added only when JavaScript is available; ordinary note links and pages remain static HTML.

What is indexed#

The search shards contain each eligible note's title, aliases, tags, vault-relative path, and optionally headings and plain text. search.index_headings and search.index_content control the latter fields. Notes marked noindex: true are omitted from search while remaining public pages. Excluded and unpublished notes never enter the renderer's public site registry, so they cannot appear in the search payload.

The output is split into JSON shards under search/shards/ and described by search/index.json. The first page load does not fetch the index. The search dialog fetches the manifest and then shards in small concurrent batches after the reader enters a query. The current browser implementation loads all shards for a search session; it caches them in memory for subsequent queries. Very large indexes can therefore use substantial bandwidth and browser memory after search is opened.

Title exact and prefix matches rank above aliases, headings, tags, folder paths, and ordinary text matches. Optional fuzzy matching checks title, alias, and heading words. Results include a plain-text excerpt and safely created text highlights. Keyboard controls are Ctrl/Command+K to open, arrow keys to select, Enter to open, and Escape to close.

The default index shard holds up to 1,000 notes. Only the search dialog loads it, but it currently downloads the complete index on first query rather than fetching shards selectively. Search JSON is not a public-content privacy boundary: every indexed field is readable from the generated static files. Use publishing rules before building and review the output when changing publication status.

Configuration#

search:
  enabled: true
  fuzzy: true
  index_headings: true
  index_content: true

Set enabled: false to omit search data and controls. Setting a specific index field to false reduces the output and omits that field; it does not disable note rendering.

Diagnostics#

If the dialog reports that the local index is unavailable, confirm that the host uploaded search/index.json and every referenced shard. For subpath hosting, set site.base_url to include the deployed path, such as https://example.com/notes/. The generated manifest uses that base path for shard URLs. No external host or backend is contacted.

Linked notes

Related notes

Linked from

Search is ready.

    ↑ ↓ move · Enter open · Esc close

    Explore graph

    Open the graph to explore note relationships.