well it should really be a 2.0 map/reduce and it'l...
# suitescript
c
well it should really be a 2.0 map/reduce and it'll make your life pretty easy... get input phase returns the search you want and then each reduce phase (if you dont need any grouping) will be 1 iteration that you do your sublist stuff