Algolia Academy
Learn more about: Pushing Data to Algolia
How indexing works
Most production indexing workflows have four stages:- Prepare your records.
Decide what a record represents and which attributes it needs.
Give each record a stable
objectID, so that sending it again updates it instead of creating a duplicate. For more information, see Prepare your data. - Transform and send your records. Reshape or enrich records if needed, then send them to your index. If the index doesn’t exist, the first write creates it. Integrations, connectors, and the Crawler can transform and send records for you. Otherwise, your app does both. To choose, see Choose how to send your data.
- Verify indexing. Indexing is asynchronous: wait for the indexing task to finish, then confirm that records arrive and that searches return them. For connectors, check the run status in the Algolia dashboard or with the Ingestion API.
- Keep your index up to date. Synchronize additions, changes, and deletions from your data source.
Choose how to send your data
Start with your data source, then choose how much of the indexing workflow you want Algolia to run.
You set up the BigCommerce, commercetools, and Zendesk integrations as connectors in the Algolia dashboard.
You install the other integrations in the platform.
With JSON and CSV connectors, your system must export the file to a hosted location.
Your index is only as current as that export.
Update your data
After the initial indexing, keep your index up to date with changes in your data source. Integrations, connectors, and the Crawler can do this for you. If you use the Push to Algolia connector or a Search API client, your app must trigger updates. Framework integrations detect supported model changes automatically.- Use incremental updates to add, change, or delete individual records.
- Compare data synchronization strategies to choose between partial updates and full index replacement.
- Handle concurrency with versioning if updates can arrive out of order.
- Recover from ingestion failures if a connector task can’t process some records.
Next steps
After your records are in an index, configure how Algolia searches them and where users search:- Configure searchable attributes and custom ranking to control what Algolia searches and rank records by business metrics such as popularity.
- If you don’t already have a search UI, build one.
- If you don’t already send click and conversion events, set up event collection.
- Improve relevance over time by reviewing search results and user behavior.