# Is there a way to count nested documents in in a doc

**URL:** https://discuss.elastic.co/t/is-there-a-way-to-count-nested-documents-in-in-a-doc/206236
**Category:** Elasticsearch
**Created:** [November 2, 2019, 1:14pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-count-nested-documents-in-in-a-doc/206236 "2019-11-02T13:14:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RITZ\_VERMA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ritz_verma/32/46899_2.png) [@RITZ\_VERMA](https://discuss.elastic.co/u/RITZ_VERMA)
#### Post date: [November 2, 2019, 1:14pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-count-nested-documents-in-in-a-doc/206236/1 "2019-11-02T13:14:07Z")

</div>

I have a document which contains nested documents.i want to get the count of nested documents associated with a field.

---

<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 30, 2019, 1:14pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-count-nested-documents-in-in-a-doc/206236/2 "2019-11-30T13:14:08Z")

</div>

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