Skip to main content
SolidBase

Search

The default theme supports built-in local search and hosted Algolia DocSearch.

Enable local search without an external service:

app.config.ts
themeConfig: {
search: {
local: true,
},
},

SolidBase uses Pagefind to build the search index from page titles, descriptions, headings, and Markdown content. Results are limited to the current locale and configured route axes, such as project and version.

Pagefind loads its search engine and only the required index chunks when search starts. It supports prefix matching and language-aware word stemming. Use Command+K or Control+K to open the dialog.

Exclude a page from local search with frontmatter:

---
search: false
---

Algolia DocSearch

Configure hosted DocSearch instead of local search:

app.config.ts
themeConfig: {
search: {
docsearch: {
appId: "YOUR_APP_ID",
apiKey: "YOUR_SEARCH_API_KEY",
indexName: "YOUR_INDEX_NAME",
},
},
},

Local search and DocSearch are mutually exclusive.

Content Security Policy

Pagefind uses WebAssembly and a web worker. A strict Content Security Policy must allow script-src 'wasm-unsafe-eval' and worker-src 'self' blob:. See Pagefind's hosting guide for details.

Text

Override search labels through themeConfig.text:

app.config.ts
themeConfig: {
text: {
search: "Search",
searchPlaceholder: "Search documentation",
searchClose: "Close search",
searchLoading: "Loading search…",
searchNoResults: "No results found",
searchUnavailable: "Search is unavailable",
},
},

Last updated: 8/29/26, 5:43 PM

SolidBaseFully featured, fully customisable static site generation for SolidStart
Community
githubdiscord