Class: Sunspot::Search::StandardSearch
- Inherits:
-
AbstractSearch
- Object
- AbstractSearch
- Sunspot::Search::StandardSearch
- Defined in:
- sunspot/lib/sunspot/search/standard_search.rb
Overview
This class encapsulates the results of a Solr search. It provides access to search results, total result count, facets, and pagination information. Instances of Search are returned by the Sunspot.search and Sunspot.new_search methods.
Instance Attribute Summary
Attributes inherited from AbstractSearch
facets, query, request_handler
Instance Method Summary (collapse)
Methods inherited from AbstractSearch
#add_date_facet, #add_field_facet, #add_query_facet, #build, #data_accessor_for, #dynamic_facet, #each_hit_with_result, #execute, #execute!, #facet, #facet_response, #hits, #initialize, #inspect, #populate_hits, #results, #total
Constructor Details
This class inherits a constructor from Sunspot::Search::AbstractSearch
Instance Method Details
- (Object) request_handler
10 11 12 |
# File 'sunspot/lib/sunspot/search/standard_search.rb', line 10 def request_handler super || :select end |