File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/client-search/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -412,6 +412,7 @@ export function createSearchClient({
412
412
indexName,
413
413
browseParams : {
414
414
cursor : previousResponse ? previousResponse . cursor : undefined ,
415
+ hitsPerPage : 1000 ,
415
416
...browseParams ,
416
417
} ,
417
418
} ,
@@ -456,7 +457,7 @@ export function createSearchClient({
456
457
requestOptions ,
457
458
) ;
458
459
} ,
459
- validate : ( response ) => response . nbHits < params . hitsPerPage ,
460
+ validate : ( response ) => response . hits . length < params . hitsPerPage ,
460
461
...browseRulesOptions ,
461
462
} ) ;
462
463
} ,
@@ -501,7 +502,7 @@ export function createSearchClient({
501
502
params . page += 1 ;
502
503
return resp ;
503
504
} ,
504
- validate : ( response ) => response . nbHits < params . hitsPerPage ,
505
+ validate : ( response ) => response . hits . length < params . hitsPerPage ,
505
506
...browseSynonymsOptions ,
506
507
} ) ;
507
508
} ,
You can’t perform that action at this time.
0 commit comments