Skip to content

Add search aliases for Redis-era terms - #38

Open
madolson wants to merge 2 commits into
pagefind-site-searchfrom
search-aliases
Open

madolson wants to merge 2 commits into
pagefind-site-searchfrom
search-aliases

Conversation

@madolson

Copy link
Copy Markdown
Owner

Searches for master, slave, zset, geo, redis.conf and redis-cli miss or bury the page people want, because none of those pages use the word. This adds them as _data/search.toml boost keywords on the replication, sorted sets, geospatial, valkey.conf and CLI topics, plus a ranking case for each. Based on valkey-io#723, so it promotes after that merges.

AI generated details

Pagefind 1.6.0 has no synonym support (upstream issue Pagefind/pagefind#777 is open with no reply). Boost keywords go into data-pagefind-meta, and Pagefind indexes meta as searchable text, so a keyword-only match still returns the page. metaWeights: { keywords: 10 } in search.js then ranks it up.

Rewriting the query in search.js loses: Pagefind requires every term to match, so zset -> zset sorted set narrows results instead of widening them.

Misses from the 99-query run on valkey-io#723, and term counts on the live pages:

query rank before target term on target page
zset MISS /topics/sorted-sets/ 0
redis.conf MISS /topics/valkey.conf/ 0
geo MISS (rank 11) /topics/geospatial/ 0 as a word
redis-cli 3 /topics/cli/ 0
master, slave not tested /topics/replication/ 0

hll already appears 4 times on /topics/hyperloglogs/, so it has no alias.

The six ranking cases have not run. search-check.yml only runs on PRs into main, so they run when this is promoted.

This was generated by AI but verified, with love, by a human.

Searches for master, slave, zset, geo, redis.conf and redis-cli miss or bury the page people want, because the page never uses that word. A boost keyword is indexed as page metadata, so it makes the page findable by a word it doesn't contain. Each alias has a ranking case.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson added the needs-review Staged work waiting on madolson's review label Nov 25, 2026
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>

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

needs-review Staged work waiting on madolson's review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant