Skip to content

Commit

Permalink
close index before update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgz committed Jun 28, 2024
1 parent 606600d commit 8cafcab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/esse/index/indices.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def reset_index(suffix: index_suffix, optimize: true, import: true, reindex: fal
# @TODO: Reindex using the reindex API
end
if optimize && number_of_replicas != new_number_of_replicas || refresh_interval != new_refresh_interval
close(suffix: suffix)
update_settings(suffix: suffix)
open(suffix: suffix)
end
update_aliases(suffix: suffix)
existing.each { |s| delete_index!(**options, suffix: s) }
Expand Down

0 comments on commit 8cafcab

Please sign in to comment.