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

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

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