Skip to content

Objects

What are objects in Tallyfy Answers?

Objects are the fundamental data records in Tallyfy Answers.

Each object represents a single item that can be indexed, retrieved, and searched within your collections.

How do objects work in Tallyfy Answers?

An object in Tallyfy Answers:

  • Contains data in JSON format
  • Belongs to a specific collection
  • Has a unique identifier (either custom or auto-generated)
  • Can store multiple properties and values
  • Is fully searchable once indexed

How do object identifiers work?

Tallyfy Answers handles object identifiers in two ways:

  1. Custom IDs: If your object includes an id field of type string, Tallyfy Answers will use this as the identifier:

    {
    "id": "product-123",
    "name": "Wireless Headphones",
    "price": 79.99
    }
  2. Auto-generated IDs: If no id field is provided, Tallyfy Answers will automatically generate a unique identifier:

    {
    "name": "Wireless Headphones",
    "price": 79.99
    }

The id field is special and doesn’t need to be explicitly defined in your Tallyfy Answers collection schema.

How flexible is object structure?

Unlike traditional databases, Tallyfy Answers doesn’t require you to predefine a rigid schema before adding objects.

The system automatically detects properties and data types as you index objects, providing flexibility as your data evolves.

What operations can you perform on objects?

With Tallyfy Answers, you can perform these object operations:

What are the best practices for objects?

  • Use consistent property names across similar objects
  • Choose meaningful custom IDs when possible
  • Structure nested data appropriately for searching
  • Consider batching multiple objects for more efficient indexing
  • Include all relevant data for search in your objects

Browse all Tallyfy Answers object management operations below:

Answers > Collections

Tallyfy Answers collections are organizational structures that function like database tables to group related objects together while providing dynamic schema detection searchability and complete management capabilities for efficient data organization and retrieval.

Answers > Search

Tallyfy Answers search enables users to find specific objects within collections using natural language queries or specific terms through a query-based operation system.

Objects > Get an object

The Tallyfy Answers API provides a GET endpoint that retrieves individual objects from collections using their unique identifier and returns complete object data with all properties including system-generated timestamps.

Objects > Index a single object

The Tallyfy Answers API endpoint enables adding single objects to collections in real-time through POST requests with JSON data ideal for individual record creation and testing while bulk operations should use the import endpoint for better performance.