We’re building an app where our records are pieces of legislation stored in a single index for all customers. Each customer has access to certain groups of law texts and access to each piece of legislation is controlled with an attribute where group
x has access if
x. We have an InstantSearch client in the frontend which builds a query that restricts access based on the
What we’re looking to do is to assign a responsible user to a piece of legislation, such that a user can filter only by the responsible users that belong to the same organisation as them. We don’t want users to even be presented with users in other organisations as as filtering option.
Is this a thing that is possible with a single index, purely by structuring the record attributes correctly in Algolia?