Method: Chewy::Index::Adapter::Base#load

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

#load(_ids, **_options) ⇒ Object

Returns array of loaded objects for passed ids array. If some object was not loaded, it returns nil in the place of this object

load([1, 2, 3]) #=> # [, nil, ], assuming, #2 was not found

Raises:

  • (NotImplementedError)


75
76
77
# File 'lib/chewy/index/adapter/base.rb', line 75

def load(_ids, **_options)
  raise NotImplementedError
end