Utilizing 'And' & 'Or' Operators with Facet Filters in InstantSearch

TLDR Edward inquires about using both 'and' and 'or' operators with facet filters in InstantSearch. Jason is unsure but suggests creating a custom widget.

Powered by Struct AI
May 20, 2022 (20 months ago)
Photo of md5-abd5ee17039f6a27ff7f2bc0e3ef7131
03:17 PM
Quick question, has anyone managed to achieve a scenario with facet filters where they can get it to treat selections of facets with the operator 'and' but also 'or' too.
We would preferably like to have the results at the top of the list using the 'and' operator but once these results end, it would use 'or'.
03:18 PM
pretty sure it's not possible.
Trying to do it through instantsearch too
Photo of md5-8813087cccc512313602b6d9f9ece19f
08:37 PM
I'm not sure this is possible to do with the native instantsearch widgets. But you might be able to do this with a custom widget...