mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-16 17:15:54 +08:00
chore: reduce fetch count in search
This commit is contained in:
parent
e529369ba6
commit
e4ef6cb0f9
@ -168,7 +168,7 @@ export class SearcherHost extends RPCHost {
|
|||||||
const searchQuery = braveSearchExplicitOperators.addTo(ctx.req.path.slice(1));
|
const searchQuery = braveSearchExplicitOperators.addTo(ctx.req.path.slice(1));
|
||||||
const r = await this.cachedWebSearch({
|
const r = await this.cachedWebSearch({
|
||||||
q: searchQuery,
|
q: searchQuery,
|
||||||
count: Math.floor(count * 2)
|
count: Math.floor(count + 2)
|
||||||
}, crawlerOptions.noCache);
|
}, crawlerOptions.noCache);
|
||||||
|
|
||||||
if (!r.web?.results.length) {
|
if (!r.web?.results.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user