When I run the below query it will bring up the results which contains @gmail.com. My expectation would be empty results.
I don't know why it's happening.
GET _search
{
"query": {
"match": {
"PrimaryEmail": "@gmail.com"
}
}
}
It depends on the analyzer you used at index time and search time and the mapping.
If you are using a keyword type that won't happen.