# Update script, fetching stored (but non \_source) field

**URL:** https://discuss.elastic.co/t/update-script-fetching-stored-but-non--source-field/7402
**Category:** Elasticsearch
**Created:** [April 19, 2012, 3:57pm UTC](https://discuss.elastic.co/t/update-script-fetching-stored-but-non--source-field/7402 "2012-04-19T15:57:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jeremie\_BORDIER1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremie_bordier1/32/2860_2.png) [@Jeremie\_BORDIER1](https://discuss.elastic.co/u/Jeremie_BORDIER1)
#### Post date: [April 19, 2012, 3:57pm UTC](https://discuss.elastic.co/t/update-script-fetching-stored-but-non--source-field/7402/1 "2012-04-19T15:57:06Z")

</div>

Heya,

I have a field 'binary' that is not stored into \_source, but I still  
use \_source for the other fields.

Is there a way to fetch this field in the update script to avoid  
losing it by re-setting it ?

Cheers,  
Jérémie

---

<div class="post-metadata">

### Author: ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)
#### Post date: [April 19, 2012, 6:40pm UTC](https://discuss.elastic.co/t/update-script-fetching-stored-but-non--source-field/7402/2 "2012-04-19T18:40:43Z")

</div>

It doesn't seem to be possible at the moment. The script in the update api  
has only access to the document source.

On Thursday, April 19, 2012 11:57:06 AM UTC-4, Jérémie BORDIER wrote:

> Heya,
> 
> I have a field 'binary' that is not stored into \_source, but I still  
> use \_source for the other fields.
> 
> Is there a way to fetch this field in the update script to avoid  
> losing it by re-setting it ?
> 
> Cheers,  
> Jérémie

---

<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: [July 6, 2017, 3:31am UTC](https://discuss.elastic.co/t/update-script-fetching-stored-but-non--source-field/7402/3 "2017-07-06T03:31:51Z")

</div>


