Hey! Quick question about `additionalSearchParamet...
# community-help
i
Hey! Quick question about
additionalSearchParameters
and
group_by
specifically. Is it the only option setting group_by during TypesenseInstantSearchAdapter initialisation? Currently it's a bit messy process to update
group_by
conditionally ( need to updateConfig ). Would be nice to have simpler API to update the value during runtime ( similar to filtering / sorting ). Am I missing anything?
j
Could you try setting the following via the
configure
widget:
Copy code
distinct: 2
attributeForDistinct: '<fieldToGroupBy>'
If that doesn’t work, then unfortunately it’s a limitation of instantsearch / Algolia since Algolia might not allow runtime configuration of the
attributeForDistinct
unlike in Typesense
i
Thank you! We've came to conclusion to throw away insta-search and just use pure Typesense API 😅 ( since we are using custom UI anyway )
😄 1