Class: Arelastic::Queries::Query

Inherits:
Nodes::Node show all
Defined in:
lib/arelastic/queries/query.rb

Instance Method Summary collapse

Methods inherited from Nodes::Node

#==, #convert_to_elastic, #read_option!

Methods included from Arities::Binary

#binary

Methods included from Arities::Polyadic

#polyadic

Methods included from Arities::Unary

#unary

Instance Method Details

#negateObject



8
9
10
# File 'lib/arelastic/queries/query.rb', line 8

def negate
  Arelastic::Queries::Bool.new must_not: self
end

#nested(path) ⇒ Object



4
5
6
# File 'lib/arelastic/queries/query.rb', line 4

def nested path
  Arelastic::Queries::Nested.new path, self
end