Module: Railstank::Search::InstanceMethods
- Defined in:
- lib/railstank.rb
Instance Method Summary collapse
Instance Method Details
#add_to_search_index(content_hash) ⇒ Object
49 50 51 |
# File 'lib/railstank.rb', line 49 def add_to_search_index(content_hash) search_index.document("#{index_class_name}_#{self.id}").add(content_hash) end |
#delete_index ⇒ Object
53 54 55 |
# File 'lib/railstank.rb', line 53 def delete_index search_index.document("#{index_class_name}_#{self.id}").delete end |