module ElasticsearchHermes::Indexing::Model
Public Instance Methods
elastic_update(type: '_doc', index_name: self.class.to_s.underscore, id:, body:)
click to toggle source
# File lib/elasticsearch_hermes/indexing/model.rb, line 6 def elastic_update(type: '_doc', index_name: self.class.to_s.underscore, id:, body:) ElasticsearchHermes.client.index index_payload( index_name: index_name, type: type, body: body, id: id ) end
index_payload(index_name:, type:, id:, body:)
click to toggle source
# File lib/elasticsearch_hermes/indexing/model.rb, line 15 def index_payload(index_name:, type:, id:, body:) { type: type, index: index_name, id: id, body: body } end