...

/

Sending Data to the Algolia Server

Sending Data to the Algolia Server

Learn how to send data to Algolia using API or Algolia's dashboard and interact with the sample code to see how we can push data using Algolia's API.

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 ...