Closed dziugas-liaudinskas closed 1 year ago
filters
should be in the Typesense format for filter_by
described here.
So this line of code should be:
const filters = 'hierarchicalCategories.lvl2:=`Audio > Home Audio > Speakers (100DB)`';
(Backticks are used to escape strings in Typesense)
That solved the issue. Thanks!
Description
Hello, I'm using instantsearch
Configure
widget to define category pages. It is used as this:(you can see working example here. In
/app/routes/category/$slug.tsx
line 14 I define filters and in/app/components/Search.tsx
line 92 I use it).In this case, everything works as expected but if the category contains parentheses (eg
hierarchicalCategories.lvl2:"Audio > Home Audio > Speakers (100DB)"
) then I get400 - Could not parse the filter query
. Sorry that I don't have a reproducible case with a typesense adapter.Typesense Version: