Class: Sunspot::DSL::Search
- Inherits:
-
StandardQuery
- Object
- Scope
- FieldQuery
- StandardQuery
- Sunspot::DSL::Search
- Defined in:
- lib/sunspot/dsl/search.rb
Overview
This top-level DSL class is the context in which the block passed to Sunspot.query. See Sunspot::DSL::Query, Sunspot::DSL::FieldQuery, and Sunspot::DSL::Scope for the full API presented.
Constant Summary
Constants inherited from Scope
Instance Method Summary collapse
-
#data_accessor_for(clazz) ⇒ Object
Retrieve the data accessor used to load instances of the given class out of persistent storage.
-
#initialize(search, setup) ⇒ Search
constructor
:nodoc:.
Methods inherited from StandardQuery
Methods included from Paginatable
Methods included from Adjustable
#adjust_solr_params, #request_handler
Methods inherited from FieldQuery
#dynamic, #facet, #order_by, #order_by_random
Methods inherited from Scope
#all_of, #any_of, #dynamic, #text_fields, #with, #without
Constructor Details
#initialize(search, setup) ⇒ Search
:nodoc:
9 10 11 12 |
# File 'lib/sunspot/dsl/search.rb', line 9 def initialize(search, setup) #:nodoc: @search = search super(search, search.query, setup) end |
Instance Method Details
#data_accessor_for(clazz) ⇒ Object
25 26 27 |
# File 'lib/sunspot/dsl/search.rb', line 25 def data_accessor_for(clazz) @search.data_accessor_for(clazz) end |