lib/esse/backend/index/existance.rb in esse-0.0.3 vs lib/esse/backend/index/existance.rb in esse-0.0.4
- old
+ new
@@ -10,11 +10,10 @@
#
# @param options [Hash] Options hash
# @option options [String, nil] :suffix The index suffix. Defaults to the index_version.
# Use nil if you want to check existence of the `index_name` index or alias.
def exist?(suffix: index_version)
- name = suffix ? real_index_name(suffix) : index_name
- client.indices.exists(index: name)
+ client.indices.exists(index: index_name(suffix: suffix))
end
end
include InstanceMethods
end