Module: Caoutsearch::Model::Indexable::InstanceMethods

Defined in:
lib/caoutsearch/model/indexable.rb

Instance Method Summary collapse

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_indexObject



51
52
53
# File 'lib/caoutsearch/model/indexable.rb', line 51

def delete_index
  index_engine_class.new(self).delete_document
end

#indexed_documentObject



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