Class: Elastic::Datatypes::String
- Defined in:
- lib/elastic/datatypes/string.rb
Constant Summary
Constants inherited from Default
Instance Method Summary collapse
Methods inherited from Default
#date_histogram_aggregation_defaults, #histogram_aggregation_defaults, #initialize, #match_query_defaults, #prepare_for_index, #prepare_for_query, #prepare_value_for_result, #range_aggregation_defaults, #range_query_defaults, #supported_aggregations, #term_query_defaults, #terms_aggregation_defaults
Constructor Details
This class inherits a constructor from Elastic::Datatypes::Default
Instance Method Details
#mapping_options ⇒ Object
3 4 5 6 7 |
# File 'lib/elastic/datatypes/string.rb', line 3 def = super [:type] = 'text' end |
#supported_queries ⇒ Object
9 10 11 |
# File 'lib/elastic/datatypes/string.rb', line 9 def supported_queries [:match, :term, :range] end |