Watz
11/06/2022, 11:30 AMsearch.run().getRange({ start: 5000, end: 5050 }) works fine in the console though. Is the 4000 row limitation only applicable to ResultSet.each()? Any insights?erictgrubaugh
11/06/2022, 2:17 PM4,000 is the limit on the number of rows, not necessarily the limit on the index of the rows you can retrieve with each(). The limit on getRange() is just 1,000 e.g. start: 5000, end: 5999 is fine, but start: 0, end: 1500 is too many rows.
From the Help docs for `getRange()`:
Unlimited rows in the result are supported, however you can only return 1,000 at a time based on the index values.Typically if you want all results from a large search, you'll want to use the paging API starting with
runPaged() instead of run() . The paging API will consume less governance than retrieving all the results with getRange() , and you won't have to re-run your search with new filters like you would to get them all with each().Watz
11/06/2022, 2:24 PMbattk
11/06/2022, 3:16 PMbattk
11/06/2022, 3:16 PMmichoel
11/06/2022, 10:57 PM