Fix tootctl search deploy --only-mapping
not updating index settings (#34566)
This commit is contained in:
parent
40157e063d
commit
bd9223f0b9
2 changed files with 8 additions and 1 deletions
|
@ -12,6 +12,13 @@ module Chewy
|
|||
base_options.merge(number_of_replicas: 1, number_of_shards: (base_options[:number_of_shards] || 1) * 2)
|
||||
end
|
||||
end
|
||||
|
||||
def update_specification
|
||||
client.indices.close index: index_name
|
||||
client.indices.put_settings index: index_name, body: { settings: { analysis: settings_hash[:settings][:analysis] } }
|
||||
client.indices.put_mapping index: index_name, body: root.mappings_hash
|
||||
client.indices.open index: index_name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue