I just used the delete object call and it delete my entire index. Please help.
I figured out the issue. I delete the object in bubble before the Algolia action, so there was no ID to send to Algolia. Apparently without an object ID the API call to delete the entire index is the same API call without an object ID. That is very concerning.
Would you mind sharing the workflows and your particular use case and what are you trying to achieve? To delete the object, the ID should be present, so that the plugin can delete the object with that ID.
I already wrote a different workflow to solve the issue.
It’s pretty simple, if you don’t present an object ID when deleting an Algolia object, it will delete the whole index you have specified. In my case I was deleting a bubble item, but I didn’t put the delete Algolia function before the delete bubble item. In the workflow there was no Object ID to pass to the Algolia delete function, because it had already been deleted in bubble. . This led to the whole index being deleted.
Is there a way to delete a list of algolia? I have projects in my app. In those projects I have line items associated to that project. I want to be able to delete all the Algolia that are associated with certain projects after a customer cancels their project.
Currently the customer is using faceting to filter their search to their current project. I just need an effective way to delete the Algolia to keep my Algolia bill low.
Some of my projects have thousands of Algolia that need to be deleted and I would hate to have the use the bubble backend scheduler to run that many times.
Is this possible with your plugin? Or can it be added?
Currently, it is not possible to delete a list of Algolia, however, we will investigate adding a such feature in the next plugin update. Once the investigation is completed, we’ll get back to you with more details.
Hello, is it possible to add a function to this plugin? Instead of having to send thousands of individual records, it would be great to batch them by hundreds or a thousand.
In order to better understand your request, can you please let us know how exactly you want to batch data - by attribute or by records?
There are 2 possibilities:
We are looking to hearing from you soon.
Best regards,
Zeroqode Support Team
I want to be able to send a list of records to Algolia for creation. Currently you plugin only allows one record creation at a time. I need the ability to send a larger JSON lists of objects to be created. If I was to use the bubble backend API one at a time it would take hours to send each object one at at time. Below is a link to Algolia’s discussing sending batches to their API.
Algolia lets you send one or more records in a single API call, or batch records. You can batch your indexing operations via the API or the dashboard.
For optimal indexing performance, you should send your records in batches. An ideal batch size is ~10 MB, which represents between 1,000 or 10,000 records depending on the average record size.
Batching has several benefits: it reduces network calls and speeds up indexing. Users with lots of records see the most significant impact on performance, but every Algolia user should batch indexing operations whenever possible.
Batching doesn’t change how Algolia counts indexing operations. Every indexing operation adds to your count. If you send several records, each of them still counts as one operation."
Something like the code below.
const Algolia = require(‘algoliasearch’);
const client = Algolia(process.env.ALGOLIA_APP_ID, process.env.ALGOLIA_API_KEY);
const index = client.initIndex(‘you_index_name’);
We need to highlight that we have pretty detailed documentation for this plugin. Under the Bubble Setup and Usage section, we have quite a detailed list of plugin content described:
We named all the fields according to some rules, however, we have a lot of information about using all the keys.
For example, you can quickly check our free course for the setup of the Algolia plugin (The second lesson shows how to set up API keys) :
In order to help you and investigate the root cause of the issue and how to fix it, please share with us as many details as possible about your current setup of Algolia and the plugin itself.
We are looking to hearing from you soon.
Best regards,