Api clients / JavaScript / V3 / Methods

Copy Settings | JavaScript API Client V3 (Deprecated)

Deprecated content
This documentation is for a deprecated version of JavaScript API client. Some features and settings may be missing or their usage may have changed. Refer to the documentation for the latest version of JavaScript API client for up-to-date information.
Required API Key: any key with the editSettings ACL
Method signature
Not implemented yet.
See how to achieve that in the example section

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.


Copy settings

$client->copySettings('indexNameSrc', 'indexNameDest');


type: string

Name of the source index to copy.

type: string

Name of the destination index.


No response.

Did you find this page helpful?