Hi Sebastian,
I have two schemas:
brandproduct
Schema brand has one field of type String called name
Schema product has one field of type String called name and another one of type Reference called brand
I have created an Algolia Rule for the product schema that gets triggered on the following events:
event.type == 'Published' || event.type == 'Updated' || event.type == 'Unpublished' || event.type == 'Deleted'
Now, whenever I publish, update, unpublish or delete a page of the schema type product the Algolia Rule fires and updates my Algolia index accordingly. So, so far so good.
This is how the record looks like in my Algolia index:
{
"objectID": "65f9ce73-21d9-4732-a7fb-53cab5f28c65",
"name": "Product One",
"brand": "Brand A"
}
Now, what I’m wondering is:
If I go to a page of type brand and update the name field and I change it from let’s says Brand A to Brand A International, how can I trigger an update for all the pages of type product that have a reference to the page of type brand that just got updated?
This is how the record would look like after an update:
{
"objectID": "65f9ce73-21d9-4732-a7fb-53cab5f28c65",
"name": "Product One",
"brand": "Brand A International"
}
By the way, I’m only indexing pages of type product and not pages of type brand.








