Logical AND filter for combining multiple filter conditions.
Combines two filter expressions with AND logic. In RediSearch, this is represented by space-separated conditions within parentheses.
class AndFilterDiscriminator property for type-safe filter identification. Each filter type has a unique filterType value.
Combine this filter with another using AND logic.
In RediSearch, AND operations are represented by space-separated conditions
within parentheses: (condition1 condition2)
Combine this filter with another using OR logic.
In RediSearch, OR operations are represented by pipe-separated conditions
within parentheses: (condition1|condition2)
Converts the filter expression to a RediSearch query string.
const filter = new AndFilter(
Tag("category").eq("electronics"),
Num("price").between(100, 500)
);
// Generates: (@category:{electronics} @price:[100 500])