Skip to main content
Attach metadata to documents at index time, then constrain queries to the documents whose metadata matches a filter. Filtering is evaluated on the locally loaded index, so call load_index() (or open a session) before querying with a filter.

Operators

OperatorMeaning
$eq, $neequals / not equals
$gt, $gte, $lt, $ltegreater / less than
$in, $ninvalue in / not in a list
$nearwithin a haversine distance of a point: "lat,lng,radiusMeters"
Compose multiple conditions with $and / $or (nestable). A single condition can be passed on its own without a wrapper.

Implementation

Runnable, per-language examples (catalog filters, geo $near, and filtering inside a session) live in the SDK guides:

Hybrid search

Blend semantic and keyword scoring.

Retrieval

Retrieval strategies overview.