# How to update documents when source is disabled

**URL:** <https://discuss.elastic.co/t/how-to-update-documents-when-source-is-disabled/3821>\
**Category:** Elasticsearch\
**Created:** [January 24, 2011, 6:53am UTC](https://discuss.elastic.co/t/how-to-update-documents-when-source-is-disabled/3821 "2011-01-24T06:53:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![srrin](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@srrin](https://discuss.elastic.co/u/srrin)\
**Post date:** [January 24, 2011, 6:53am UTC](https://discuss.elastic.co/t/how-to-update-documents-when-source-is-disabled/3821/1 "2011-01-24T06:53:43Z")

</div>

Hi,  
I need to know how to update a document

1. My source is disabled
2. I need to update the value for a field
3. Then reindex the same document with new field

I have updated successfully when source is enabled by getting sourceAsMap. But when source is disabled I m not sure how to do this.  
Thanks  
SRR

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 24, 2011, 11:43am UTC](https://discuss.elastic.co/t/how-to-update-documents-when-source-is-disabled/3821/2 "2011-01-24T11:43:19Z")

</div>

You have to have the original document since the whole document gets reindexed.  
On Monday, January 24, 2011 at 8:53 AM, srrIN wrote:

> Hi,  
> I need to know how to update a document
> 
> 1. My source is disabled
> 2. I need to update the value for a field
> 3. Then reindex the same document with new field
> 
> ## I have updated successfully when source is enabled by getting sourceAsMap. But when source is disabled I m not sure how to do this. Thanks SRR
> 
> View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/how-to-update-documents-when-source-is-disabled-tp2317711p2317711.html](http://elasticsearch-users.115913.n3.nabble.com/how-to-update-documents-when-source-is-disabled-tp2317711p2317711.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<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, 4:13am UTC](https://discuss.elastic.co/t/how-to-update-documents-when-source-is-disabled/3821/3 "2017-07-06T04:13:20Z")

</div>


