I have a case where I created two indices (index1, and index2). I have two groups of users added to two roles (role1, role2) which are assigned to index1 and index2 indices respectively with search permissions.
Now I have one application querying all data in elasticsearch using the pattern index*. However, users get “no permission” error when running search because users in either roles don’t have search permission over one of the indices.
The user expected behaviour is that Elasticsearch will return results from the index the user has access to. How can I get that behaviour done?