How to get over 1000 records from a SuiteScript Saved Search?
N/search has examples for the primary methods of getting search results. Use ResultSet.getRange multiple times to get ranges of search results(each range can have upto 1000 results). Use ResultSet.each to run an iterator function on the first 4000 search results. A paged search is similar to ResultSet.getRange, but makes it easier to divide up the search results into pages.
SuiteScript 1 has equivalents to the ResultSet related options in a nlobjSearchResultSet.