# Transforming documents after they have been retrieved?

**URL:** <https://discuss.elastic.co/t/transforming-documents-after-they-have-been-retrieved/298213>\
**Category:** Elasticsearch\
**Created:** [February 24, 2022, 7:47pm UTC](https://discuss.elastic.co/t/transforming-documents-after-they-have-been-retrieved/298213 "2022-02-24T19:47:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mafej](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mafej](https://discuss.elastic.co/u/mafej)\
**Post date:** [February 24, 2022, 7:47pm UTC](https://discuss.elastic.co/t/transforming-documents-after-they-have-been-retrieved/298213/1 "2022-02-24T19:47:21Z")

</div>

I'm wondering, is there functionality similar to ingest pipelines, but for output instead of input? Being able to transform data when it's ingested is nice, but what about the opposite of that, transforming documents after they have been retrieved?

Sure, I could do that on application level, but if there's something that I could bind to an index and have it apply transparently after search operations, that would be nice.

Regards

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 26, 2022, 2:06am UTC](https://discuss.elastic.co/t/transforming-documents-after-they-have-been-retrieved/298213/2 "2022-02-26T02:06:41Z")

</div>

I'm not sure if I get what you want exactly. Runtime field is calculated at the query runtime.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 27, 2022, 11:34pm UTC](https://discuss.elastic.co/t/transforming-documents-after-they-have-been-retrieved/298213/3 "2022-02-27T23:34:20Z")

</div>

Welcome to our community! 😃

Yes, runtime fields are what you are thinking of.

---

<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:** [March 27, 2022, 11:35pm UTC](https://discuss.elastic.co/t/transforming-documents-after-they-have-been-retrieved/298213/4 "2022-03-27T23:35:19Z")

</div>

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