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
3
20mo
May 20, 2022 (20 months ago)
Edward
Edward
03:17 PMQuick 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'.
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
Edward
03:18 PMpretty sure it's not possible.
Trying to do it through instantsearch too
Trying to do it through instantsearch too
Jason
Jason
08:37 PMI'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...
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Bug Found in InstantSearch Widget's Operator
em1nos noted a possible bug with the InstantSearch widget's default operator. Jason confirmed the bug and promptly issued a fix, to which em1nos confirmed the resolution.
17
31mo
Troubleshooting Facet Query Display in Instant Search.
Ankit was seeking a solution to improve multiple facets filtering in an instant search. Jason suggested creating a custom refinement list.
4
2mo
Issues with Using the OR Operator in Filter Query
Mehdi inquired about using OR in a filter query and was told by Kishore Nallan that only AND is supported. Ricardo suggested the use of multisearch and dedup, while Mehdi decided to modify the document's fields.
8
31mo