Combine this filter with another using OR logic.
In RediSearch, OR operations are represented by pipe-separated conditions
within parentheses: (condition1|condition2)
or(other: FilterExpression): FilterExpression| Name | Type | Description |
|---|---|---|
other* | FilterExpression | The filter expression to combine with |
const filter = Tag("category").eq("books").or(Tag("category").eq("electronics"));
// Generates: (@category:{books}|@category:{electronics})