chore: reduce fetch count in search

This commit is contained in:
Yanlong Wang 2024-08-09 10:29:50 +08:00
parent e529369ba6
commit e4ef6cb0f9
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -168,7 +168,7 @@ export class SearcherHost extends RPCHost {
const searchQuery = braveSearchExplicitOperators.addTo(ctx.req.path.slice(1));
const r = await this.cachedWebSearch({
q: searchQuery,
count: Math.floor(count * 2)
count: Math.floor(count + 2)
}, crawlerOptions.noCache);
if (!r.web?.results.length) {