class Boolminot::Clauses::MatchNone
Public Class Methods
new(opts = {})
click to toggle source
# File lib/boolminot/clauses/match_none.rb, line 7 def initialize(opts = {}) @opts = opts end
Public Instance Methods
to_elasticsearch(options = {})
click to toggle source
only for compatibility with Elasticsearch 1.x and 2.x otherwise, defining body as opts would suffice
# File lib/boolminot/clauses/match_none.rb, line 13 def to_elasticsearch(options = {}) to_raw_bool(options) end
to_raw_bool(options = {})
click to toggle source
# File lib/boolminot/clauses/match_none.rb, line 17 def to_raw_bool(options = {}) { bool: { must_not: [negated.to_elasticsearch(options)] } } end