vendredi 17 avril 2015

Spring data solr with start and rows

I know we can do paging in the Spring data solr using pageable interface.But how can get data using start and rows rather than a page?



Page<Student> findByName(String name, Pageable page)


The above function returns me the a page with the specified count. here if i set page=2 and count=10.it returns 21 to 30 items. But i require 2 to 10 items here.


So here,i don't want paging.i require start and rows same like solr. How can i do this ?


Thanks and Regards.


Aucun commentaire:

Enregistrer un commentaire