Guides / Sending and managing data / Manage indices and apps / Manage indices

Export and import indices and settings

You can export the configuration of one index and import it in another index. This can be useful if you want to:

  • Back up your index configuration
  • Track changes to the index configuration—for example, with a version control system
  • Apply the same configuration to multiple indices—for example, moving between staging and production environments, or when you have different indices for different geographical regions

If you want to copy an index’s settings to another index, see Copy indices.

Export records from your indices

You can export the records in your indices as a JSON file using one of these methods:

You can convert the resulting file to other formats like CSV: programmatically or with a JSON conversion tool.

You can’t export records from the Algolia dashboard.

Import records

If you want to upload records to Algolia, see these pages for more information:

What’s included in the index configuration

Your index configuration includes values for:

Export index configuration in the Algolia dashboard

To export the configuration of an index from the Algolia dashboard as a JSON file:

  1. Go to the Algolia dashboard and select your Algolia application.
  2. On the left sidebar, select Search.
  3. Select your Algolia index:

    Select your Algolia application and index

  4. Select Manage index > Export Configuration.

    Select an index and export its configuration as JSON file in the Algolia dashboard

  5. Select what you want to export: Settings, Synonyms, or Rules.

  6. Click Export Configuration to download a JSON file with the index configuration.

Export index configuration with the Algolia CLI

To export the configuration of an index with the Algolia CLI, run:

1
algolia indices config export YOUR_INDEX_NAME

You can select what you want to export by providing the --scope option. This command saves a JSON file with your index configuration. You can use this JSON file to import your index configuration in the dashboard—for example, in another index.

You can also export your settings, rules, and synonyms individually with these commands:

Check the Algolia CLI usage examples for more information.

Export index configuration with the API

Using the API, you can export the index settings, rules, and synonyms in any format. To export your settings, rules, and synonyms, you need an API key with settings permissions.

You can obtain the index configuration with the following methods:

Import index configuration in the Algolia dashboard

  1. Go to the Algolia dashboard and select your Algolia application.
  2. On the left sidebar, select Search.
  3. Select your Algolia index:

    Select your Algolia application and index

  4. Select Manage index > Import Configuration.

    Import an index configuration from a JSON file

  5. Select the JSON file you want to import.
  6. Choose what you want to import: Settings, Synonyms, or Rules.
  7. Type IMPORT to confirm and click Import Configuration.

    Importing settings replaces all existing index settings with the imported ones. Synonyms and rules are replaced if the synonym or rule already exists. Otherwise, new synonyms or rules are added.

Import index configuration with the Algolia CLI

To import the configuration of an index with the Algolia CLI, run:

1
algolia indices config import YOUR_INDEX_NAME

The command asks you which JSON file you want to upload and which scopes (settings, rules, synonyms) you want to import. The JSON file must be an object with settings, synonyms, or rules keys—for example, exported from the dashboard or the Algolia CLI.

You can also use these commands to import settings, rules, and synonyms individually:

Check the Algolia CLI usage examples for more information.

Import index configuration with the API

After importing a file with the index configuration, you can use these methods to change the configuration. You need an API key with editSettings permissions.

You can change the index configuration with the following methods:

Did you find this page helpful?