# Aggregation result from search query into a field

**URL:** <https://discuss.elastic.co/t/aggregation-result-from-search-query-into-a-field/363000>\
**Category:** Elasticsearch\
**Created:** [July 12, 2024, 7:12am UTC](https://discuss.elastic.co/t/aggregation-result-from-search-query-into-a-field/363000 "2024-07-12T07:12:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Debatri\_Ash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debatri_ash/32/125841_2.png) [@Debatri\_Ash](https://discuss.elastic.co/u/Debatri_Ash)\
**Post date:** [July 12, 2024, 7:12am UTC](https://discuss.elastic.co/t/aggregation-result-from-search-query-into-a-field/363000/1 "2024-07-12T07:12:56Z")

</div>

Is there a way to convert aggregation query result into a field in the index used for the aggregation? My aggregation query result gives me values under an array name w.r.t the values in a field which already exists in the index.
