Class: Sunspot::Query::MoreLikeThisQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CommonQuery

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

Constructor Details

#initialize(document, types) ⇒ MoreLikeThisQuery

Returns a new instance of MoreLikeThisQuery.



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

def initialize(document, types)
  super(types)
  @components << @more_like_this = MoreLikeThis.new(document)
end

Instance Attribute Details

#more_like_thisObject

Returns the value of attribute more_like_this.



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

def more_like_this
  @more_like_this
end

#scopeObject

Returns the value of attribute scope.



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

def scope
  @scope
end