- Type:
list<string>
- Default:
[]
- Scope:
search
filters
parameter,
which offers a simpler SQL-like syntax and supports combining numeric, facet, and tag filters.
However, sometimes you might want to combine filters
and numericFilters
in the same search.
Usage
- You can’t use boolean operators (
AND
,OR
,NOT
) insidenumericFilters
. - Multiple filters in a flat array are combined using
AND
. To combine filters withOR
, use nested arrays. - Filters support numeric values from
-4611686018427387
to+4611686018427387
. - Numeric precision is limited to three decimal places.
Numeric comparisons
- Syntax:
facet <operator> value
- Operators:
<
,<=
,=
,!=
,>=
,>
. - Example:
inStock = 1
Numeric ranges
-
Format:
facet:low TO high
-
Example:
price:5.99 TO 100
- Both bounds must be numeric.
- Ranges are inclusive.
Combining with filters
You can combine filters
and numericFilters
.
For example:
JavaScript
Example
Current API clients
Current API clients
Legacy API clients
Legacy API clients