Skip to main content
Required ACL: editSettings The copySettings method removes all current settings of the destination index, and replaces them with the settings from the source index. If the destination index doesn’t exist, the copySettings method creates it. In that case, the new index has the settings of the source index, but not the records, Rules, or synonyms. This method doesn’t copy the enableReRanking and mode settings. To copy more than settings, use the copyIndex method with the appropriate scope parameter.

Examples

Copy settings

client.CopySettings("indexNameSrc", "indexNameDest");

// Asynchronous
await client.CopySettingsAsync("indexNameSrc", "indexNameDest");

Parameters

indexNameDest
string
required
Name of the destination index.
indexNameSrc
string
required
Name of the source index to copy.
Last modified on March 12, 2026