Index a single object
If you need to index an object in response to some user action in your application, you can use the single object create endpoint.
If you need to index multiple objects at a time, we highly recommend using the import objects endpoint, which is optimized for bulk imports. For eg: If you have 100 objects, indexing them using the import endpoint at once will be much more performant than indexing objects one a time.
Let’s see how we can add a new object to a collection.
Related articles
Objects > Index multiple objects
Multiple objects can be efficiently indexed in a batch using the import API with the objects formatted as a newline delimited JSON string (JSONLines format).
Collections > Create a collection
The content describes how to create a collection in Answers and the available data types it supports.
Answers > Objects
Objects are records indexed in Answers, each containing an optional id field used as the document identifier or assigned an auto-generated one by Answers.
Answers > Collections
Objects with similar fields are grouped into Collections in Answers, analogous to tables in relational databases.