Skip to content

Index multiple objects

Index multiple objects

You can index multiple objects in a batch using the import API.

When indexing multiple objects, this endpoint is much more performant, than calling the single object create endpoint multiple times in quick succession.

The object to import need to be formatted as a newline delimited JSON string, aka JSONLines (opens new window) format. This is essentially one JSON object per line, without commas between documents. For example, here are a set of 3 documents represented in JSONL format.

Objects > Index a single object

Single objects can be indexed through a dedicated endpoint, though using the import objects endpoint is more efficient for bulk indexing operations.

Answers > Collections

Collections in Answers organize similar objects with shared fields, functioning like database tables where records can be created, updated, and retrieved using unique identifiers and various data formats.

Collections > Update a collection

Collections in Answers organize similar objects into groups, functioning like database tables with each record being identified through string-based IDs or automatically generated identifiers.

Collections > Create a collection

Collections in Answers organize objects with similar fields, functioning like database tables and supporting string and string list data types for indexing records.