Spaces:
Build error
Build error
chore: reduce fetch count in search
Browse files
backend/functions/src/cloud-functions/searcher.ts
CHANGED
|
@@ -168,7 +168,7 @@ export class SearcherHost extends RPCHost {
|
|
| 168 |
const searchQuery = braveSearchExplicitOperators.addTo(ctx.req.path.slice(1));
|
| 169 |
const r = await this.cachedWebSearch({
|
| 170 |
q: searchQuery,
|
| 171 |
-
count: Math.floor(count
|
| 172 |
}, crawlerOptions.noCache);
|
| 173 |
|
| 174 |
if (!r.web?.results.length) {
|
|
|
|
| 168 |
const searchQuery = braveSearchExplicitOperators.addTo(ctx.req.path.slice(1));
|
| 169 |
const r = await this.cachedWebSearch({
|
| 170 |
q: searchQuery,
|
| 171 |
+
count: Math.floor(count + 2)
|
| 172 |
}, crawlerOptions.noCache);
|
| 173 |
|
| 174 |
if (!r.web?.results.length) {
|