# The count of all nested objects and limit

**URL:** <https://discuss.elastic.co/t/the-count-of-all-nested-objects-and-limit/366634>\
**Category:** Elasticsearch\
**Created:** [September 16, 2024, 4:25pm UTC](https://discuss.elastic.co/t/the-count-of-all-nested-objects-and-limit/366634 "2024-09-16T16:25:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lei\_Yang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lei_yang/32/137625_2.png) [@Lei\_Yang](https://discuss.elastic.co/u/Lei_Yang)\
**Post date:** [September 16, 2024, 4:25pm UTC](https://discuss.elastic.co/t/the-count-of-all-nested-objects-and-limit/366634/1 "2024-09-16T16:25:28Z")

</div>

Hi, I'm using nested objects, there are lot of nested objects inside a nested object, please view an example as following:

'transactions' =\> [  
'type' =\> 'nested',  
'properties' =\> [  
'id' =\> [  
'type' =\> 'keyword',  
],  
'total' =\> [  
'type' =\> 'float',  
],  
'date' =\> [  
'type' =\> 'date',  
],  
'products' =\> [  
'type' =\> 'nested',  
'properties' =\> [  
'brand' =\> [  
'type' =\> 'keyword',  
],  
'category\_id' =\> [  
'type' =\> 'keyword',  
],  
]  
]  
],  
],

My question is for setting: `index.mapping.nested_objects.limit`

does it only count for all nested objects ( 'transactions' and 'products') or first nested objects ('transactions') only ?

Thanks

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [September 17, 2024, 7:52am UTC](https://discuss.elastic.co/t/the-count-of-all-nested-objects-and-limit/366634/2 "2024-09-17T07:52:10Z")

</div>

From #Elastic Search to #Elasticsearch

---

<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:** [October 15, 2024, 7:52am UTC](https://discuss.elastic.co/t/the-count-of-all-nested-objects-and-limit/366634/3 "2024-10-15T07:52:16Z")

</div>

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