Skip to main content
Experimental API - Context Connectors is experimental and subject to breaking changes.
Build a custom indexer to fetch content from any source (API, database, CMS) and index it with DirectContext.

Basic Example

Index Layout: The indexer saves two files:
  • state.json - Full state including file path list (for incremental indexing)
  • search.json - Optimized state without file list (smaller, for search clients)
Search clients should load search.json. Indexers need state.json for incremental updates.

Data Source Examples

REST API:
Database:

Automation

Cron (Node.js):
Cron (Python):
GitHub Actions: See GitHub Actions Auto-Indexing

Next Steps