Module: SocialStream::Base::ThinkingSphinx::Index::Builder

Defined in:
lib/social_stream/base/thinking-sphinx.rb

Instance Method Summary collapse

Instance Method Details

#activity_object_indexObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/social_stream/base/thinking-sphinx.rb', line 6

def activity_object_index
  indexes activity_object.title,       :as => :title
  indexes activity_object.description, :as => :description
  indexes activity_object.tags.name,   :as => :tags

  has created_at
  has activity_object.author_actions(:actor_id), :as => :author_id
  has activity_object.owner_actions(:actor_id),  :as => :owner_id
  has activity_object.activity_object_audiences(:relation_id), :as => :relation_ids
end