# How to create an array runtime field

**URL:** <https://discuss.elastic.co/t/how-to-create-an-array-runtime-field/322791>\
**Category:** Kibana\
**Created:** [January 10, 2023, 6:27am UTC](https://discuss.elastic.co/t/how-to-create-an-array-runtime-field/322791 "2023-01-10T06:27:37Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [January 10, 2023, 1:28pm UTC](https://discuss.elastic.co/t/how-to-create-an-array-runtime-field/322791/9 "2023-01-10T13:28:38Z")

</div>

Sorry, didn't see it before.  
So I had it wrong when testing and used a regular `object` type rather than `nested`.  
I do think there's currently no way to use `nested` field types with runtime field.  
Based on this answer it seems that deprecated scripted field can provide some help manually accessing the `nested` structure via `_source`, but that will have some performance impact: [ElasticSearch aggregate on a scripted nested field - #2 by doogyatnesta](https://discuss.elastic.co/t/elasticsearch-aggregate-on-a-scripted-nested-field/298841/2)

---

_[View the full topic](https://discuss.elastic.co/t/how-to-create-an-array-runtime-field/322791)._
