mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-14 00:25:55 +08:00
fix: restrict auto-fill to first page fetch
This commit is contained in:
parent
dd76cf3866
commit
02a219a470
@ -152,9 +152,15 @@ export class SearcherHost extends RPCHost {
|
||||
|
||||
const crawlOpts = await this.crawler.configure(crawlerOptions);
|
||||
const searchQuery = searchExplicitOperators.addTo(q || noSlashPath);
|
||||
|
||||
let fetchNum = count;
|
||||
if ((page ?? 1) === 1) {
|
||||
fetchNum = count > 10 ? 30 : 20;
|
||||
}
|
||||
|
||||
const r = await this.cachedWebSearch({
|
||||
q: searchQuery,
|
||||
num: count > 10 ? 30 : 20,
|
||||
num: fetchNum,
|
||||
gl,
|
||||
hl,
|
||||
location,
|
||||
|
Loading…
x
Reference in New Issue
Block a user