I’m brand new to Algolia and Laravel and I’m a bit confused how to structure my data when I index it.
I have two models in my local database called ‘Films’ and ‘Categories’ and they are joined by a pivot table to manage the many to many relationship.
I want users to be able to search by Film title and then have categories as a filter, but I also want users to be able to browse a category.
If I create two indices called Films and Categories, how will these relate? How will algolia know what films belong to which categories?
The documentation doesn’t seem clear on this: https://www.algolia.com/doc/guides/indexing/structuring-your-data/