Module: Boolminot::Clauses::Compounds::Base::InstanceMethods

Included in:
AtLeast, Boolminot::Clauses::Compounds::Base, Conjunction, Disjunction
Defined in:
lib/boolminot/clauses/compounds/base.rb

Instance Method Summary collapse

Instance Method Details

#clausesObject



9
10
11
# File 'lib/boolminot/clauses/compounds/base.rb', line 9

def clauses
  predicates
end

#to_raw_bool(options = {}) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/boolminot/clauses/compounds/base.rb', line 13

def to_raw_bool(options = {})
  if options.fetch(:added_to, {}).fetch(:should, []).empty?
    to_elasticsearch(options)
  else
    super
  end
end