Skip to content

Index a single object

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.

Objects > Index multiple objects

Multiple objects can be efficiently indexed in batch using the import API through JSONLines format, offering better performance than sequential single-object indexing.

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 > 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.

Answers > Objects

Objects in Answers are indexed records with either custom string IDs or auto-generated identifiers, forming the basic data units within collections.