Class: Sunspot::Query::StandardQuery
- Inherits:
-
CommonQuery
- Object
- CommonQuery
- Sunspot::Query::StandardQuery
- Defined in:
- lib/sunspot/query/standard_query.rb
Instance Attribute Summary collapse
-
#fulltext ⇒ Object
Returns the value of attribute fulltext.
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
- #add_fulltext(keywords) ⇒ Object
-
#initialize(types) ⇒ StandardQuery
constructor
A new instance of StandardQuery.
Methods inherited from CommonQuery
#[], #add_field_facet, #add_function, #add_geo, #add_group, #add_query_facet, #add_sort, #add_stats, #page, #paginate, #per_page, #solr_parameter_adjustment=, #to_params
Constructor Details
#initialize(types) ⇒ StandardQuery
Returns a new instance of StandardQuery.
6 7 8 9 |
# File 'lib/sunspot/query/standard_query.rb', line 6 def initialize(types) super @components << @fulltext = CompositeFulltext.new end |
Instance Attribute Details
#fulltext ⇒ Object
Returns the value of attribute fulltext.
4 5 6 |
# File 'lib/sunspot/query/standard_query.rb', line 4 def fulltext @fulltext end |
#scope ⇒ Object
Returns the value of attribute scope.
4 5 6 |
# File 'lib/sunspot/query/standard_query.rb', line 4 def scope @scope end |
Instance Method Details
#add_fulltext(keywords) ⇒ Object
11 12 13 |
# File 'lib/sunspot/query/standard_query.rb', line 11 def add_fulltext(keywords) @fulltext.add(keywords) end |