module Ohm::Elasticsearch::InstanceMethods
Public Instance Methods
index_attributes()
click to toggle source
# File lib/ohm/elasticsearch.rb, line 65 def index_attributes attributes end
Protected Instance Methods
index_delete()
click to toggle source
# File lib/ohm/elasticsearch.rb, line 75 def index_delete self.class.indexer.delete(index: self.class.index_name, type: self.class.index_type, id: id) end
index_save()
click to toggle source
# File lib/ohm/elasticsearch.rb, line 71 def index_save self.class.indexer.index(index: self.class.index_name, type: self.class.index_type, id: id, body: index_attributes) end