Class: ElasticQuery::Query
- Defined in:
- lib/elastic_query/query.rb
Overview
This class represents a basic query like a term or match query
Direct Known Subclasses
FilteredQuery, FunctionScore, NestedQuery, QueryWrapper, RescoreQuery
Instance Attribute Summary collapse
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(query) ⇒ Query
constructor
A new instance of Query.
- #to_hash ⇒ Object
Constructor Details
Instance Attribute Details
#query ⇒ Object
Returns the value of attribute query.
6 7 8 |
# File 'lib/elastic_query/query.rb', line 6 def query @query end |
Instance Method Details
#to_hash ⇒ Object
16 17 18 |
# File 'lib/elastic_query/query.rb', line 16 def to_hash query end |