# Component Templates and Nested Components

**URL:** https://discuss.elastic.co/t/component-templates-and-nested-components/274381
**Category:** Elasticsearch
**Created:** [May 28, 2021, 10:23pm UTC](https://discuss.elastic.co/t/component-templates-and-nested-components/274381 "2021-05-28T22:23:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MakoWish](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@MakoWish](https://discuss.elastic.co/u/MakoWish)
#### Post date: [May 28, 2021, 10:23pm UTC](https://discuss.elastic.co/t/component-templates-and-nested-components/274381/1 "2021-05-28T22:23:48Z")

</div>

I have been playing around with Component Templates, and I absolutely love it! Much easier to centrally manage components of an index template, rather than manually update all templates using the same components.

Question: Can nested fields also utilize component templates?

For instance, I have a component saved for `geo` that has all the fields I would like to use for all GeoLocation data. This `geo` template I have saved is used all over the place. We have `host.geo`, `source.geo`, `destination.geo`, etc. As it is, any time we want to make an update to `geo`, we also have to update each of the other components/templates as well.

The docs don't seem to mention the possibility of this, so I figured I would ask here. Would appreciate any insight on whether or not this is possible, as it would save even more effort in managing templates.

Thank you!

---

<div class="post-metadata">

### Author: ![MakoWish](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@MakoWish](https://discuss.elastic.co/u/MakoWish)
#### Post date: [June 24, 2021, 1:57pm UTC](https://discuss.elastic.co/t/component-templates-and-nested-components/274381/2 "2021-06-24T13:57:55Z")

</div>

No thoughts on this, huh? If this is not yet possible, it would be a pretty sweet capability to have.

---

<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: [July 22, 2021, 1:58pm UTC](https://discuss.elastic.co/t/component-templates-and-nested-components/274381/3 "2021-07-22T13:58:13Z")

</div>

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