Class: Eson::Search::Wildcard
- Inherits:
-
FieldBased
- Object
- FieldBased
- Eson::Search::Wildcard
- Includes:
- Query
- Defined in:
- lib/eson/search/wildcard.rb
Instance Attribute Summary
Attributes inherited from FieldBased
Instance Method Summary collapse
- #to_query_hash ⇒ Object
-
#wildcard { ... } ⇒ self
Generates a ‘wildcard` query in a query context.
Methods included from Query
Methods inherited from FieldBased
Constructor Details
This class inherits a constructor from Eson::Search::FieldBased
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Eson::Search::Query
Instance Method Details
#to_query_hash ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/eson/search/wildcard.rb', line 9 def to_query_hash if field {name => field.to_query_hash} else {name => } end end |
#wildcard { ... } ⇒ self
7 |
# File 'lib/eson/search/wildcard.rb', line 7 short_name :wildcard |