About this method
Copy the settings of an index to another index on the same app.
When creating a new index (for example, a temporary testing index or a new replica), you may need to copy the settings from a source of truth.
Note that this removes all settings currently present in the destination index, and replaces them with the settings from the source.
1 $client->copySettings('indexNameSrc', 'indexNameDest');
Name of the source index to copy.
Name of the destination index.