Services Plugins FAQs

Algolia Search V2.0 Plugin - Sending result data to a page

Hi,

Just experimenting with your plugin, and I can’t figure out the proper way to send the result data to a page.

This is what I want a user to do:
Input a query → see a list of results → click on a result → be taken to a page with more info about that result → save that result

I’ve experimented with creating an action that saves the Algolia Unique ID of the result as a user field, and then when the page loads, it triggers another Algolia plugin search with the Algolia Unique ID as the query.

However, this means the user can’t click ‘back’ multiple times if they have viewed multiple result pages, as it keeps reloading as the Algolia Unique ID result they have saved. And the plugin has to be triggered every page load, which seems like a waste of computing power.

Basically, I feel like I’m going at this completely the wrong way.

I hope that made sense!

Thank you,
Kauri

Hello @kauri.p6,

Thank you for reaching out to us!

Have you considered an alternative approach to saving the Algolia Unique ID by inserting it into the URL instead of storing it in the database? You can achieve this using the “Go to page” action and enabling the “Send more parameters to the page” option. Here’s how you can set it up to send the unique ID of the Algolia item to the URL of the next page:

Then, on the second page, you can configure the plugin to retrieve the ID from the URL with the “Get Data from page URL” rather than the database.

We encourage you to give this approach a try on your page and share the results with us. It might offer a solution to your challenge.

Hoping to hear back from you soon :hugs:

Hi thanks so much for your quick reply!

I don’t seem to be getting the results tho so I’m probably doing something wrong.

Sending data to page:
image
Has it got something to do with the field I’m sending? I can’t see a field that is the Algolia ID so I’m just sending the first one, which is the name of the course

Second Page URL:


I can see that it worked and updated the second page’s URL

Data displayed on Second Page:
image
I can’t see an option to pull data from the URL on the page itself so I have just left it blank

Date displayed in a group on Second Page:

  1. Should type of content be “Algolia Result (Algolia)” or “text”?
  2. Data source comes up red and the error says “Data source should be Algolia Result (Algolia) but right now it is a text”

Text display:
image
This text does not display anything when tested

Thank you and hope you can help,
Kauri

Hello @kauri.p6,

I’d like to share with you how I managed to achieve this:

  1. First, use the “Go to page” action with “Send more parameters to the page” option checked. You can use either the name or objectID as long as it can be searched in the Algolia database. I used the objectID field in this case as it is unique to each items,
Screenshot

  1. Next, set the Algolia query to retrieve information from the URL.
Screenshots

  1. Display the result in a repeating group with the Type of Content set to “text” and the Data Source as “Algolia’s Result’s field1”. I configured the repeating group to have one row and one column, with a group inside. The group should also have its Type of Content set to “text” and the Data Source as the “Current cell’s text”.
Screenshots



Ensure that the name of the object is designated as a searchable attribute on the Algolia side. Below, I inserted a quick step by step on how to do it

Information
  1. Open the Search tab in your Algolia dashboard, and find tab “Configuration”.
  2. Select “Searchable attributes” and add there all the needed attributes by which you want to filter.

I hope these instructions prove helpful to you. If you have any more questions or require further assistance, please feel free to ask.

Wishing you success and an amazing day :hugs:

Thank you very much I have gotten this working!

Hi @kauri.p6,

We’re delighted to hear that everything is functioning now :pray:

If you’re satisfied with the plugin’s functionality and our support, we would appreciate if you could consider leaving a review for the plugin, sharing your experience, and giving it the rating it deserves. You can easily do this by navigating to the “Plugins” tab within your Bubble app editor, selecting the plugin, and scrolling down to the review section.

Should you have any further questions, please don’t hesitate to reach out to us here or via email at support@zeroqode.com.

Wishing you a fantastic day ahead! :hugs: