Skip to main content
Required ACL: addObject Before using this method, you must create a push connector. This helper method creates a push task with the partialUpdateObject or partialUpdateObjectNoCreate actions, depending on whether the createIfNotExists option is true or false. Requests are sent in batches of 1,000 records. This method is subject to indexing rate limits and connector limits. This operation is subject to indexing rate limits.

Usage

response, err := client.PartialUpdateObjectsWithTransformation(
  "ALGOLIA_INDEX_NAME",
  []map[string]any{map[string]any{"objectID": "1", "name": "Adam"}, map[string]any{"objectID": "2", "name": "Benoit"}}, search.WithCreateIfNotExists(true), 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 update records in.
objects
[]map[string]any
required
Records to update.
opts...
PartialUpdateObjectsOption
Functional options to provide extra arguments.
I