-
Notifications
You must be signed in to change notification settings - Fork 0
Filters
This parameter uses SQL-like syntax, where you can use boolean operators and parentheses to combine individual filters.
Format: ${attributeName}:${value}
Example: name:john
Format: ${attributeName} ${operator} ${value}
Example: price > 12.99
The ${value} must be numeric. Supported operators are <
, <=
, =
, !=
, >=
and >
, with the same semantics as in virtually all programming languages.
Format: ${attributeName}:${lowerBound} TO ${upperBound}
Example: price:5.99 TO 100
${lowerBound}
and ${upperBound}
must be numeric. Both are inclusive.
Example:
price < 10 AND (category:Book OR NOT category:Ebook)
Individual filters can be combined via boolean operators. The following operators are supported:
-
OR
: must match any of the combined conditions (disjunction) -
AND
: must match all of the combined conditions (conjunction) -
NOT
: negate a filter
Parentheses, (
and )
, can be used for grouping.
You cannot negate a group of filters, only an individual filter. For example, NOT(filter1 OR filter2) is not allowed.