I have a user meta Data field of
"teams": [
{
"title": "Premiers",
"role": "Supporter",
"aka": "Dazza"
},
{
"title": "Presidents",
"role": "Management",
"aka": ""
}
]
I want to get users who have a title of Premiers and role of Management.
My query:
user_metadata.teams.title:“Premiers” AND user_metadata.teams.role:“Management”
In my sample data above it will return this user because in one team the title is Premiers and in another the role is Management and so it matches.
But I only want managers in the premier team to be returned.
Any ideas?