I have a React application displaying products. I'd like to filter by multiple categories like "shoe", "hat".
In typesense the request would look like this.
the request to typesense is then translated to filter_by: "category:=["shoe"] && category:=["hat"]" so I'll get no results since there's no product that's both a shoe AND a hat.
I retrieve the expected result by doing one filter at a time like so: <Configure facetFilters=["category:shoe"]/>
Expected Behavior
Was expecting that I could get results that's either shoe or hat referring to algolia docs that states that
[["category:Book", "category:Movie"], "author:John Doe"] translates as (category:Book OR category:Movie) AND author:"John Doe"
Description
I have a React application displaying
products
. I'd like to filter by multiple categories like"shoe", "hat"
. In typesense the request would look like this.But I can't seem to make it work with the instantsearch adapter. Did I miss something in my approach shown below?
Steps to reproduce
I have configured Instantsearch like so:
the request to typesense is then translated to
filter_by: "category:=["shoe"] && category:=["hat"]"
so I'll get no results since there's no product that's both ashoe
AND ahat
.I retrieve the expected result by doing one filter at a time like so:
<Configure facetFilters=["category:shoe"]/>
Expected Behavior
Was expecting that I could get results that's either
shoe
orhat
referring to algolia docs that states thatActual Behavior
No results found.
Metadata
Typesense Version: 0.22.0
OS: