Method: SearchFlip::Index::ClassMethods#update_mapping
- Defined in:
- lib/search_flip/index.rb
#update_mapping ⇒ Object
Updates the type mapping within Elasticsearch according to the mapping currently specified. Raises SearchFlip::ResponseError in case any errors occur.
413 414 415 416 417 418 419 |
# File 'lib/search_flip/index.rb', line 413 def update_mapping if include_type_name? connection.update_mapping(index_name_with_prefix, { type_name => mapping }, type_name: type_name) else connection.update_mapping(index_name_with_prefix, mapping) end end |