I am trying to implement email search with ElasticSearch.
Here are the example documents.
{
...
"email": "valeri@gmail.com"
},
{
...
"email": "tom@gmail.com"
}
So when I use the match query: { "match": { "email": "valeri@gmail.com"
} }
I get both of "valeri@gmail.com"
and "tom@gmail.com"
but the result must be only "valeri@gmail.com"
.
I think it is because of @
character.
Any good solution to resolve this issue?