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