I'm using the typesense-instantsearch-adapter in o...
# community-help
r
I'm using the typesense-instantsearch-adapter in order to use algolia widgets for our search interface. I've specified a
Copy code
additionalSearchParameters: { filter_by: `id:* || $collection(id: *)`, include_fields: `$collection(id,field, strategy: nest_array)` }
however, when I use one of the refinement widgets to filter on a specific facet, this
filter_by
value is no longer used in the additional search query that is submitted and my results no longer receive any of the included fields from the joined collection. Is there a way to get this working documented somewhere?
I've seen multiple github issues (#11, #196, etc) mention the use of using a configure widget to set a hidden persistent filter by, but that requires an actual facet / attribute afaik, which the left join syntax isn't really compatible with.
Copy code
configure({
  facetFilters: [`id:* || $collection(id:*)`]
}),
does not work because this is transformed into
Copy code
filter_by: "id:* || $collection(id:=[`*)`]"
d'oh.. I just need to use
filters
in the configure widget; those are not adjusted by the search adapter
f
r
Yeah, can confirm the configure widget is the solution. I just configured it wrong initially.
🙌 1
f
Happy you found a solution for it!
r
Thanks for your reply as well, gonne sneak a peek to see if there is anything else I can learn from 😁
f
Feel free to!