# Query for email address within a text field

**URL:** <https://discuss.elastic.co/t/query-for-email-address-within-a-text-field/274742>\
**Category:** Elasticsearch\
**Created:** [June 2, 2021, 11:39am UTC](https://discuss.elastic.co/t/query-for-email-address-within-a-text-field/274742 "2021-06-02T11:39:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saif3r](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@saif3r](https://discuss.elastic.co/u/saif3r)\
**Post date:** [June 2, 2021, 11:39am UTC](https://discuss.elastic.co/t/query-for-email-address-within-a-text-field/274742/1 "2021-06-02T11:39:39Z")

</div>

Hello,

I'm trying to query my index that contains text field with an email address. As of now, if query for a specific domain (eg gmail), like below and it gives me the results:

> ```
> GET index*/_search
> {
> "query": {
> "wildcard": {
> "sender": {
> "value": "*gmail.com*"
> }
> }
> }
> }
> 
> ```

But when i try to query for any email address, the there are 0 results:

> ```
> GET index*/_search
> {
> "query": {
> "wildcard": {
> "sender": {
> "value": "*@*"
> }
> }
> }
> }
> 
> ```

How could i make it work?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 30, 2021, 11:40am UTC](https://discuss.elastic.co/t/query-for-email-address-within-a-text-field/274742/2 "2021-06-30T11:40:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
