fix: always return 10 results (#1152)

* fix: always return 10 results

* chore: get 2 extra results
This commit is contained in:
Aaron Ji 2025-02-25 18:11:08 +08:00 committed by GitHub
parent 4d48797f17
commit fcb59591c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {