Hi All,
I have requirement to search Elastic with following details . This is part of security implementation you can assume for my website.
I have different Grouptypes with each group type having set of Groups . these groups are assosiated with Job as well as users.
so to implement security to job , we need to follow the below approach.
if the job having multiple groups[of different group types] , user should have atleast 1 group match with the matched grouptype and we should nt worry/validate if the jobgrouptype is not part of usergroup type.
example is explained below
Earlier I used to match only groups directly that I achieved through Terms Set Query based on suggestion given in Array intersection . This is next level of requirement , I need inputs on how to maintain job data in Elastic and user group info will be part of Search query based on logged-in user.
C# way of implementation is provided below for better understanding, we need similar logic to work with Elasticsearch query.