1. Home
  2. ChevronRightSearch
  3. ChevronRightSearch

Search

Boltdocs includes zero-dependency, build-time search across all your pages, supporting both built-in FlexSearch and cloud-hosted Algolia.

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


What Gets IndexedLink

For each page in your documentation, Boltdocs extracts and indexes:

DataSource
Page titletitle frontmatter or filename
Page descriptiondescription frontmatter or first paragraph
All h2h6 headingsMarkdown heading elements
Page bodyPlain text, stripped of Markdown syntax

Callouts, code blocks, and table contents are included in the body text. Images are not indexed.


Default Search BehaviorLink

Out-of-the-box, 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 are developing a custom layout using your own React shell, you can render the pre-built search modal component anywhere in your DOM:

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:

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

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


Search IntegrationsLink

Deepen your configuration or customize the UI by reading the following guides:

Last updated on July 27, 2026

Was this page helpful?