Filter operators
Basic filtering
Pass afilter object to return only documents with matching metadata values.
Using comparison operators
Range queries
Combine operators to filter within a range.Using array operators
Match documents where a field equals any value in an array.Combining filters
Use$and and $or to combine multiple conditions.
Checking field existence
Filter documents based on whether a metadata field exists.Next steps
- API Reference — Filter parameters and options
- Document Metadata — Add metadata during ingestion
- Ranking — Control how results are scored and ordered
- Data Segregation — Strategies for multi-tenant applications