Skip to content

Commit

Permalink
enhance(algolia): index explorer subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Apr 2, 2024
1 parent 3feb186 commit a949af3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions baker/algolia/indexExplorerViewsToAlgolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ interface ExplorerViewEntry {
interface ExplorerViewEntryWithExplorerInfo extends ExplorerViewEntry {
explorerSlug: string
explorerTitle: string
explorerSubtitle: string
explorerViews_7d: number
viewTitleAndExplorerSlug: string // used for deduplication: `viewTitle | explorerSlug`
numViewsWithinExplorer: number
Expand Down Expand Up @@ -224,6 +225,7 @@ const getExplorerViewRecords = async (
...record,
explorerSlug: explorerInfo.slug,
explorerTitle: explorerInfo.title,
explorerSubtitle: explorerInfo.subtitle,
explorerViews_7d: explorerPageviews,
viewTitleAndExplorerSlug: `${record.viewTitle} | ${explorerInfo.slug}`,
numViewsWithinExplorer: explorerViewRecords.length,
Expand Down

0 comments on commit a949af3

Please sign in to comment.