Class: ThinkingSphinx::BundledSearch
- Inherits:
-
Object
- Object
- ThinkingSphinx::BundledSearch
- Defined in:
- lib/thinking_sphinx/bundled_search.rb
Instance Method Summary collapse
-
#initialize ⇒ BundledSearch
constructor
A new instance of BundledSearch.
- #search(*args) ⇒ Object
- #search_for_ids(*args) ⇒ Object
- #searches ⇒ Object
Constructor Details
#initialize ⇒ BundledSearch
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 |
#searches ⇒ Object
19 20 21 22 |
# File 'lib/thinking_sphinx/bundled_search.rb', line 19 def searches populate @searches end |