# Is it possible to add a field to all document in an index which the field is an aggregation result?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-add-a-field-to-all-document-in-an-index-which-the-field-is-an-aggregation-result/197109>\
**Category:** Elasticsearch\
**Created:** [August 28, 2019, 12:09pm UTC](https://discuss.elastic.co/t/is-it-possible-to-add-a-field-to-all-document-in-an-index-which-the-field-is-an-aggregation-result/197109 "2019-08-28T12:09:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 29, 2019, 7:29am UTC](https://discuss.elastic.co/t/is-it-possible-to-add-a-field-to-all-document-in-an-index-which-the-field-is-an-aggregation-result/197109/4 "2019-08-29T07:29:24Z")

</div>

See [Unable to calculate duration by 2 dates fields](https://discuss.elastic.co/t/unable-to-calculate-duration-by-2-dates-fields/194833/3) for some inspiration

---

_[View the full topic](https://discuss.elastic.co/t/is-it-possible-to-add-a-field-to-all-document-in-an-index-which-the-field-is-an-aggregation-result/197109)._
