Services Plugins FAQs

Algolia Search V2.0 Facet Example/Demo

Hi

I am working with the Algolia Search V2.0 plugin and was wondering if there were any example/demo apps which include displaying facets and their values?

Having read through the documentation, I have been able to set up the plugin to make a search and return/display results within a repeating group. I would now like to display some facets and their counts on the page too.

I understand there is a workflow Element Action for Search Facet Values but I am finding that this pulls the values of the entire index and does not update when new searches are made.

Reading the plugin documentation there is not much about how to work with facets so any examples/demos would be perfect. Or any additional documentation or help would be appreciated too.

Thanks

Hi @j.fuller.thompson ,

I just wanted to let you know that we’ve already responded to your query via email. Please check your inbox for our suggestions and troubleshooting steps regarding the issue you’re facing.

If you have any further questions or need more assistance, feel free to reach out here or via email, and I’ll be happy to help!

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Hello - I’m struggling with the same topic - I am trying to get facets and counts to display associated with a search result, however, despite a lot of research I can’t find the documentation to do this.

Everything appears to be set up correctly in Algolia - Can you please help?

Hi @giles.cookson,

Thanks for reaching out!

To display facets and their counts using the Algolia Search V2.0 plugin, please ensure the following:

  1. Facets Configuration in Algolia Dashboard:
    Make sure you’ve defined the attributes you want to facet under “Attributes for faceting” in your index settings.
  2. Retrieve Facet Data in Bubble:
    When performing a search using the plugin, you can access the facet information through the Result -> facets output of the Algolia element. This contains both the facet values and their associated counts.
  3. Displaying Facets in Bubble:
    You can use a repeating group to loop through the keys of the facets object (e.g., Category, Brand), and then within that, another group to display the count for each value.

If the issue persists, please provide additional details, and I’ll be happy to assist further.

Best regards,
Support Team
Browse all Zeroqode Plugins for bubble
Banner_Last3

Hello @constantin.raicovici - Thanks so much for the response - I very much appreciate it.

I am confident I have step 1 correct (as I am able to search within a facet), however, I am really struggling with step 2.

In my Results data field output I don’t see any reference to “facets” I can see the list of fields 1 - 20, I also see the following options, query, params, hitsPerPage, nbHits, nbPages, page, queryID, raw body text - Is it possible there is some sort of bug or am I looking in the wrong place??

If it makes any difference I am currently on the subscription plan rather than having bought the plugin outright.

Thanks

Hi again @giles.cookson,

Thank you for your feedback.

It’s great to hear step 1 is working. Regarding step 2, the “facets” data should be available in the “Results” data field output under the “facets” key if properly configured in Algolia. The fields you listed (query, params, hitsPerPage, etc.) are standard search response fields, but facets might not appear if:

  1. Facet attributes are not enabled in your Algolia index.
  2. The plugin’s “Search” action isn’t set to return facets (check the “Facets” option in the action settings).

Please confirm these settings in the Algolia Dashboard and plugin workflow. The subscription plan should not affect this functionality, it’s likely a configuration issue.

Refer to Algolia Search V2.0 Plugin for Bubble documentation step for guidance.

If the problem persists, please share a screenshot of your workflow settings for further assistance.

Best regards,
Support Team
Browse all Zeroqode Plugins for bubble
Banner_Last3

Hello @constantin.raicovici - I very much appreciate your response, however, unfortunately it isn’t clear to me what you mean when you state “The plugin’s “Search” action isn’t set to return facets (check the “Facets” option in the action settings)”

I have reviewed the documentation and it isn’t clear exactly which “Search” action you are referring to - Can you please supply a screenshot showing where this field I need to check is?

  • I have no “Facets” option in the main AlgoliaSimpleSearch widget that I access when clicking the three little symbols so I can’t “check” anything here

  • In the “Set Algolia Settings” workflow there is also no “facet” option to check, however, I note the “attributesforfaceting” field which I don’t believe is what you are referring to

  • I have successfully used the “Search for Facet Values AlgoliaSimpleSearch A” workflow, so there doesn’t seem to be a problem here

I have tried an earlier version of the plugin and was also unable to find the “facets” option you mention in your response above.

At the moment I am rather stuck but would love to get access to this information.

Thanks

Hi @giles.cookson

Thank you for specifying the details.

Here’s a clearer version of my suggestions:
To display facets and counts using the Algolia Search V2.0 plugin, make sure the following is configured correctly in your Algolia dashboard and Bubble setup:

  1. In Algolia Dashboard:
  • Enable faceting on the desired attributes (go to your index → “Configuration” tab → “Facets”).

  • Optionally, enable facetsStats if you want to retrieve statistical data for numerical facets.

  1. In Bubble:
  • Use the Search with Facets action provided by the plugin.

  • You can pass an object into the facetFilters field to refine your query.

  • The response from this action will include the facets object and, if enabled, the facets_stats.
    To display facets and counts using the Algolia Search V2.0 plugin, make sure the following is configured correctly in your Algolia dashboard and Bubble setup:

  1. Displaying in RG:
  • Use the Result's facets to dynamically extract and display facet counts in a repeating group or text element.

If everything is already enabled on the Algolia side, feel free to share a screenshot of your current plugin setup or workflow so we can take a closer look.

Let us know how it goes!

Best regards,
Support Team
Browse all Zeroqode Plugins for bubble
Banner_Last3

Hello @constantin.raicovici - Thanks so much for your clear reply - I very much appreciate it.

Unfortunately I don’t believe this will achieve my objective as I understand the solution you describe enables me to search within the facet values only.

The problem I am trying to solve is that when I undertake a search that matches with records in my index I want to also receive the facet names and the facet counts associated with the matching records. If I do a search and it matches 300 records I also want to receive the matching facet names and the count of values for each facet, (e.g. if I have a facet called “Brand” I want to see unique facet values and their count “brand A 150”, “brand B 100”, Brand C 50"

Can this be achieved via the Algolia Search V2.0 plugin? I believe this is possible via the Algolia API and I would imagine this is commonly required functionality.

Hi @giles.cookson,

Thanks for the clarification.

You’re absolutely right that what you’re describing is a very common use case supported by the Algolia API - receiving a list of facet values along with their associated counts based on the matching records.

And yes, this is indeed possible with the Algolia Search V2.0 plugin for Bubble.

When your attributes are properly configured under “Attributes for faceting” in Algolia, and the plugin’s search action has the “Facets” parameter set with those same attributes, the plugin’s Result → facets output should return exactly what you’re looking for: each facet key (e.g., “Brand”) and a nested object of all matched values with their corresponding counts.

If you’re not seeing that output, it might indicate:

  • The “Facets” field in the plugin action is empty or misconfigured.

  • The attributes aren’t facetable in your Algolia index settings.

  • There’s an issue on the plugin’s end that we need to further explore.

Feel free to share a screenshot of your current search action setup and Algolia index config - I’ll be happy to review and help make sure everything’s connected properly.

Looking forward to your reply,

Best regards,
Support Team
Browse all Zeroqode Plugins for bubble
Banner_Last3

Hello @constantin.raicovici - Thanks so much for another very helpful response - I certainly appreciate the time you are taking to resolve this.

Attached please find a screenshot of my Algolia settings and several screenshots showing a view of the length of the AlggoliaSimpleSearch form I see when selecting the three image logos.

If the solution is to somehow utilize the “Search for facet values” action it is unclear to me how this could help as my understanding is that this only searches the facet values and doesn’t support other uses.

Thanks so much for your time
Giles




Hi @giles.cookson,

Thank you for your feedback.

After analyzing your inquiry with the dev team, here’s a suggestion on how to address your request to retrieve facet names and counts for matching records using the Algolia Search V2.0 Plugin for Bubble:

  1. Element Configuration:
  • When the element value changes (e.g., user input), trigger the “Search for Facet Values” action on the Algolia Simple Search element.
  • Set the field to search by as an “Attribute for faceting” in the Algolia Dashboard under the Configuration section.
  • The plugin will update the following states:
    • List of Values: List of matched facet values.
    • Highlighted Values: Highlighted results (if applicable).
    • How many values of this type were found: Number of values of this type found.
  1. Setup Verification:
  • Ensure the facet attribute (e.g., “Brand”) is set as an “Attribute for faceting” in the Algolia Dashboard; otherwise, the search will not work.
  • Test the setup by triggering the search and checking the states in Bubble’s debugger.

This should allow you to retrieve facet names and their counts (e.g., “brand A 150”) for matching records.

If issues persist, please provide specific error details, and we’ll assist further.

Best regards,
Support Team
Browse all Zeroqode Plugins for bubble
Banner_Last3

Hello @constantin.raicovici - I very much appreciate your continued support on resolving this issue.

I have tested your suggestion and whilst I confirm that I can receive results I face the same issue as I have previously found, i.e. the results relate to a search undertaken only on facet values and matching facet values are then returned.

My hypothesis is is that the Algolia search_for_facet_values method can be used in two ways:

  1. To undertake a search for a value for a specific facet (e.g. search for “Nikon” under a “Brand” facet) - This appears to be the way it is currently working in the plugin as per this page

  2. As a separate parameter within the search method which should achieve the result I am after, i.e. as part of the search how many of each value occur for each facet. (as per this page)

I would love to be proved wrong and admit my technical understanding on Algolia is limited.

All the best

Hi @giles.cookson,

Thank you for your feedback.

The “Search for Facet Values” action currently searches within a specific facet (e.g., “Nikon” under “Brand”). To get facet names and counts (e.g., “brand A 150”) for all matching records:

  1. Solution: Use the Algolia Simple Search element for the initial search, then add a custom API call with facets=[“Brand”] to get facet counts. Ensure “Brand” is an “Attribute for faceting” in the Algolia Dashboard.
  2. Steps: Trigger the search, use the API response, and display counts in a Repeating Group.
  3. Test: Check results in Bubble’s debugger using the Algolia docs (Search for facet values API reference | Algolia).

Let me know how your next test goes — happy to help further if it’s still not working as expected.

Best regards,
Support Team
Browse all Zeroqode Plugins for bubble
Banner_Last3

Hello @constantin.raicovici -Thanks for your response on this topic, it’s helpful although it does appear to confirm that the plug in can’t do what I would have assumed may be a reasonably common request. Can you confirm if there are any plans to add this feature in the future?

Thanks!

Hi @giles.cookson,

Thanks for your follow-up!

We’re continuously working on improving our plugins to deliver the best possible tools for Bubble developers.

If this particular feature is important for your app or you’d like to see it added, we’d love to hear from you directly.

Please feel free to submit a feature request via this form:
:link: Airtable

Let me know if there’s anything else I can assist with!

Best regards,
Support Team
Browse all Zeroqode Plugins for bubble
Banner_Last3