If you use the Algolia AI Search & Discovery app to index your Shopify data, you can apply transformations to modify your records before they are indexed.
Transformations let you clean, enrich, or reshape your data, for example, renaming attributes, filtering records, or adding computed fields.
To configure a transformation:
1. Go to the Algolia dashboard and select your Algolia application.
2. On the left sidebar, select Data sources.
3. Open the Connectors page and navigate to Destinations.
4. Next to your Products and/or Collections destination, click the three dots > Edit transformation.
5. Choose an existing transformation, or create a new one, then select how you want to configure it:
-
Transform using the code editor:
- Write custom transformations – see Transform your data with code (includes autocompletion, syntax highlighting and predefined helper functions)
-
Transform without code:
- Manual transformations – see Transform your data without code
- AI Assist (beta) – see AI-assisted transformations
6. After saving, re-index your data (manually or via your sync schedule) to apply the transformation.
7. Verify the transformation was processed by checking the Connector Debugger. Then navigate to your products/collections index and verify the record data.