Skip to content

Instantly share code, notes, and snippets.

@rumblex
Created August 26, 2009 03:44
Show Gist options
  • Save rumblex/175283 to your computer and use it in GitHub Desktop.
Save rumblex/175283 to your computer and use it in GitHub Desktop.
define_index do
indexes :name, :sortable => true
indexes entry(:subdomain), :as => :entry_subdomain, :sortable => true
indexes entry(:description), :as => :entry_description, :sortable => true
indexes entry(:name), :as => :entry_name, :sortable => true
indexes entry(:resources_used), :as => :entry_resources, :sortable => true
has :state
where "state IN ('approved', 'qualified', 'verified')"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment