Method: Esse::Search::Query#initialize

Defined in:
lib/esse/search/query.rb

#initialize(transport, *indices, suffix: nil, **definition, &_block) ⇒ Query



13
14
15
16
17
# File 'lib/esse/search/query.rb', line 13

def initialize(transport, *indices, suffix: nil, **definition, &_block)
  @transport = transport
  @definition = definition
  @definition[:index] = self.class.normalize_indices(*indices, suffix: suffix) if indices.size > 0
end