Aggregation result from search query into a field

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.