From 9ccb17d4c20fb8282b71f3af9c6a85a35d8eb3a3 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Wed, 25 Nov 2026 15:35:43 -0800 Subject: [PATCH] Add search aliases for Redis-era terms 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 --- _data/search.toml | 23 +++++++++++++++++++++++ build/search-ranking.toml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/_data/search.toml b/_data/search.toml index 2c3b5db5..e42254db 100644 --- a/_data/search.toml +++ b/_data/search.toml @@ -8,7 +8,30 @@ # # This works for any page, including docs topics and commands, whose content comes from other # repositories. If a page moves, update its url here. +# +# A keyword doesn't have to appear on the page, so a boost also works as an alias: other names for +# the page's subject, such as Redis-era terms. [[boost]] url = "/topics/migration/" keywords = ["migration"] + +[[boost]] +url = "/topics/replication/" +keywords = ["master", "slave"] + +[[boost]] +url = "/topics/sorted-sets/" +keywords = ["zset"] + +[[boost]] +url = "/topics/geospatial/" +keywords = ["geo"] + +[[boost]] +url = "/topics/valkey.conf/" +keywords = ["redis.conf"] + +[[boost]] +url = "/topics/cli/" +keywords = ["redis-cli"] diff --git a/build/search-ranking.toml b/build/search-ranking.toml index e13ae851..110c8590 100644 --- a/build/search-ranking.toml +++ b/build/search-ranking.toml @@ -124,3 +124,33 @@ top = 1 query = "migration" url = "/topics/migration/" top = 1 + +[[search]] +query = "master" +url = "/topics/replication/" +top = 1 + +[[search]] +query = "slave" +url = "/topics/replication/" +top = 1 + +[[search]] +query = "zset" +url = "/topics/sorted-sets/" +top = 1 + +[[search]] +query = "geo" +url = "/topics/geospatial/" +top = 1 + +[[search]] +query = "redis.conf" +url = "/topics/valkey.conf/" +top = 1 + +[[search]] +query = "redis-cli" +url = "/topics/cli/" +top = 1