Documentation Index Fetch the complete documentation index at: https://algolia.com/llms.txt
Use this file to discover all available pages before exploring further.
Based on the Batch operations on one index API operation.
This helper method creates a batch write request with the addObject action and automatically sends records in batches of 1,000.
This method is subject to indexing rate limits .
Usage
C#
Go
Java
JavaScript
Kotlin
PHP
Python
Ruby
Scala
Swift
var response = await client . SaveObjectsAsync (
"INDEX_NAME" ,
new List < Object >
{
new Dictionary < string , string >
{
{ "objectID" , "1" },
{ "visibility" , "public" },
{ "name" , "Hot 100 Billboard Charts" },
{ "playlistId" , "d3e8e8f3-0a4f-4b7d-9b6b-7e8f4e8e3a0f" },
{ "createdAt" , "1500240452" },
},
},
false ,
1000 ,
new RequestOptionBuilder (). AddExtraHeader ( "X-Algolia-User-ID" , "*" ). Build ()
);
Parameters
C#
Go
Java
JavaScript
Kotlin
PHP
Python
Ruby
Scala
Swift
Name of the index to which to add records.
The model of your index’s records.
Whether to wait until all batch requests are done.
Number of records to process in one batch.
Name of the index to which to add records.
Functional options to provide extra arguments. Signature: func(waitForTasks bool) chunkedBatchOptionWhether to wait until all batch requests are done.
Signature: func(batchSize int) chunkedBatchOptionNumber of records to process in one batch.
Signature: func(key string, value string) requestOptionSets extra header parameters for this request.
Signature: func(key string, value string) requestOptionSets extra query parameters for this request.
Name of the index to which to add records.
The model of your index’s records.
Whether to wait until all batch requests are done.
Number of records to process in one batch.
Name of the index to which to add records.
objects
Record<string,unknown>[]
required
Records to add.
Whether to wait until all batch requests are done.
Number of records to process in one batch.
Name of the index to which to add records.
Whether to wait until all batch requests are done.
Number of records to process in one batch.
Name of the index to which to add records.
Whether to wait until all batch requests are done.
Number of records to process in one batch.
Name of the index to which to add records.
Whether to wait until all batch requests are done.
Number of records to process in one batch.
Name of the index to which to add records.
Whether to wait until all batch requests are done.
Number of records to process in one batch.
Name of the index to which to add records.
Whether to wait until all batch requests are done.
Number of records to process in one batch.
Name of the index to which to add records.
Whether to wait until all batch requests are done.
Number of records to process in one batch.