Class: Sunspot::Query::MoreLikeThisQuery

Inherits:
CommonQuery show all
Defined in:
sunspot/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_query_facet, #add_sort, #page, #paginate, #per_page, #solr_parameter_adjustment=, #to_params

Constructor Details

- (MoreLikeThisQuery) initialize(document, types)

A new instance of MoreLikeThisQuery



6
7
8
9
# File 'sunspot/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

- (Object) more_like_this

Returns the value of attribute more_like_this



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

def more_like_this
  @more_like_this
end

- (Object) scope

Returns the value of attribute scope



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

def scope
  @scope
end