Method: Elasticsearch::Model::Adapter::ActiveRecord::Importing#__transform

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

#__transformObject



107
108
109
# File 'lib/elasticsearch/model/adapters/active_record.rb', line 107

def __transform
  lambda { |model|  { index: { _id: model.id, data: model.__elasticsearch__.as_indexed_json } } }
end