# Exact string match query on all fields

**URL:** <https://discuss.elastic.co/t/exact-string-match-query-on-all-fields/316623>\
**Category:** Elasticsearch\
**Created:** [October 14, 2022, 10:32am UTC](https://discuss.elastic.co/t/exact-string-match-query-on-all-fields/316623 "2022-10-14T10:32:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![melwinalmeida](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/melwinalmeida/32/99390_2.png) [@melwinalmeida](https://discuss.elastic.co/u/melwinalmeida)\
**Post date:** [October 14, 2022, 10:32am UTC](https://discuss.elastic.co/t/exact-string-match-query-on-all-fields/316623/1 "2022-10-14T10:32:09Z")

</div>

Our records contain lot of string fields. How do I perform an exact string match query without mentioning the field names in the query.

For example, suppose I have following records:

```auto
{
   "address": "google.com",
   "address2": "yahoo.com",
   "address3": ...
   ...
}

```

Searching for text like "[google.com](http://google.com)" or "[yahoo.com](http://yahoo.com)" should return the above record.

---

<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:** [November 11, 2022, 10:32am UTC](https://discuss.elastic.co/t/exact-string-match-query-on-all-fields/316623/2 "2022-11-11T10:32:56Z")

</div>

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