From d7d9a4395d640e1cc4f70215610935242bdf0186 Mon Sep 17 00:00:00 2001 From: Mike Bennett Date: Wed, 25 Jan 2023 18:10:58 +0000 Subject: [PATCH] Explicitly set the is_write_index key on every switch_index option --- app/models/concerns/indexable.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/concerns/indexable.rb b/app/models/concerns/indexable.rb index 6c73a4297..27a66da69 100644 --- a/app/models/concerns/indexable.rb +++ b/app/models/concerns/indexable.rb @@ -1099,6 +1099,7 @@ def switch_index(options = {}) add: { index: index_name, alias: alias_name, + is_write_index: is_write_index, }, }, ],