As our Faceting documentations noted, you can combine facet filters with AND (conjunctive) and OR (disjunctive) operators. When using these operators, the engine handles the facet counts differently to keep a consistent user experience. This doesn’t happen at the API level but in the InstantSearch libraries.
If you'd like to modify the faceting attribute's operator,
- You can modify the operator parameter value to “
and” or “
or” in your refinementList widget.
- Using facetFilters, you can specify multiple filters as a conjunction(AND) or a disjunction(OR). For example,
// attribute1:value AND attribute2:value (multiple strings) "attribute1:value", "attribute2:value" // attribute1:value OR attribute2:value (multiple strings within an array) ["attribute1:value", "attribute2:value"],