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