lib/esse/backend/index/open.rb in esse-0.0.3 vs lib/esse/backend/index/open.rb in esse-0.0.4
- old
+ new
@@ -19,12 +19,10 @@
# in case of failure
# @return [Hash] the elasticsearch response
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-open.html
def open!(suffix: index_version, **options)
- name = suffix ? real_index_name(suffix) : index_name
-
- client.indices.open(options.merge(index: name))
+ client.indices.open(options.merge(index: index_name(suffix: suffix)))
end
# Open a previously closed index
#
# @option options [String, nil] :suffix The index suffix. Defaults to the index_version.