Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions content/download/releases/v9-2-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: "9.2.1"
date: 2026-11-26
extra:
tag: "9.2.1"
artifact_source: https://download.valkey.io/releases/
artifact_fname: "valkey"
container_registry:
-
name: "Docker Hub"
link: https://hub.docker.com/r/valkey/valkey/
id: "valkey/valkey"
tags:
- "9.2.1"
- "9.2.1-trixie"
- "9.2.1-alpine"
- "9.2.1-alpine3.24"
packages: []

artifacts:
- distro: jammy
arch:
- arm64
- x86_64
- distro: noble
arch:
- arm64
- x86_64
---

Valkey 9.2.1 Release
6 changes: 3 additions & 3 deletions content/try-valkey/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title = "Try Valkey"
template = "valkey-try-me.html"
[extra]
state_file = "https://download.valkey.io/try-me-valkey/9.2.0/states/state.bin.gz"
filesystem_base_url = "https://download.valkey.io/try-me-valkey/9.2.0/fs/alpine-rootfs-flat"
filesystem_base_fs = "https://download.valkey.io/try-me-valkey/9.2.0/fs/alpine-fs.json"
state_file = "https://download.valkey.io/try-me-valkey/9.2.1/states/state.bin.gz"
filesystem_base_url = "https://download.valkey.io/try-me-valkey/9.2.1/fs/alpine-rootfs-flat"
filesystem_base_fs = "https://download.valkey.io/try-me-valkey/9.2.1/fs/alpine-fs.json"
+++


36 changes: 36 additions & 0 deletions static/assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,45 @@ function setUpInstance(name) {
const instance = window.PagefindComponents.getInstanceManager().getInstance(name);
addBreadcrumbsToResults(instance);
putExactTitleMatchesFirst(instance);
trackSearches(instance, name === 'page' ? 'page' : 'modal');
return instance;
}

// Pushes each search to Google Tag Manager's data layer as a "search" event: the query
// (search_term), how many results match it (search_results, 0 for a miss), and where it was
// searched (search_location, "modal" or "page"). Pagefind's results come after <pagefind-input>'s
// debounce, so this counts searches once typing pauses rather than every key, and the same query
// isn't counted twice in a row.
//
// Pagefind matches loosely, so even a made-up word returns a few results, scoring about 0.001.
// Only results scoring at least MIN_MATCH_SCORE count as matches. Real searches, typos included,
// score 2 or more, so a search whose results all score below it is a miss.
//
// The site loads Google Analytics through the Linux Foundation's Tag Manager container, so the
// event only reaches Analytics through a Custom Event trigger for "search" and a GA4 event tag set
// up there. Analytics runs only if the visitor's consent allows it, through the site's consent
// manager. Queries that look like an email address aren't sent, since search boxes sometimes get
// personal details pasted into them.
const MIN_MATCH_SCORE = 0.1;
const MAX_TRACKED_SEARCH_LENGTH = 100;
const EMAIL_PATTERN = /[^\s@]+@[^\s@]+\.[^\s@]+/;

function trackSearches(instance, location) {
let lastTrackedTerm = null;
instance.on('results', function(searchResult) {
const term = (instance.searchTerm || '').trim();
if (!term || term === lastTrackedTerm || EMAIL_PATTERN.test(term)) return;
lastTrackedTerm = term;
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'search',
search_term: term.slice(0, MAX_TRACKED_SEARCH_LENGTH),
search_results: searchResult.results.filter(function(result) { return result.score >= MIN_MATCH_SCORE; }).length,
search_location: location,
});
});
}

// The search page, templates/search.html. /search/?q=<query> searches for <query>, and q follows
// what's typed, so the address can be shared. Pagefind's search event comes after <pagefind-input>
// stops for its debounce, so the address changes once typing pauses, not on every key.
Expand Down