- Defined in:
This class presents an API for building restrictions in the query DSL. The methods exposed are the snake-cased names of the classes defined in the Sunspot::Restriction module, with the exception of Base. All methods take a single argument, which is the value to be applied to the restriction.
Direct Known Subclasses
Instance Method Summary (collapse)
- (Restriction) initialize(field, scope, negative)
- () initialize(field, scope, negative)
11 12 13
# File 'sunspot/lib/sunspot/dsl/restriction.rb', line 11 def initialize(field, scope, negative) #:nodoc: @field, @scope, @negative = field, scope, negative end