Module: Elasticsearch::Model::Adapter::Default::Importing

Defined in:
lib/elasticsearch/model/adapters/default.rb

Overview

Module for efficiently fetching records from the database to import them into the index

Instance Method Summary collapse

Instance Method Details

#__find_in_batches(options = {}, &block) ⇒ Object

This method is abstract.

Implement this method in your adapter

Raises:



53
54
55
# File 'lib/elasticsearch/model/adapters/default.rb', line 53

def __find_in_batches(options={}, &block)
  raise NotImplemented, "Method not implemented for default adapter"
end

#__transformObject

This method is abstract.

Implement this method in your adapter

Raises:



59
60
61
# File 'lib/elasticsearch/model/adapters/default.rb', line 59

def __transform
  raise NotImplemented, "Method not implemented for default adapter"
end