Solitude Docs

DocSearch

Connect an external search index.

Prepare the application ID, index name, and public search key:

// src/site.config.ts
import { defineSolitudeConfig } from './lib/config';

export default defineSolitudeConfig({
  theme: { search: {
    enable: true, type: 'docsearch',
    docsearch: { appId: 'YOUR_APP_ID', apiKey: 'YOUR_SEARCH_ONLY_KEY', indexName: 'blog' },
  } },
});

Apply for DocSearch and configure a crawler index using the DocSearch result structure.

The theme supplies the interface; it does not create or synchronize the index. Use public search keys and test empty results, errors, and the production domain.

Local search