# Fetching only matching elements from an array in Elasticsearch

**URL:** <https://discuss.elastic.co/t/fetching-only-matching-elements-from-an-array-in-elasticsearch/189231>\
**Category:** Elasticsearch\
**Created:** [July 7, 2019, 3:46am UTC](https://discuss.elastic.co/t/fetching-only-matching-elements-from-an-array-in-elasticsearch/189231 "2019-07-07T03:46:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 7, 2019, 6:40am UTC](https://discuss.elastic.co/t/fetching-only-matching-elements-from-an-array-in-elasticsearch/189231/2 "2019-07-07T06:40:50Z")

</div>

I don't think you can.

But I might have misunderstood your question.

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

---

_[View the full topic](https://discuss.elastic.co/t/fetching-only-matching-elements-from-an-array-in-elasticsearch/189231)._
