Skip to content

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

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

[lexical-website] Bug Fix: Replace broken algolia search with @easyops-cn/docusaurus-search-local#7810
etrepum merged 1 commit intofacebook:mainfrom
etrepum:docusaurus-search-local

Conversation

@etrepum
Copy link
Copy Markdown
Collaborator

@etrepum etrepum commented Sep 9, 2025

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
Copy link
Copy Markdown

vercel bot commented Sep 9, 2025

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 facebook:main with commit 8cffe47 Sep 9, 2025
68 of 69 checks passed
This was referenced Sep 25, 2025
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