aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-08-30 17:54:10 +1000
committerTerry Truong <terry06890@gmail.com>2022-08-30 17:54:10 +1000
commit0cd58b3c1a8c5297579ea7a24a14d82ae8fed169 (patch)
tree17c02e7578a0f7b09461f3bca0fa785301292744 /src
parent0f39be89c3d5620b8187b1d7621b7680800c268b (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib.ts1
1 files changed, 1 insertions, 0 deletions
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[],