feat: boost sitename score by 2 times in the basic search

This commit is contained in:
Hongbo Wu 2023-07-03 18:09:41 +08:00
parent afaaf8af60
commit e4284d215c

View file

@ -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 }]