Skip to main content

Index Mappings

An index mapping defines how documents and their fields are stored and indexed in Elasticsearch. Maestro is responsible for taking published Song metadata and translating it into Elasticsearch documents.

Depending on how Maestro is configured it can index data into documents in one of two ways:

The index mapping needs conform with your specific data model and therefore should be configured appropriatly. For more information see our platform guide covering index mappings.

While index mapping are not configurable at runtime, there may be cases where an administrator needs to change the mapping. For example, when updating Song's dynamic schemas, the administrator must also update the index mapping.

Feature Request In development

As part of our new data submission system we are working towards having Maestro automatically generate these index mappings based on a provided schema

Guidelines for Index Migration

Follow these steps to migrate your index when changes to the mapping are required:

  1. Update the existing index mapping: Modify the index mapping file to account for new analysis types and fields.

  2. Re-index the data: Trigger indexing by updating the .env.maestro environment file with the new index mapping or index via the Elasticsearch API.

  3. Update Elasticsearch aliases: Point your Elasticsearch aliases to the new or updated index instead of the old one.

Index Mapping Guide

For more detailed information see our platform guide on index mappings

Best Practices

  • Always test your new mapping in a non-production environment before applying changes to production.

  • Keep a backup of your old index until you've verified that the new index is working correctly.

  • Document all changes made to the index mapping for future reference.

    caution

    Changing index mappings can have significant impacts on how your data is stored and queried (Ex. Arranger Search API and UI configurations). Always ensure you understand the implications of any changes before implementing them.