Class: Arelastic::Queries::Query
Direct Known Subclasses
Bool, ConstantScore, DisMax, Exists, Field, Filter, FunctionScore, Fuzzy, GeoBoundingBox, GeoDistance, GeoPolygon, HasChild, HasParent, Ids, Limit, Match, MatchAll, MatchNone, MatchPhrase, MultiMatch, Nested, Percolate, Prefix, QueryString, Range, Regexp, Script, SimpleQueryString, Term, Terms, Wildcard
Instance Method Summary
collapse
Methods inherited from Nodes::Node
#==, #convert_to_elastic, #read_option!
#binary
#polyadic
#unary
Instance Method Details
#has_child(path) ⇒ Object
8
9
10
|
# File 'lib/arelastic/queries/query.rb', line 8
def has_child path
Arelastic::Queries::HasChild.new path, self
end
|
#has_parent(path) ⇒ Object
12
13
14
|
# File 'lib/arelastic/queries/query.rb', line 12
def has_parent path
Arelastic::Queries::HasParent.new path, self
end
|
#negate ⇒ Object
16
17
18
|
# File 'lib/arelastic/queries/query.rb', line 16
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
|