@seanhoots I threw together a quick demo on the movies dataset on a Typesense instance (not using Docker, just the Linux executable). See the demo here: https://typesense.org/movies/
I tried to break that but it’s pretty stable. I also tried running the same dataset on Docker as well locally on my machine but again I could not get it to crash.
Your demo crashed however within a few searches. This leads me to believe that the issue is related to running Typesense on Digital Ocean or to a specific Docker version. To narrow down further, can you run Typesense using our Linux executable on Digital Ocean instead of via Docker? You can make the executable just point to the data directory used by the Docker container (so no need to re-index everything).
Also, I had a feedback about the demo: you don’t have to run a backend server to ferry requests to Typesense. You can access the Typesense server safely directly from Javascript – you have to do a couple of things:
a) Start Typesense with the “–enable-cors” option. This would allow you to make JS AJAX request to a Typesense host even if it is on a different domain/port.
b) When starting Typesense, provide a search only API key (e.g. “–search-only-api-key=SOME_KEY”). You can then use this search-only key for making Typesense searches from the JS client directly. See it in action here: https://typesense.org/assets/movies.js
Exposing the search-only key on the client side is safe since it can be used only for searches, and does not allow you to writes or access to other reads like collection listing etc.
2 Likes
Hey @Kfawcett, I tried your demo with my movies and it seems very stable and very fast too.
With regards to running my calls through a backend server, I actually don’t do that explicitly.
I connected to the TypeSense server through your rest api using the Bubble API Connector. I guess bubble ferry’s such calls through the server.
But using your javascript sdk here will work but be more difficult because of how bubble works.
It will be difficult to get the data structure into bubble to display in a repeating group without some complex structure.
But i can see how the javascript will be much faster.
I will try using the linux executable on Digital Ocean and see if its more stable than the docker image.
@seanhoots Did you get a chance to try with the Linux executable?
Also, Typesense version 0.10.0 has been released, and it has the import API: https://typesense.org/0.10.0/api/#import-documents
1 Like
@kishorenc any plans to switch from jsonl to csv for imports and exports?
CSV is widely used with more tool support than jsonl. Most data to be imported is going to be from a csv. I had to write a script to be doing the csv to jsonl conversion.
Please consider switching to CSV an option to use both csv and jsonl.
Thanks
@Kfawcett If you are still looking for a simple way to integrate Typesense with Algolia I have created a plugin to do so, either in a simple way where you get a search box + Pagination + sort by OR by giving the developer more control and allowing them to add any instantsearch widgets that suits their desired search experience “but some work will be needed”
Check out the following forum thread to know more:
Or just give it a try real quick with the following link:
https://typesenseplugindemo.bubbleapps.io/advance
Hi,
Can I use typesense as an action for doing searches in backend workflows?