I'm trying to basically search my rails objects, order by random and only return 2 of the results
but it seems that when I use
@featured_results = Article.search do
adjust_solr_params do |params|
params[:rows] = 2
end
with(:is_featured, true)
order_by :random
end
@featured_results.total is not equal to 2, but is greater than 2
How do I limit the results returned by solr?