Class: ThinkingSphinx::BundledSearch

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/bundled_search.rb

Instance Method Summary collapse

Constructor Details

#initializeBundledSearch

Returns a new instance of BundledSearch.



5
6
7
# File 'lib/thinking_sphinx/bundled_search.rb', line 5

def initialize
  @searches = []
end

Instance Method Details

#search(*args) ⇒ Object



9
10
11
12
# File 'lib/thinking_sphinx/bundled_search.rb', line 9

def search(*args)
  @searches << ThinkingSphinx.search(*args)
  @searches.last.append_to client
end

#search_for_ids(*args) ⇒ Object



14
15
16
17
# File 'lib/thinking_sphinx/bundled_search.rb', line 14

def search_for_ids(*args)
  @searches << ThinkingSphinx.search_for_ids(*args)
  @searches.last.append_to client
end

#searchesObject



19
20
21
22
# File 'lib/thinking_sphinx/bundled_search.rb', line 19

def searches
  populate
  @searches
end