Skip to content

Notion Export Connector

The notion_export connector indexes exported Notion workspaces.

Quick Start

Terminal window
hoard add --notion ~/Downloads/notion-export

Or configure manually:

connectors:
notion_export:
enabled: true
export_path: ~/Downloads/notion-export

Exporting from Notion

  1. Open Notion
  2. Go to Settings & Members
  3. Scroll to Export content
  4. Choose format:
    • HTML (recommended) — Best structure preservation
    • Markdown — Good for text
    • CSV — For databases
  5. Click Export
  6. Extract the ZIP file

Configuration Options

connectors:
notion_export:
enabled: true
export_path: ~/Downloads/notion-export
# Include database exports
include_databases: true
# Include CSV database exports
include_csv_databases: true
# Rows to sample for schema detection (CSV)
schema_sample_rows: 200
# Max tags from schema
max_schema_tags: 200
# Chunking settings
chunk_max_tokens: 400
chunk_overlap_tokens: 50

Options Reference

OptionTypeDefaultDescription
enabledboolfalseEnable connector
export_pathstringrequiredPath to export directory or ZIP
include_databasesbooltrueIndex database exports
include_csv_databasesbooltrueIndex CSV database exports
schema_sample_rowsint200Rows to sample for schema detection
max_schema_tagsint200Max tags from schema fields
chunk_max_tokensint400Target chunk size
chunk_overlap_tokensint50Overlap between chunks

Supported Formats

FormatExtensionSupport
HTML.htmlFull support
Markdown.mdFull support
CSV.csvDatabase rows with schema detection
ZIP.zipAuto-extracted

What Gets Indexed

For each Notion page/database:

FieldValue
sourcenotion
source_idNotion page ID or relative path
entity_typepage or database
titlePage title
urifile:///path/to/export/file.html
tags["notion"] + ["database"] + schema field tags
metadataNotion ID, database info, CSV schema

CSV Schema Detection

For CSV database exports, the connector:

  1. Reads column headers
  2. Samples rows to infer types (string, integer, date, etc.)
  3. Stores schema in metadata
  4. Adds field names as tags (e.g., field:status, field:due_date)

Page Hierarchy

Notion’s folder structure is preserved. Folders become part of the path stored in metadata.

Search Examples

Terminal window
# Find pages by title
hoard search "project planning" --source notion
# Find database content
hoard search "status:completed"

Updating Content

When Notion content changes:

  1. Export fresh content from Notion
  2. Replace the old export
  3. Run hoard sync

Limitations

  • Static export — No live sync (export manually)
  • No comments — Page comments not included
  • No version history — Only current content

Troubleshooting

”Export not found”

  1. Check path is correct
  2. Ensure export directory or ZIP exists
  3. Try extracting ZIP and pointing to folder

Missing Pages

  1. Check page was included in export
  2. Verify export format (HTML recommended)
  3. Run hoard doctor for diagnostics

Garbled Content

  1. Re-export from Notion
  2. Try HTML format instead of Markdown
  3. Check for special characters in page names

See Also