Class: Sunspot::Query::StandardQuery

Inherits:
CommonQuery show all
Defined in:
sunspot/lib/sunspot/query/standard_query.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from CommonQuery

#[], #add_field_facet, #add_function, #add_query_facet, #add_sort, #page, #paginate, #per_page, #solr_parameter_adjustment=, #to_params

Constructor Details

- (StandardQuery) initialize(types)

A new instance of StandardQuery



6
7
8
9
# File 'sunspot/lib/sunspot/query/standard_query.rb', line 6

def initialize(types)
  super
  @components << @fulltext = CompositeFulltext.new
end

Instance Attribute Details

- (Object) fulltext

Returns the value of attribute fulltext



4
5
6
# File 'sunspot/lib/sunspot/query/standard_query.rb', line 4

def fulltext
  @fulltext
end

- (Object) scope

Returns the value of attribute scope



4
5
6
# File 'sunspot/lib/sunspot/query/standard_query.rb', line 4

def scope
  @scope
end

Instance Method Details

- (Object) add_fulltext(keywords)



11
12
13
# File 'sunspot/lib/sunspot/query/standard_query.rb', line 11

def add_fulltext(keywords)
  @fulltext.add(keywords)
end