How does one fetch only a limited number of records for sunspot solr? Since I have 2000 fake profiles It tries to load them every time the page refresh. I want to paginate and fetch only a limited number of records instead.
using will paginate and sunspot solr to list the records
This did the trick ( with will paginate)
paginate(:page => params[:page] || 1, :per_page => 50)