Skip to content

Instantly share code, notes, and snippets.

@themusicman
Last active February 9, 2016 19:44
Show Gist options
  • Save themusicman/c8db46c7125c76b4fb94 to your computer and use it in GitHub Desktop.
Save themusicman/c8db46c7125c76b4fb94 to your computer and use it in GitHub Desktop.
Increasing the size of the search records returned
Legislator.search(params[:q], size: 10000).records.where(chamber: params[:chamber]).order('voting_sessions.score asc, last_name asc')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment