Class: Sunspot::Query::MoreLikeThisQuery
- Inherits:
-
CommonQuery
- Object
- CommonQuery
- Sunspot::Query::MoreLikeThisQuery
- Defined in:
- lib/sunspot/query/more_like_this_query.rb
Instance Attribute Summary collapse
-
#more_like_this ⇒ Object
Returns the value of attribute more_like_this.
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(document, types) ⇒ MoreLikeThisQuery
constructor
A new instance of MoreLikeThisQuery.
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(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_this ⇒ Object
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 |
#scope ⇒ Object
Returns the value of attribute scope.
4 5 6 |
# File 'lib/sunspot/query/more_like_this_query.rb', line 4 def scope @scope end |