Method: Sunspot::Rails::Searchable::ClassMethods#solr_search_ids
- Defined in:
- lib/sunspot/rails/searchable.rb
#solr_search_ids(&block) ⇒ Object
Get IDs of matching results without loading the result objects from the database. This method may be useful if search is used as an intermediate step in a larger find operation. The block is the same as the block provided to the #search method.
Returns
- Array
-
Array of IDs, in the order returned by the search
154 155 156 157 158 |
# File 'lib/sunspot/rails/searchable.rb', line 154 def solr_search_ids(&block) solr_execute_search_ids do solr_search(&block) end end |