Services Plugins FAQs

Retreive algolia nested data

I am trying to retrieve nested data, How do I do this?

“Commentary”: {
“objectID”: “1650467771301x782067698669191200”,
“Full_Name”: “John Smity”
}}

How do I retrieve Full_Name from Algolia Search V2.0 Plugin for Bubble
I have tried Commentary.John Smity, Commentary:John Smity

Help

Hello, @Member1
Thanks for reaching out.

You can create nested attributes by adding a JSON object to your records when you send your records to Algolia. For example:

{
  "title": "Bread",
  "price": {
    "net": 1.99,
    "gross": 1.75
  }
}

We can also advise you to use filtration in your application. Filtering allows your users to drill down and create a smaller, more manageable set of data based on meaningful categories. You can filter the Data by String.
For example, you have a database of books and you want to select all the books with a certain genre.

Algolia’s filters parameter allows you to leverage Boolean operators (AND, OR, NOT) and parentheses to combine individual filters, similar to SQL expression syntax.
image

Result:

Hope it will be helpful for you.
Best regards,