Created
April 2, 2011 18:12
-
-
Save thredup/899719 to your computer and use it in GitHub Desktop.
Thinking Sphinx Definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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