module ElasticRecord::Index::MappingType
This module facilitates the removal of multiple mapping types from ElasticSearch. See www.elastic.co/guide/en/elasticsearch/reference/6.x/removal-of-types.html
* 6.x - Type defaults to _doc, but any type can be specified * 7.x - Only _doc will be supported, effectively removing the type concept.
Constants
- DEFAULT_MAPPING_TYPE
Attributes
mapping_type[W]
Public Instance Methods
custom_mapping_type_name?()
click to toggle source
# File lib/elastic_record/index/mapping_type.rb, line 19 def custom_mapping_type_name? mapping_type != MappingType::DEFAULT_MAPPING_TYPE end
mapping_type()
click to toggle source
# File lib/elastic_record/index/mapping_type.rb, line 15 def mapping_type @mapping_type || DEFAULT_MAPPING_TYPE end