lib/searchkick/index.rb in searchkick-1.3.6 vs lib/searchkick/index.rb in searchkick-1.4.0

- old
+ new

@@ -31,9 +31,13 @@ def mapping client.indices.get_mapping index: name end + def settings + client.indices.get_settings index: name + end + def swap(new_name) old_indices = begin client.indices.get_alias(name: name).keys rescue Elasticsearch::Transport::Transport::Errors::NotFound