Search

Boltdocs ships with dependency-free, compile-time search across all your pages, supporting both built-in FlexSearch and cloud Algolia.

Every Boltdocs site comes with built-in search. By default, it operates fully offline and client-side, compiling your documents' headings and body text into a static index at build time. For larger projects, it also integrates natively with Algolia.

Default Search BehaviorLink

By default, search is triggered by:

  • Clicking the Search button in the top navigation bar.
  • Pressing Cmd+K (macOS) or Ctrl+K (Windows / Linux).

The default dialog renders search matches grouped by page, showing highlighted text snippets.


Search in Custom LayoutsLink

If you're building a custom layout using your own React shell, you can render the pre-built search modal component anywhere in your DOM:

tsx
import { SearchDialog } from 'boltdocs'

export function MyLayout({ children }) {
  return (
    <div>
      <SearchDialog />
      <main>{children}</main>
    </div>
  )
}

Pages with sidebarHidden: true are still indexed for search by default. To exclude a page from the search index entirely, set hidden: true in its frontmatter:

md
---
title: Internal Notes
hidden: true
---
Tip

Use sidebarHidden: true to hide a page from navigation while keeping it in search. Use hidden: true to exclude from both the sidebar and the search index.


Search IntegrationsLink

Dive deeper into setup or customize the UI by reading the following guides:

Last updated on October 18, 2026

Was this page helpful?