From 7b515e8aa68473484571de8d894fe0d38e11765f Mon Sep 17 00:00:00 2001 From: HiDeoo <494699+HiDeoo@users.noreply.github.com> Date: Fri, 3 May 2024 19:05:45 +0200 Subject: [PATCH] feat: update `termFrequency` to `0.5` --- packages/starlight/components/Search.astro | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/starlight/components/Search.astro b/packages/starlight/components/Search.astro index a565ef423d9..e8d64588de7 100644 --- a/packages/starlight/components/Search.astro +++ b/packages/starlight/components/Search.astro @@ -130,6 +130,7 @@ const pagefindTranslations = { element: '#starlight__search', baseUrl: import.meta.env.BASE_URL, bundlePath: import.meta.env.BASE_URL.replace(/\/$/, '') + '/pagefind/', + ranking: { termFrequency: 0.5 }, showImages: false, translations, showSubResults: true,