Class: Elastic::Datatypes::Term

Inherits:
Default
  • Object
show all
Defined in:
lib/elastic/datatypes/term.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, #supported_queries, #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/term.rb', line 3

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