Class: Elastic::NestedQuery
- Inherits:
-
Object
- Object
- Elastic::NestedQuery
- Includes:
- Dsl::BoolQueryBuilder
- Defined in:
- lib/elastic/nested_query.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
Instance Method Summary collapse
- #as_node ⇒ Object
-
#initialize(_index, _root = nil) ⇒ NestedQuery
constructor
A new instance of NestedQuery.
- #score_mode(_mode) ⇒ Object
Methods included from Dsl::BoolQueryBuilder
#boost, #coord_similarity, #must, #must_not, #should, #with
Constructor Details
#initialize(_index, _root = nil) ⇒ NestedQuery
Returns a new instance of NestedQuery.
7 8 9 10 |
# File 'lib/elastic/nested_query.rb', line 7 def initialize(_index, _root = nil) @index = _index @root = _root || build_root_node end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
5 6 7 |
# File 'lib/elastic/nested_query.rb', line 5 def index @index end |