So, perhaps in your search add a column of type "Formula(Numeric)" with a Formula of "ROWNUM" and a column name of whatever you want. Return your searchObj in your getInputData stage (to avoid the 50 MB limitation) and then, in each Map stage, look at the value of this custom column. If that value is <= 1000, process it, otherwise, finish that map() stage.