Skip to content

Instantly share code, notes, and snippets.

@thredup
Created April 2, 2011 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thredup/899719 to your computer and use it in GitHub Desktop.
Save thredup/899719 to your computer and use it in GitHub Desktop.
Thinking Sphinx Definition
define_index do
indexes firstname, :sortable => true
indexes lastname, :sortable => true
has girls_sizes(:id), :as => :girls_size_ids
has boys_sizes(:id), :as => :boys_size_ids
has created_at
where "users.state = 'active'"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment