# How to get matching field in match \_all query

**URL:** <https://discuss.elastic.co/t/how-to-get-matching-field-in-match--all-query/59788>\
**Category:** Elasticsearch\
**Created:** [September 5, 2016, 8:18am UTC](https://discuss.elastic.co/t/how-to-get-matching-field-in-match--all-query/59788 "2016-09-05T08:18:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 5, 2016, 8:22am UTC](https://discuss.elastic.co/t/how-to-get-matching-field-in-match--all-query/59788/2 "2016-09-05T08:22:46Z")

</div>

Please don't post the same thing multiple times 🙂

> [@Elasticsearch return match fields](https://discuss.elastic.co/t/elasticsearch-return-match-fields/59746):
>
> I am trying GET \_search { "query": { "match": { "\_all":"MCRFX" } } } I need to find which field the match happened, if that can be found. I am open to use another query, the idea is to search a value in all index and all docs and come up with with relevant doc and field where match happened. Thanks

---

_[View the full topic](https://discuss.elastic.co/t/how-to-get-matching-field-in-match--all-query/59788)._
