Class: Eson::Search::ConstantScore
- Inherits:
-
Object
- Object
- Eson::Search::ConstantScore
- Defined in:
- lib/eson/search/constant_score.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Attributes included from Queries
Attributes included from Filters
Instance Method Summary collapse
-
#constant_score { ... } ⇒ self
Generates a ‘constant_score` query in a query context.
-
#initialize(options = {}) ⇒ ConstantScore
constructor
A new instance of ConstantScore.
Methods included from Query
Methods included from Queries
#queries?, register, #to_query_hash
Methods included from Filters
#filters?, register, #to_query_hash
Constructor Details
#initialize(options = {}) ⇒ ConstantScore
Returns a new instance of ConstantScore.
15 16 17 |
# File 'lib/eson/search/constant_score.rb', line 15 def initialize( = {}) self. = 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.
13 14 15 |
# File 'lib/eson/search/constant_score.rb', line 13 def @options end |
Instance Method Details
#constant_score { ... } ⇒ self
11 |
# File 'lib/eson/search/constant_score.rb', line 11 short_name :constant_score |