Overview
Filters narrow search and recommendation results based on product attributes. Use filters for price ranges, categories, availability, and custom metadata.Basic Syntax
string
required
The product field to filter on. Use dot notation for nested metadata fields:
metadata.color.any
required
The value to compare against. Type depends on the operator.
Operators
Equality
- eq (equals)
- ne (not equals)
Comparison
- gt (greater than)
- gte (greater than or equal)
- lt (less than)
- lte (less than or equal)
Array Operators
- in (in array)
- nin (not in array)
Existence
true) or doesn’t exist (false).
Text Matching
Operator Reference
Common Patterns
Price Range
In Stock Only
Multiple Categories
Exclude Sale Items
Has Reviews
Brand Exclusion
Filter Logic
Multiple filters are combined with AND logic. All conditions must be true for a product to be included.OR logic isn’t directly supported. Use the
in operator for “field equals A OR field equals B” scenarios.Metadata Fields
Access nested metadata using dot notation:Sorting
Combine filters with sorting:pricemetadata.ratingmetadata.popularitymetadata.createdAt
Filter Options in Response
Search responses include available filter values:Performance Tips
Next Steps
Text Search
Search with text queries
Recommendations
Filter recommendations too