Class: Sunspot::Query::Scope

Inherits:
Connective::Conjunction show all
Defined in:
sunspot/lib/sunspot/query/scope.rb

Instance Method Summary (collapse)

Methods inherited from Connective::Conjunction

#add_conjunction, inverse

Methods inherited from Connective::Abstract

#add_component, #add_conjunction, #add_disjunction, #add_negated_restriction, #add_negated_shorthand_restriction, #add_positive_restriction, #add_positive_shorthand_restriction, #add_restriction, #add_shorthand_restriction, #initialize, #negate, #negated?, #to_boolean_phrase

Methods included from Filter

#tag, #to_filter_query

Constructor Details

This class inherits a constructor from Sunspot::Query::Connective::Abstract

Instance Method Details

- (Object) to_params



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

def to_params
  { :fq => @components.map { |component| component.to_filter_query }}
end