We are not sure what is the best way to go about this and what are the pros / cons of each option. I saw a couple of post about creating a subset of the records of an index as a replica but they didn’t quite give me the answer.
So, we have a streaming platform where we use Algolia to provide the search functionality for content such as movies and series.
Right now we only operate in one country but soon will expand to various countries.
Given that the rights of exhibition are country-dependent we need to be able to filter the titles (records) based on each country.
We have discussed the following options:
- Have a separate index for each country: each time we have to add, edit or delete a record we have to do it for each country separately. Any pros? Would this allow to have our analytics separated by country?
- Have a main index, and a replica for each country: we would add an attribute to the records that identifies the countries that it should be visible, then create a replica for each country filtering on that attribute. Is it even possible? We did not find a way through the dashboard to ‘pre-filter’ a replica based on an attribute.
- Have a main index, filter on front end: use the same attribute as stated above, but do the pre-filtering on the front end for each country.
- Other? Such as the geo-filtering feature?
It is worth mentioning that is important to us to be able to view or filter in the analytics how each country performs and what is their search behavior.