@cogita/plugin-search provides a reusable local content index and a /search page. It is built on the shared ContentIndex and does not replace Rspress's default document-search experience.
The first release does not include server-side search, external search services, result pagination, or complex Boolean queries.
analytics.enabled is off by default. Even when enabled, query and filter details require separate opt-ins so search terms do not enter an event accidentally.
virtual-search-data exposes searchConfig, searchDocuments, and searchIndexHash. The document id is the post route, which keeps search results connected to posts, categories, and lists.
The plugin adds a /search page and a pageLayouts.search layout. The Lucid theme supports keyword highlighting, tag and category filters, q/tag/category URL state, empty-query guidance, and sub-path deployment through site.base.
When full-text indexing is enabled, the plugin removes frontmatter, fenced code, and HTML tags before truncating to maxContentLength and producing nearby context. Highlighted text must render as safe React nodes.
Search, blog-list, tags, categories, and sitemap should share one content index and one route calculation. Search owns the index and page contract; it does not own the theme layout or a second content scan.
/search, and non-English titles, tags, and categories remain searchable./cogita/search.html and result links work under the site base path.See the content index design, plugin API specification, and Chinese version.