Jump to content

The ultimate community for Ruby on Rails developers.


Photo

sunspot / kaminari sorting by page instead of all results


  • Please log in to reply
1 reply to this topic

#1 nausica

nausica

    Passenger

  • Members
  • 2 posts

Posted 13 January 2014 - 08:44 PM

Wondering if anyone else has encountered this issue. I'm new to ruby, rails, and solr.

 

I have an app using solr (via sunspot) to return search results. Kaminari is being used to paginate. The problem I am having is that sorting parameter being passed into a view results in the solr results being sorted only for the current page. Is there some obivous thing I might be missing as far as the solr/sunspot config that would cause only the current kaminari page to be sorted rather than all results? Perhaps the number of rows solr is configured to return for a query?



#2 nausica

nausica

    Passenger

  • Members
  • 2 posts

Posted 13 January 2014 - 09:14 PM

Just to add details, I am using the paginate_array method and passing total_count.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users