Sending Data to the Algolia Server
Explore how to send and manage data in Algolia by pushing records via the API or dashboard. Learn best practices for batch sizes, initializing the client with credentials, and ensuring efficient indexing to build a fast search experience.
We'll cover the following...
Overview
In the previous lesson, we discussed how to set up an Algolia account and how to create a new index, which serves as the container for our data.
We can push data to the Algolia server via API or the Algolia dashboard.
It is generally recommended to send data in batches especially for customers with a large list of records as that would reduce network calls and speed up indexing.
Note: For optimal indexing performance, Algolia recommends the batch size to be between 1,000 to 10,000 records, which are roughly 10 MB depending on the individual record size.
Using API
In order for Algolia to be able to search into our data, we need to send it to the Algolia server after we have retrieved our data from the ...