Skip to content

[lexical-website] Bug Fix: Replace broken algolia search with @easyops-cn/docusaurus-search-local - #7810

Merged
etrepum merged 1 commit into
meta:mainfrom
etrepum:docusaurus-search-local
Sep 9, 2025
Merged

etrepum merged 1 commit into
meta:mainfrom
etrepum:docusaurus-search-local

Conversation

@etrepum

@etrepum etrepum commented Sep 9, 2025 •

Copy link
Copy Markdown
Collaborator

Description

The docusaurus algolia index for lexical.dev hasn't been updated in at least 6+ months, this replaces algolia with a local lunr index that doesn't depend on any third parties.

There are a few rough edges in the UI but it's very usable. Two things I noticed:

  • Pressing cmd+k to search doesn't select the previous input text so it takes an extra cmd+a keystroke to clear before searching again
  • It displays See all {count} results instead of an actual count

https://lexical-git-fork-etrepum-docusaurus-search-local-fbopensource.vercel.app/

Closes #7808

Test plan

Before

Search results would be incomplete and/or return broken links, e.g. search for any class or something like NodeState which has been introduced in the past few months

After

Search results are always up to date

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 9, 2025
@vercel

vercel Bot commented Sep 9, 2025 •

Copy link
Copy Markdown

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

Project Deployment Preview Comments Updated (UTC)
lexical Ready Ready Preview Comment Sep 9, 2025 3:34pm
lexical-playground Ready Ready Preview Comment Sep 9, 2025 3:34pm

@etrepum
etrepum added this pull request to the merge queue Sep 9, 2025
Merged via the queue into meta:main with commit 8cffe47 Sep 9, 2025
This was referenced Sep 25, 2025

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 5ffaf242 Deployed Sep 9, 2025 by vercel[bot]
Preview – lexical — 5ffaf242 Deployed Sep 9, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: lexical.dev docusaurus Algolia index has stale results

2 participants