# Nested Component Templates

**URL:** https://discuss.elastic.co/t/nested-component-templates/252895
**Category:** Elasticsearch
**Created:** [October 21, 2020, 8:12pm UTC](https://discuss.elastic.co/t/nested-component-templates/252895 "2020-10-21T20:12:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)
#### Post date: [October 21, 2020, 8:12pm UTC](https://discuss.elastic.co/t/nested-component-templates/252895/1 "2020-10-21T20:12:38Z")

</div>

Hi All,

I was wondering if anyone knows if its possible to do nested component templates, or if there is plans to add it?

An example/use case is the geo object. Currently the geo object is a nested object of client, destination, host, observer, server, and source. Instead of having to define the same fields within each of the top level objects, I would like to just reference a component template called geo, for each of the top level objects.

This would make management far easier, like if I wanted to add a custom field to the geo object, instead of having to update it in 6 places, I could update it in 1, and the change would be propagated on index change.

---

<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 18, 2020, 8:12pm UTC](https://discuss.elastic.co/t/nested-component-templates/252895/2 "2020-11-18T20:12:49Z")

</div>

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