Module: Searchkick::Search

Defined in:
lib/searchkick/search.rb

Instance Method Summary collapse

Instance Method Details

#search(term = nil, options = {}) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/searchkick/search.rb', line 4

def search(term = nil, options = {})
  query = Searchkick::Query.new(self, term, options)
  if options[:execute] == false
    query
  else
    query.execute
  end
end