Module: Caoutsearch::Model::Indexable::InstanceMethods
- Defined in:
- lib/caoutsearch/model/indexable.rb
Instance Method Summary collapse
- #as_indexed_json(*properties) ⇒ Object
- #delete_index ⇒ Object
- #indexed_document ⇒ Object
- #update_index(*properties) ⇒ Object
Instance Method Details
#as_indexed_json(*properties) ⇒ Object
39 40 41 |
# File 'lib/caoutsearch/model/indexable.rb', line 39 def as_indexed_json(*properties) index_engine_class.new(self).as_json(*properties) end |
#delete_index ⇒ Object
51 52 53 |
# File 'lib/caoutsearch/model/indexable.rb', line 51 def delete_index index_engine_class.new(self).delete_document end |
#indexed_document ⇒ Object
43 44 45 |
# File 'lib/caoutsearch/model/indexable.rb', line 43 def indexed_document index_engine_class.new(self).indexed_document end |
#update_index(*properties) ⇒ Object
47 48 49 |
# File 'lib/caoutsearch/model/indexable.rb', line 47 def update_index(*properties) index_engine_class.new(self).update_document(*properties) end |