lib/esse/backend/index/aliases.rb in esse-0.0.3 vs lib/esse/backend/index/aliases.rb in esse-0.0.4
- old
+ new
@@ -42,10 +42,10 @@
options[:body] = {
actions: [
*indices.map do |index|
{ remove: { index: index, alias: index_name } }
end,
- { add: {index: real_index_name(suffix), alias: index_name } }
+ { add: {index: build_real_index_name(suffix), alias: index_name } }
],
}
client.indices.update_aliases(options)
end