-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Milestone
Description
Crawl and aggregate multiple pages of results for a search operation.
Example usage
import {crawl, search, searchDsl as s} from '@quickcase/node-toolkit';
const query = s.query(s.equals('state', 'Active'));
const sort = s.sort(s.sortAsc('state'));
const searchFn = search(httpClient)('CaseType1')(query)(sort);
const response = await crawl(50)(searchFn)(1000);
/* response:
{
results: [...]
}
*/Comment
Easy to abuse, slow and expensive to run. Are so many non-paginated results really required? Query refinement and pagination should be favoured.