I have a working search using SOLR in a Rails 3 app. My controller returns results in pubdate order. I am trying to sub-order by the Section.name. How can I add the child field to the order-by syntax?
Here is my code:
@stories = Story.search do
paginate(:page => params[:page])
order_by :pubdate, :desc
order_by :section_id <---want to suborder by Section.name
fulltext params[:search_query]
end