Operators Reference
| Operator | Description | Example |
|---|---|---|
$eq | Equals (default) | {"status": "active"} |
$ne | Not equals | {"status": {"$ne": "archived"}} |
$gt | Greater than | {"score": {"$gt": 80}} |
$gte | Greater than or equal | {"priority": {"$gte": 7}} |
$lt | Less than | {"age": {"$lt": 30}} |
$lte | Less than or equal | {"count": {"$lte": 100}} |
$in | Value in list | {"status": {"$in": ["a", "b"]}} |
$nin | Not in list | {"status": {"$nin": ["x", "y"]}} |
$like | Pattern match (case-sensitive) | {"title": {"$like": "Important%"}} |
$ilike | Pattern match (case-insensitive) | {"email": {"$ilike": "%@company.com"}} |
$overlap | Array has any | {"tags": {"$overlap": ["urgent", "important"]}} |
$contains | Array has all | {"skills": {"$contains": ["python", "ml"]}} |
$json_contains | JSONB structural match | {"config": {"$json_contains": {"enabled": true}}} |
$and | All conditions match | {"$and": [{...}, {...}]} |
$or | Any condition matches | {"$or": [{...}, {...}]} |
Set
verbose: true in search_settings to include full metadata and internal IDs in search results.Examples
Common Patterns
Date Ranges
Multi-Status
Nested Properties
Next Steps
- Search Guide - Semantic search strategies
- Memory Operations - Core CRUD operations