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 multiple objects

Multiple objects can be indexed efficiently through the import API using JSONLines format which allows one JSON object per line without commas between documents.

Objects > Index a single object

The process of indexing individual objects into collections can be done through a single object create endpoint while bulk indexing is recommended via the import objects endpoint for better performance.

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

Objects in Answers are organized into Collections which act as containers for similar records and function like database tables with unique identifiers.