Skip to content

Add cross-site search - #737

Draft
danielfrankcom wants to merge 15 commits into
valkey-io:mainfrom
danielfrankcom:cross-site-search
Draft

danielfrankcom wants to merge 15 commits into
valkey-io:mainfrom
danielfrankcom:cross-site-search

Conversation

@danielfrankcom

Copy link
Copy Markdown
Contributor

Warning

This is currently a draft since it has a heavy dependency on #723. The commits from #723 show up in the diff here until the dependency can be merged and this one can be rebased.

Description

This change adds results from GLIDE, Valkey Admin, and Spring Data Valkey to the search on valkey.io. Each result shows the site it came from, and buttons above the results provide a per-site filter option.

This builds on #723 and should be merged after it. Until then, the diff includes #723's commits. I will rebase it once the dependency is merged. The other sites get a similar change in valkey-io/valkey-admin#586, valkey-io/valkey-glide-docs#366, and valkey-io/spring-data-valkey#118.

Results from all four sites Showing only GLIDE, on mobile
image image

The screenshots use local builds of the other sites. Until their PRs are deployed, the valkey.io search will continue to show only its own results.

This approach has the following properties:

  • Each site publishes its own Pagefind index and merges the others' in the browser, without a central index or service. Each site can make this change on its own schedule.
  • The other sites are only contacted once a visitor opens search. Each one is checked before it's merged, so a site that's down is left out instead of breaking search (Pagefind #887). A site that passes the check but fails afterwards can still stall search until the page is reloaded. This is an accepted downside of the merge strategy, given the rarity this will happen in practice, the ease of fixing it with a refresh, and the fact that it will be fixed upstream when Pagefind merges the linked issue.
  • Pagefind's search UI has no public way to add an index after it loads, so search.js uses a private part of it. Pagefind is pinned, so this can only change in a deliberate upgrade. I think this is likely not exposed because they recently switched to a new component-based UI element that integrates better for this site but has had less time to evolve.
  • Pagefind only combines indexes built with the same minor version, and the sites use 1.3 to 1.5. Each deploy publishes a copy of valkey.io's index for every minor version a site might need, about 5 MB each. The script that builds them is shared with the other sites.
  • A deploy fails if another site can't be reached, so it never drops a copy that another site needs. Since they are all hosted by GitHub Pages, any outages should typically affect all sites so it seems unlikely this would block things asymmetrically. PRs that change the Pagefind version or the list of sites check the other sites before merging.
  • Other sites' results count the same as valkey.io's. Weighting them down, as the other sites do, mostly hid their pages from valkey.io's search. This is due to the larger and richer set of pages on this site.

Issues Resolved

None. This follows #723.

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

danielfrankcom and others added 15 commits October 26, 2026 16:33
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Co-authored-by: Alexey Temnikov <alexey.temnikov@improving.com>
Signed-off-by: Daniel Frankcom <daniel@frankcom.ca>
Co-authored-by: Alexey Temnikov <alexey.temnikov@improving.com>
Signed-off-by: Daniel Frankcom <daniel@frankcom.ca>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@danielfrankcom danielfrankcom changed the title Cross site search Add cross-site search Nov 3, 2026
@danielfrankcom danielfrankcom mentioned this pull request Nov 5, 2026
1 task done

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants