Documentation Center · Guide

Site search and indexing

How the search index is generated and why the draft cannot be found.

Indexes are generated with the build

Site search is based on a static index generated at build time. implement npm run build Post-index entry dist/, the latest content can only be searched for in the official preview.

Search works in development, too

Run npm run dev then click the search icon or press ⌘/Ctrl K. The first search creates an in-memory index of public pages. Source changes rebuild it without a full site build. You can also open /search/?q=关键词 to search directly.

Chinese and English pages have separate search indexes. English search results keep their English URLs.

Drafts are not indexed

only draft: false of documents will be constructed and entered into the search index. Private documents can be kept in the content directory and will not be published or searched.

Website and help center search

Website search includes public products, extensions, articles, and developer docs. The help center and template library are separate Press sites with their own search. In the developer docs, filter the sidebar or press Enter to search the website with your keywords.

Search Mindex

Esc to close · ⌘ / Ctrl K to search