class DaedalSL::NestedBoolQuery
Public Class Methods
new(parent, options)
click to toggle source
# File lib/daedal-sl/nested_bool_query.rb, line 4 def initialize(parent, options) @parent = parent @base = Daedal::Queries::NestedQuery.new(options.merge(query: Daedal::Queries::BoolQuery.new)) end
Public Instance Methods
must() { || ... }
click to toggle source
# File lib/daedal-sl/nested_bool_query.rb, line 9 def must if (result = yield) @base.query.must << result end end
must_not() { || ... }
click to toggle source
# File lib/daedal-sl/nested_bool_query.rb, line 21 def must_not if (result = yield) @base.query.must_not << result end end
should() { || ... }
click to toggle source
# File lib/daedal-sl/nested_bool_query.rb, line 15 def should if (result = yield) @base.query.should << result end end