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.
Related articles
Objects > Index a single object
The provided content explains how to efficiently index objects in an application using the appropriate API endpoints based on the number of objects being indexed.
Collections > Create a collection
The content describes how to create a collection in Answers and the available data types it supports.
Answers > Collections
Objects with similar fields are grouped into Collections in Answers, analogous to tables in relational databases.
Collections > Update a collection
Objects in Answers are grouped into collections, similar to tables in a relational database.