Method: Chewy::Index::Adapter::Base#import_references

Defined in:
lib/chewy/index/adapter/base.rb

#import_references(_batch_size) {|batch| ... } ⇒ Object

Uses the same strategy as import for the passed arguments, and returns an array of references to the passed objects. Returns ids if possible. Otherwise - and array of objects themselves.

Yield Parameters:

  • batch (Array<Object>)

    each batch of objects

Raises:

  • (NotImplementedError)


65
66
67
# File 'lib/chewy/index/adapter/base.rb', line 65

def import_references(_batch_size, &_block)
  raise NotImplementedError
end