Standard and virtual replicas
Standard replicas are exact copies of your index. They let you to have a completely different configuration of your index, while keeping the data in sync with your primary index. Virtual replicas are an optional feature that references a primary index instead of duplicating it. They’re more efficient than standard replicas but you can only change a subset of the index settings. Virtual replicas are optimized for relevant sorting.This feature isn’t available on every plan.
Refer to your pricing plan to see if it’s included.
Naming replica indices
To help you identify your replica indices, you should adopt a naming pattern, such as{primaryIndex}_{sortingAttribute}_{asc_or_desc}
.
For example, products_price_desc
is a replica index of your products
index,
where the results are sorted by the price
attribute in descending order.
Create replica indices in the dashboard
- Go to the Algolia dashboard and select your Algolia application.
- On the left sidebar, select Search.
- Select your Algolia index.
- On the Replicas tab, click Create Replica Index.
- In the Create a new replica dialog, select Standard Replica (default) or Virtual Replica for Relevant Sort, enter a name for your replica, and click Create replica.
- You can add multiple replicas at once.
- Click Review and Save Settings.
Create replica indices with the API
To create replica indices, use thereplicas
setting in your primary index.
virtual
modifier for the replica index name: