How to search an email

Hello to all,

I need a query to search for an email. I tried using the query and match
query term. But I did not get the results I expected.

For example, I tried to search for 'tiago@email.com', match query gives me
the results that have 'tiago' ('tiago@hotmail.com', 'tiago@gmail.com') or
have @email.com ('name@email.com', 'mark@email.com'). The query term does
not give any results.

I ready for change the mapping, but i have a lot of docs, i think this is
not the best option for me.

Thanks for any help and sory my poor english.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f3432414-7f7f-4b02-99e5-e1a738caec66%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

I have found the answer and i wish to share.

I just need to pass the 'type' : 'phrase' on match query or just use '

match_phrase' query.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/642290e3-f3a7-42ae-a9ce-01b570192ef6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Alternatively, if you want to preserve email address and web urls, you can
use the uax_url_email tokenizer and then term and match queries should work
without any problems.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ef90a494-90b7-453a-a0e2-208aa34cc35e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.