Method: Esse::Index::ClassMethods#search

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

#search(*args, &block) ⇒ Object

Parameters:

  • query_or_payload (String, Hash)

    The search request definition or query in the Lucene query string syntax

  • kwargs (Hash)

    The options to pass to the search.



8
9
10
11
# File 'lib/esse/index/search.rb', line 8

def search(*args, &block)
  kwargs = extract_search_options!(args)
  cluster.search(self, **kwargs, &block)
end