Copy rules
Required API Key:
any key with the
editSettings
ACL
suspend fun Index.copyRules( destination: IndexName, requestOptions: RequestOptions? = null ): RevisionIndex
You’re currently reading the JavaScript API client v4 documentation. Check the migration guide to learn how to upgrade from v3 to v4. You can still access the v3 documentation.
You’re currently reading the Ruby API client v2 documentation. Check the migration guide to learn how to upgrade from v1 to v2. You can still access the v1 documentation.
About this method # A
Copy the rules of an index to another index on the same app.
Note that this removes all Query Rules currently present in the destination index, and replaces them with the Query Rules from the source.
Examples # A
Read the Algolia CLI documentation for more information.
Copy rules#
1
index.copyRules(indexName)
Parameters # A
Response # A
This method doesn't return a response.