Class: Sunspot::Search::StandardSearch
- Inherits:
-
AbstractSearch
- Object
- AbstractSearch
- Sunspot::Search::StandardSearch
- Defined in:
- 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, #groups, #query, #stats
Instance Method Summary collapse
Methods inherited from AbstractSearch
#add_date_facet, #add_field_facet, #add_field_group, #add_field_stats, #add_query_facet, #add_range_facet, #build, #dynamic_facet, #execute, #execute!, #facet, #facet_response, #group, #group_response, #highlights_for, #hits, #initialize, #inspect, #query_time, #results, #stats_response, #total
Methods included from HitEnumerable
#data_accessor_for, #each_hit_with_result, #hits, #populate_hits, #verified_hits
Constructor Details
This class inherits a constructor from Sunspot::Search::AbstractSearch
Instance Method Details
#request_handler ⇒ Object
10 11 12 |
# File 'lib/sunspot/search/standard_search.rb', line 10 def request_handler super || :select end |