Method: Chewy::Index::Adapter::Base#import
- Defined in:
- lib/chewy/index/adapter/base.rb
#import(_batch) {|_batch| ... } ⇒ true, false
Splits passed objects to groups according to :batch_size options.
For every group creates hash with action keys. Example:
{ delete: [object_or_id1, object_or_id2], index: [object3, object4, object5] }
45 46 47 |
# File 'lib/chewy/index/adapter/base.rb', line 45 def import(_batch, &_block) raise NotImplementedError end |