Skip to content

feat(theme): upgrade Algolia DocSearch to v5 - #5402

Open
8bittitan wants to merge 10 commits into
vuejs:mainfrom
8bittitan:feat/docsearch-v5
Open

8bittitan wants to merge 10 commits into
vuejs:mainfrom
8bittitan:feat/docsearch-v5

Conversation

@8bittitan

@8bittitan 8bittitan commented Aug 26, 2026 •

Copy link
Copy Markdown

Description

Migrate the Algolia search integration to @docsearch@5.x. Replace the singular indexName option with an indices array and rename the Ask AI assistantId to Agent Studio's agentId. Split the DocSearch JS and CSS bundles so keyword-only, Ask AI, and side panel modes each load only what they need, and cache each entry point separately. Move language filtering into per-index search parameters and validate credentials per resolved mode so side-panel-only configurations initialize correctly.

Linked Issues

N/A

Additional Context

BREAKING CHANGE: The Algolia search options have changed. indexName is replaced by an indices array, the Ask AI assistantId is renamed to agentId, and the root-level searchParameters option is removed in favor of per-index searchParameters inside indices. Update your themeConfig.search.options accordingly.

Note

With the Ask AI backend -> Agent Studio migration, this means the modal/sidepanel Ask AI won't currently work until the Ask AI assistant is migrated to Agent Studio (or just an agent is created in general).

Bundle split savings

With Ask AI Search only
with_ask_ai search_only

Tip

The author can publish a preview release by commenting /publish after creating the PR.

8bittitan and others added 2 commits August 26, 2026 15:20
Migrate the Algolia search integration to @docsearch v5. Replace the
singular `indexName` option with an `indices` array and rename the Ask
AI `assistantId` to Agent Studio's `agentId`. Split the DocSearch JS and
CSS bundles so keyword-only, Ask AI, and side panel modes each load only
what they need, and cache each entry point separately. Move language
filtering into per-index search parameters and validate credentials per
resolved mode so side-panel-only configurations initialize correctly.

BREAKING CHANGE: The Algolia search options have changed. `indexName` is
replaced by an `indices` array, the Ask AI `assistantId` is renamed to
`agentId`, and the root-level `searchParameters` option is removed in
favor of per-index `searchParameters` inside `indices`. Update your
`themeConfig.search.options` accordingly.
@brc-dd

brc-dd commented Aug 26, 2026

Copy link
Copy Markdown
Member

@brc-dd brc-dd added the theme Related to the theme label Aug 26, 2026
@brc-dd brc-dd added this to the v2.0 milestone Aug 26, 2026
@8bittitan
8bittitan marked this pull request as ready for review August 26, 2026 20:26
@brc-dd

brc-dd commented Sep 6, 2026

Copy link
Copy Markdown
Member

Please wait a bit, no need to update the branch. This will be merged before the next release if there are no additional changes necessary.

@brc-dd brc-dd self-assigned this Sep 6, 2026
Comment thread types/docsearch.d.ts Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme Related to the theme

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants