Skip to main content
Field operators provide precise control over how individual fields are matched. Use these when simple value matching doesn’t meet your needs.

Quick Reference

OperatorSupported Field TypesDescriptionExample
$smartallIntelligent multi-stage matching (default behavior){"name": {"$smart": "wireless"}}
$eqallExact equality{"status": {"$eq": "active"}}
$inallMatch any of multiple values{"status": {"$in": ["active", "pending"]}}
$gt, $gte, $lt, $ltenumeric, date, keywordRange comparison{"price": {"$gt": 10, "$lt": 100}}
$phrasetextPhrase matching with optional slop and prefix{"text": {"$phrase": {"query": "hello world", "slop": 1}}}
$fuzzytextTypo-tolerant matching (Levenshtein distance){"name": {"$fuzzy": {"term": "wireles", "distance": 1}}}
$regextextRegular expression pattern matching{"name": {"$regex": "wire.*"}}
$boostmodifier (on any operator)Adjust relevance score weight{"name": {"$eq": "wireless", "$boost": 2.0}}