Class: Elastic::Datatypes::String

Inherits:
Default
  • Object
show all
Defined in:
lib/elastic/datatypes/string.rb

Constant Summary

Constants inherited from Default

Default::MAPPING_OPTIONS

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_optionsObject



3
4
5
6
7
# File 'lib/elastic/datatypes/string.rb', line 3

def mapping_options
  options = super
  options[:type] = 'text'
  options
end

#supported_queriesObject



9
10
11
# File 'lib/elastic/datatypes/string.rb', line 9

def supported_queries
  [:match, :term, :range]
end