From e4284d215ca973f4db5eca98448d436972703476 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 3 Jul 2023 18:09:41 +0800 Subject: [PATCH] feat: boost sitename score by 2 times in the basic search --- packages/api/src/elastic/pages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/elastic/pages.ts b/packages/api/src/elastic/pages.ts index 439de4db7..640a8449d 100644 --- a/packages/api/src/elastic/pages.ts +++ b/packages/api/src/elastic/pages.ts @@ -55,7 +55,7 @@ const appendQuery = (builder: ESBuilder, query: string): ESBuilder => { { field: 'content', boost: 1 }, { field: 'author', boost: 1 }, { field: 'description', boost: 1 }, - { field: 'siteName', boost: 1 }, + { field: 'siteName', boost: 2 }, ] const nestedFields: Field[] = [{ field: 'highlights.annotation', boost: 2 }]