# Nested array filters

**URL:** <https://discuss.elastic.co/t/nested-array-filters/67386>\
**Category:** Elasticsearch\
**Created:** [November 28, 2016, 6:06pm UTC](https://discuss.elastic.co/t/nested-array-filters/67386 "2016-11-28T18:06:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhan](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@madhan](https://discuss.elastic.co/u/madhan)\
**Post date:** [November 28, 2016, 6:06pm UTC](https://discuss.elastic.co/t/nested-array-filters/67386/1 "2016-11-28T18:06:22Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/2X/4/440dd275bae3a0b14b1571fdbd3af70589903947.png)

This is my nested docs list. I need to get **Id** based on **combId** with **access** 1.

i.e.,

my query will look like this.

`combId:(99) AND access:(1)`

Expected result is docs with Id as 1002.

but actual result is Id - 1,3,1001,1002.

How to filter this nested docs as i expected.

---

<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:** [December 26, 2016, 6:06pm UTC](https://discuss.elastic.co/t/nested-array-filters/67386/2 "2016-12-26T18:06:34Z")

</div>

Closed on December 26, 2016, 6:06pm UTC

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