Skip to content

Instantly share code, notes, and snippets.

@guitsaru
Created August 26, 2009 03:47
Show Gist options
  • Save guitsaru/175285 to your computer and use it in GitHub Desktop.
Save guitsaru/175285 to your computer and use it in GitHub Desktop.
define_index do
set_property :enable_star => true
set_property :min_prefix_len => 3
set_property :delta => true
indexes number, city, state, zip, status
indexes message.transcription, :as => :message
indexes assignee.display_name, :as => :assignee
indexes tags.name, :as => :tag
indexes comments.body, :as => :comments
has account_id, created_at
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment