Class: Refinery::SearchEngine
- Inherits:
-
Object
- Object
- Refinery::SearchEngine
- Defined in:
- app/models/refinery/search_engine.rb
Constant Summary collapse
- RESULTS_LIMIT =
How many results should we show per page
10
Class Method Summary collapse
-
.search(query, page = 1) ⇒ Object
Perform search over the specified models.
Class Method Details
.search(query, page = 1) ⇒ Object
Perform search over the specified models
8 9 10 |
# File 'app/models/refinery/search_engine.rb', line 8 def self.search(query, page = 1) PgSearch.multisearch(query).paginate(:page => page, :per_page => RESULTS_LIMIT) end |