# Query array on each index

**URL:** <https://discuss.elastic.co/t/query-array-on-each-index/133737>\
**Category:** Elasticsearch\
**Created:** [May 29, 2018, 6:30pm UTC](https://discuss.elastic.co/t/query-array-on-each-index/133737 "2018-05-29T18:30:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derrick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/derrick/32/49944_2.png) [@Derrick](https://discuss.elastic.co/u/Derrick)\
**Post date:** [May 29, 2018, 6:30pm UTC](https://discuss.elastic.co/t/query-array-on-each-index/133737/1 "2018-05-29T18:30:48Z")

</div>

Hi,

I am facing a query issue, I want to query cashflow[0].amount=100, is it possible and how to do it? thanks

> > > > {  
> > > > "trade": {  
> > > > "id": "1234",  
> > > > "cashflow": [{  
> > > > "type": "a",  
> > > > "amount": 100  
> > > > },  
> > > > {  
> > > > "type": "b",  
> > > > "amount": 200  
> > > > }  
> > > > ]  
> > > > }  
> > > > }

---

<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 26, 2018, 6:42pm UTC](https://discuss.elastic.co/t/query-array-on-each-index/133737/2 "2018-06-26T18:42:57Z")

</div>

Closed on June 26, 2018, 6:42pm UTC

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