addObject
This method replaces all records in an index without interrupting ongoing searches.
It combines batch and copy/move index operations:
- Copy settings, synonyms, and rules to a temporary index.
- Add the records from the
objects
parameter to the temporary index. - Replace the original index with the temporary one.
INDEX_NAME_tmp_*
(replace INDEX_NAME
with the name of your original index).
This method is subject to indexing rate limits.
The response includes the results of the individual API requests.
Usage
Parameters
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
Name of the index in which to replace records.
Records that replace the existing records in your index.
The model of your index’s records.
Number of records to process in one batch.
Scopes to include in the replacement operation.
Can be one or more of
settings
, synonyms
, or rules
.
For more details, see Scope types.Additional request options.
Parameter that can be used as a signal to cancel this request.