Class: Sunspot::Search::StandardSearch

Inherits:
AbstractSearch show all
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, #query

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

#request_handlerObject



10
11
12
# File 'lib/sunspot/search/standard_search.rb', line 10

def request_handler
  super || :select
end