#community-help

Exporting Filtered Results from UI into CSV or JSON

TLDR Rohan asked how to export filtered results from a Typesense application into csv or json. Jason suggested building a custom widget for this purpose.

Powered by Struct AI

2

4
31mo
Solved
Join the chat
Apr 27, 2021 (31 months ago)
Rohan
Photo of md5-ca6495d5be926db80e09aabf066f4b8b
Rohan
05:03 PM
Hi! I made an application using Typesense and instantsearch.js library, wanted to ask if there is a way to export the filtered results from UI into csv or json?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:28 PM
Hi Rohan, you'd essentially need to build a custom widget which will have access to the latest set of results. Then in the widget, when a user clicks on the download button, you can then convert the JSON object of results into a CSV file using something like this.
08:29
Jason
08:29 PM
If you do build a custom widget for this, would be cool to open source it! :)
Apr 28, 2021 (31 months ago)
Rohan
Photo of md5-ca6495d5be926db80e09aabf066f4b8b
Rohan
05:43 AM
Thanks Jason i’ll give this a shot.

2