# Including original value of field in addition to normalized value in aggregation

**URL:** <https://discuss.elastic.co/t/including-original-value-of-field-in-addition-to-normalized-value-in-aggregation/161460>\
**Category:** Elasticsearch\
**Created:** [December 19, 2018, 7:18am UTC](https://discuss.elastic.co/t/including-original-value-of-field-in-addition-to-normalized-value-in-aggregation/161460 "2018-12-19T07:18:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seperman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seperman/32/11550_2.png) [@seperman](https://discuss.elastic.co/u/seperman)\
**Post date:** [December 19, 2018, 7:18am UTC](https://discuss.elastic.co/t/including-original-value-of-field-in-addition-to-normalized-value-in-aggregation/161460/1 "2018-12-19T07:18:07Z")

</div>

Hello,

I'm running a bunch of aggregations on some keyword fields that have a normalizer. The aggregations get me the normalized values back as expected. But I need the original value to display to the user. Is there a way to also include the keyword's original value in source in the aggregation results? The way it is now, for every single item that aggs returns, I have to hit ES again with size=1 to get the original field value from the source. For some nested aggregation, this can easily add up to millions of additional queries just to get the original values.

Thanks,  
Sep

---

<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:** [January 16, 2019, 7:18am UTC](https://discuss.elastic.co/t/including-original-value-of-field-in-addition-to-normalized-value-in-aggregation/161460/2 "2019-01-16T07:18:07Z")

</div>

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