From 0cd58b3c1a8c5297579ea7a24a14d82ae8fed169 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Tue, 30 Aug 2022 17:54:10 +1000 Subject: Add node-popularity data for search-sugg ordering Add Wikipedia pageview dumps to enwiki/pageview/ Add scripts to generate viewcount averages Update backend to sort search suggestions by popularity --- src/lib.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib.ts') diff --git a/src/lib.ts b/src/lib.ts index c9570bc..821a2e1 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -31,6 +31,7 @@ export function getImagePath(imgName: string): string { export type SearchSugg = { // Represents a search-string suggestion name: string, canonicalName: string | null, + pop: number, }; export type SearchSuggResponse = { // Holds search suggestions and an indication of if there was more suggs: SearchSugg[], -- cgit v1.2.3