addObject
This helper method uses the Batch operations on one index operation.
It builds a batch request with either the partialUpdateObject
or partialUpdateObjectNoCreate
action,
depending on whether createIfNotExists
is true
or false
.
The method sends records in batches of up to 1,000.
This operation is subject to indexing rate limits.
Usage
Parameters
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
Name of the index to update records in.
Records to update.
The model of your index’s records.
Whether to add new records to the index if they don’t exist yet.
Whether to wait until all batch requests are done.
Parameter that can be used as a signal to cancel this request.