Class: Sunspot::Query::Restriction::Containing

Inherits:
AbstractRange show all
Defined in:
lib/sunspot/query/restriction.rb

Constant Summary

Constants inherited from Base

Base::RESERVED_WORDS

Instance Method Summary collapse

Methods inherited from Base

#negate, #negated?, #to_boolean_phrase, #to_negated_boolean_phrase, #to_params, #to_positive_boolean_phrase

Methods included from Filter

#tag, #to_filter_query

Constructor Details

#initialize(negated, field, value) ⇒ Containing

Returns a new instance of Containing.



383
384
385
386
# File 'lib/sunspot/query/restriction.rb', line 383

def initialize(negated, field, value)
  @operation = 'Contains'
  super
end