Loading

Elasticsearch exporter

The Elasticsearch exporter indexes documentation pages into Elasticsearch, powering full-text search, the AI assistant, and the MCP server across all documentation sites.

During a build, the exporter processes each rendered page and indexes it as a structured document into Elasticsearch. The document schema is defined in the shared search contract to ensure consistency across all content sources.

Each build mode exposes dedicated index commands:

Build mode Command Description
Assembler docs-builder assembler build Indexes all assembled documentation sets
Codex docs-builder codex index Indexes documentation for a codex environment
Isolated docs-builder docset index Indexes a single documentation set

Each page is indexed with:

  • Full rendered content (as plain text for search)
  • Page title and headings
  • Navigation context (breadcrumbs, section)
  • Product and version metadata
  • URL and cross-link information
  • REST API — search endpoints that query the indexed content
  • MCP server — AI assistant access to indexed documentation