Hi,
I am new to elastic search and got stuck in a scenario. I have document mapping as below:
{
"mappings": {
"customer": {
"properties": {
"customerEmails": {
"type": "nested",
"properties": {
"address": {
"type": "text"
},
"type": {
"type": "text"
}
}
}
}
}
}
}
Type field in customerEmails object could be Home, Work, and Mobile. I want a query to fetch those document where no email address exists with type Mobile.