Method: Chewy::Search::Loader#initialize

Defined in:
lib/chewy/search/loader.rb

#initialize(indexes: [], **options) ⇒ Loader

Returns a new instance of Loader.

Parameters:

  • indexes (Array<Chewy::Index>) (defaults to: [])

    list of indexes to lookup

  • options (Hash)

    adapter-specific load options

See Also:



14
15
16
17
# File 'lib/chewy/search/loader.rb', line 14

def initialize(indexes: [], **options)
  @indexes = indexes
  @options = options
end