Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch Dashboard 2.13
Describe the issue:
Hello,
I am looking for some help with trying to create a filter in a dashboard and I am afraid that DQL is not advanced enough to help me with this.
For example, I have a set of records with users and permissions. Each record contains a set of 1 user and 1 permission. Basically, one record tells me that a user is assigned to a permission.
Obviously, I can have another record with the same user but a different permission (or the same permission and a different user)
So, I want a filter something similar to this: I want to retrieve all records where the same user has permissions X and Y. In SQL it would be something like this:
select * from table where permission = ‘X’ and exists (select 1 from table where permission = ‘Y’ and user_name = table.user_name);
Any ideas if this can be done in Opensearch?
Thanks
Alexandru