Logical OR filter for combining alternative filter conditions.
Combines two filter expressions with OR logic. In RediSearch, this is represented by pipe-separated conditions within parentheses.
class OrFilterDiscriminator 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 OrFilter(
Tag("brand").eq("Apple"),
Tag("brand").eq("Samsung")
);
// Generates: (@brand:{Apple}|@brand:{Samsung})