module Elasticsearch::Model::TransactionalCallbacks

Extend ElasticSearch::Model with transactional callbacks for asynchronous indexing

Constants

VERSION

Public Instance Methods

batch_delete_document() click to toggle source
# File lib/elasticsearch/model/transactional_callbacks.rb, line 27
def batch_delete_document
  Manager.queue.push(:delete, self)
end
batch_index_document() click to toggle source
# File lib/elasticsearch/model/transactional_callbacks.rb, line 19
def batch_index_document
  Manager.queue.push(:index, self)
end
batch_update_document() click to toggle source
# File lib/elasticsearch/model/transactional_callbacks.rb, line 23
def batch_update_document
  Manager.queue.push(:update, self)
end