Skip to content

feat(search): add FTS5 full-text search option#1379

Merged
larbish merged 4 commits into
mainfrom
feat/fts-search-option
Jun 5, 2026
Merged

feat(search): add FTS5 full-text search option#1379
larbish merged 4 commits into
mainfrom
feat/fts-search-option

Conversation

@benjamincanac

Copy link
Copy Markdown
Collaborator

Summary

  • Add search.fts app config option to switch from client-side Fuse.js to SQLite FTS5 via useSearchCollection
  • Extract search logic into a new AppSearch.vue component (removes duplication between app.vue and error.vue)
  • When FTS is enabled, the index is deferred until the palette opens and top-level navigation links fill the empty state
  • Bump @nuxt/content to ^3.14.0 and @nuxt/ui to ^4.8.0 for useSearchCollection and the search prop support
  • Document the option in both EN and FR configuration docs

Usage

// app.config.ts
export default defineAppConfig({
  search: {
    fts: true
  }
})

Add `search.fts` app config option to switch ContentSearch from
client-side Fuse.js to SQLite FTS5 via `useSearchCollection`.
When enabled, the FTS index is deferred until the search palette
opens and top-level navigation links fill the empty state.

Extract search logic into `AppSearch.vue` component to avoid
duplication between `app.vue` and `error.vue`.

Bump `@nuxt/content` to ^3.14.0 and `@nuxt/ui` to ^4.8.0
for `useSearchCollection` and the `search` prop support.
@vercel

vercel Bot commented May 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docus Ready Ready Preview Jun 5, 2026 1:27pm

@benjamincanac benjamincanac requested review from HugoRCD and larbish May 26, 2026 14:52
@pkg-pr-new

pkg-pr-new Bot commented May 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/create-docus@1379
npm i https://pkg.pr.new/docus@1379

commit: 938e5ed

@larbish larbish merged commit 2f5e374 into main Jun 5, 2026
4 checks passed
@larbish larbish deleted the feat/fts-search-option branch June 5, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants