Engine : national-parks-example
schema: [title, id, state, description].
Facet shows filters based on state field values.
I have following scenario
There are different users who can access documents from engine.
User's will be able to access documents excluding some states (excluding restricted states for each type of users) .
Show respected state facet/filters to users
Example : Consider there are 2 users
User-1 : restricted states ['California']
User-2 : restricted states ['Texas', 'Florida']
* If User-1 logged in he can see all states documents except 'California' * Facets will show all states in filters except 'California' * For User-2 : show documents excluding state 'Texas' and 'Florida' * Facets will show all states in filters except 'Texas', 'Florida'