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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.