- Metadata filtering — Tag documents with ownership, filter at query time.
- Tenant isolation — Full database-level separation between customers.
Metadata filtering
All data lives in the same tenant, you tag each document with ownership metadata. When searching, you filter to only return that user’s data. This approach is easier to manage. You enforce access control in your backend by validating the user’s access permissions.Tenant isolation
Tenant isolation provides full database-level isolation. Namespaces within your organization are standalone tenants. Within a single namespace, you can further manage tenants using thex-tenant-id header.
Using the tenant ID header
Pass thex-tenant-id header on every request to scope it to a specific tenant. You must include this header when both ingesting and searching. Queries without a tenant ID uses the namespace’s default tenant ID.
Next steps
- API Reference — Search endpoint parameters and options
- Document Metadata — Add metadata during ingestion
- Filtering — Filter search results by metadata