add exact match filter condition
filters items where field exactly matches the specified value. supports string, number, and boolean values.
field name to filter on
value to match (string | number | boolean)
filter type: "must" (required), "should" (optional), or "must_not" (exclude). default: "must"
this filter builder for method chaining
add numeric range filter condition
filters items where numeric field falls within specified range. supports gte (>=), lte (<=), gt (>), and lt (<) operators.
numeric field name to filter on
range specification with operators
Optionalgte?: numbergreater than or equal to
Optionallte?: numberless than or equal to
Optionalgt?: numbergreater than
Optionallt?: numberless than
filter type: "must", "should", or "must_not". default: "must"
this filter builder for method chaining
add datetime range filter condition
filters items where datetime field falls within specified range. values should be RFC 3339 formatted strings (e.g., "2025-12-15T00:00:00Z").
datetime field name to filter on
range specification with operators (RFC 3339 strings)
Optionalgte?: stringgreater than or equal to
Optionallte?: stringless than or equal to
Optionalgt?: stringgreater than
Optionallt?: stringless than
filter type: "must", "should", or "must_not". default: "must"
this filter builder for method chaining
add geo-radius filter condition
filters items where geo-location field falls within specified radius from a center point. useful for location-based filtering.
geo-location field name
latitude of center point (degrees, -90 to 90)
longitude of center point (degrees, -180 to 180)
search radius in meters
filter type: "must", "should", or "must_not". default: "must"
this filter builder for method chaining
build final filter object
constructs the complete filter object from all added conditions. call this method last after chaining all filter methods.
content selection filter ready to use with client methods
fluent builder for creating content selection filters
provides chainable api for constructing complex filter conditions. supports must (required), should (optional/or), and must_not (exclusion) filter types. use with search(), getRecommendations(), and other content selection methods.
filter types:
Example