We just posted a full detailed tutorial on how to connect TypeSense using the API Connector in Bubble. It starts from scratch and builds everything up that you need to know. We don’t cut any of our mistakes out so you can see what happens when you forget a comma.
If you want fast searches with a lot of data, TypeSense is a great solution. TypeSense is a great alternative to Algolia. I have seen charges of over $700/month with Algolia when TypeSense is only charging $40. It’s a great deal and scales well. When using the Bubble Algolia integration you are forced to expose all of your data as public. This is not secure and can cause a lot of issues for you later if you get hacked. TypeSense does not require you to have your data exposed in Bubble. So that means that privacy rules can be kept in place. Enjoy!
We just added a way to skip to chapters in our eLearning Hub so it will be much easier to navigate now.
Here are the Chapters:
Creating Your TypeSense Account
Installing the API Connector
Understanding the TypeSense Documentation
API Connector - Create a Collection (DataType)
TypeSense API Keys
Inserting the Node (URL)
Adding (Upsert) Documents (Data Records)
Deleting a Document (Data Record)
Searching Documents (Searching Your Database)
Displaying and Using TypeSense in Your App
Creating a New Thing In Bubble and TypeSense
Search Using TypeSense in Your App
Modifying (Editing) Your Data Records
Deleting a Data Record
It also includes links to an editor where you can see how it works.
Fantastic to have a tutorial on how to do this!
While we haven’t used the course above, we have similarly implemented Typesense using the Bubble API Connector on our site Browse Kids Activities in Australia - Kidsbook
Coupled with the new flex box responsive engine, it is definitely worth the effort for rapid searching on your website or app!
I tried with the same RG without the images to avoid using bubble’s search, thinking this may increase the speed, but it didn’t, and tried the fuzzy search for 100 times bigger RG and it was faster than typesense I must be doing something wrong
I think you only really notice a difference when you have hundreds of thousands of items if not millions in your database. That’s when bubble slows down and TypeSense is faster.
Why would you want to use TypeSense if you only have 18 items? Bubble can handle quick searches for thousands of items. It’s when it gets to very large numbers when you would need to use something like TypeSense.
The 18 items are in the test version, and Still this is not the issue, the issue is that it seems that it can’t handle 18 records while it is being advertised as a lightning-fast search engine so my 1st assumption is that it is me who is doing something wrong “P.S. I followed your tutorial to the letter, amazing tutorial btw” but what use of the knowledge if the outcome is bad
Would it make any difference when you click a button instead of wait for bubble to trigger the search. I think this is the plugin we use to speed that up: Keystroke Input Trigger Plugin | Bubble
Try not doing any bubble search. Just straight TypeSense to see if there is an improvement. Don’t use any conditionals. Test it like that to see if there is any improvement.
If I think of anything else to try I will let you know.
Hi @ahmed.khodeir.87 any data required for displaying search results we store in Typesense. This includes the full image URL. If you add queries back to the bubble DB, you will see a noticeable lag on the search results in the repeating group.
If you are using any filtering parameters in Typesense, we have recently noticed due to a bubble update in the GET API call, that && to join filter conditions in typesense is not returning results correctly. After a few hours of frustration, replacing && with %26%26 did the trick.
As in only display data returned by typesense. Don’t use typesense and then “Do a Search” in bubble.
I am more than happy to take a look at your setup and offer some advice if that would be helpful.