Class: Eson::Search::MultiMatch
- Inherits:
-
Object
- Object
- Eson::Search::MultiMatch
- Includes:
- Query
- Defined in:
- lib/eson/search/multi_match.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(query, options = {}) ⇒ MultiMatch
constructor
A new instance of MultiMatch.
-
#multi_match { ... } ⇒ self
Generates a ‘multi_match` query in a query context.
- #to_query_hash ⇒ Object
Methods included from Query
Constructor Details
#initialize(query, options = {}) ⇒ MultiMatch
Returns a new instance of MultiMatch.
11 12 13 14 |
# File 'lib/eson/search/multi_match.rb', line 11 def initialize(query, = {}) self. = self.query = query end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Eson::Search::Query
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
9 10 11 |
# File 'lib/eson/search/multi_match.rb', line 9 def @options end |
#query ⇒ Object
Returns the value of attribute query.
9 10 11 |
# File 'lib/eson/search/multi_match.rb', line 9 def query @query end |
Instance Method Details
#multi_match { ... } ⇒ self
7 |
# File 'lib/eson/search/multi_match.rb', line 7 short_name :multi_match |
#to_query_hash ⇒ Object
16 17 18 |
# File 'lib/eson/search/multi_match.rb', line 16 def to_query_hash {:multi_match => {:query => query}.merge!()} end |