Skip to main content
Required ACL: addObject Before using this method, you must create a push connector. This helper method creates push tasks with the addObject action and sents these requests in batches of 1,000. This method is subject to indexing rate limits and connector limits.

Usage

response, err := client.SaveObjectsWithTransformation(
  "ALGOLIA_INDEX_NAME",
  []map[string]any{map[string]any{"objectID": "1", "name": "Adam"}, map[string]any{"objectID": "2", "name": "Benoit"}}, search.WithWaitForTasks(true))
if err != nil {
  // handle the eventual error
  panic(err)
}

Parameters

  • Go
  • Java
  • JavaScript
  • PHP
  • Python
indexName
string
required
Name of the index to save records to.
objects
[]map[string]any
required
Records to save.
opts...
ChunkedBatchOption
Functional options to provide extra arguments.
I