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

The import API enables efficient batch indexing of multiple objects using JSONLines format which outperforms sequential single-object indexing operations.

Answers > Collections

Collections act as organizational structures in Answers that group similar objects together and function like database tables for efficient data management and retrieval.

Collections > Create a collection

Collections must be created with a name before adding objects to Answers which automatically detects properties and data types based on indexed objects supporting string and list of strings formats.

Answers > Objects

Objects in Answers function as indexed records that utilize either custom string IDs or auto-generated identifiers without requiring explicit schema definition.