Mosen, In order to support pagination, I wrapped the Hits is a class just like java.sql.ResultSet You can create a wrapper class and put the Hits in that and implement some methods like next() prev() to forward and backward through the docuements.
Hope this help you. -- Regards, Mohammad