mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-20 13:39:08 +08:00
fix: always return 10 results (#1152)
* fix: always return 10 results * chore: get 2 extra results
This commit is contained in:
parent
4d48797f17
commit
fcb59591c2
@ -147,7 +147,7 @@ export class SearcherHost extends RPCHost {
|
||||
const searchQuery = searchExplicitOperators.addTo(q || noSlashPath);
|
||||
const r = await this.cachedWebSearch({
|
||||
q: searchQuery,
|
||||
num: count ? (isVersion2 ? count : Math.min(Math.floor(count + 2)), 10) : 10
|
||||
num: count ? (isVersion2 ? count : Math.min(Math.floor(count + 2), 12)) : 12
|
||||
}, crawlerOptions.noCache);
|
||||
|
||||
if (!r.organic.length) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user