Skip to content

Commit

Permalink
Lower search score for deprecated articles
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyi committed Sep 9, 2024
1 parent 97b107b commit 35d00da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baker/algolia/algoliaUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 35d00da

Please sign in to comment.