I have thousands of articles in elastic-search server. i can search and get data now but the problem is i need to search articles with privacy for the logged in user. User can see an article if one of these 5 conditions.
- Article is shared for all.
- Article is shared to a group in which the user is member.
- Article in directly shared to user.
- @tagged user in comment description
- @tagged user in article description.
now, how can i search for articles via elastic-search with privacy to a given user?
any ideas or recommendation?