From 35d00da77c866e241c0777881c966c84242090fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ra=C4=8D=C3=A1k?= Date: Mon, 9 Sep 2024 12:47:47 +0200 Subject: [PATCH] Lower search score for deprecated articles --- baker/algolia/algoliaUtils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baker/algolia/algoliaUtils.tsx b/baker/algolia/algoliaUtils.tsx index 38555207bf1..2248a9b5ca3 100644 --- a/baker/algolia/algoliaUtils.tsx +++ b/baker/algolia/algoliaUtils.tsx @@ -180,7 +180,7 @@ function generateGdocRecords( return match(gdoc.content.type) .with(OwidGdocType.Article, () => ({ type: "article" as const, - importance: 0, + importance: "deprecation-notice" in gdoc.content ? -1 : 0, })) .with(OwidGdocType.AboutPage, () => ({ type: "about" as const,