Skip to main content

Content

The content field contains the searchable data of your documents. This is what gets indexed and can be queried.
  • Required: You must provide content when upserting documents
  • Format: JSON object structure
  • Searchable: All fields within content are indexed for search
  • Filterable: Content fields can be used in filter queries

Metadata

The metadata field stores additional context about your documents that won’t be indexed for search. This is useful for data you want to retrieve with your search results but don’t need to search through.
  • Optional: You can upsert documents without metadata
  • Format: JSON object structure
  • Not Searchable: Metadata fields are not indexed

Best Practices

Use Content WhenUse Metadata When
Users need to search for this informationInformation is for display/reference only (e.g. IDs)
The field is important for finding relevant documentsThe field provides context after finding documents
You want to filter results by this fieldYou need to track internal system information

Examples & Common Patterns

  1. E-commerce Products
  1. Knowledge Base Articles
  1. News Articles