Method: Elasticsearch::Model::Adapter::ActiveRecord::Importing#__transform
- Defined in:
- lib/elasticsearch/model/adapters/active_record.rb
#__transform ⇒ Object
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 |