As our Faceting documentation explains, you can combine facet filters using the operator AND (conjunctive), or the operator OR (disjunctive). 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 our frontend InstantSearch libraries.
If you'd like to modify the faceting attribute's operator,
- You can modify the operator parameter value to either “
and” or “or” in your refinementList widget.
Or, - 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"],