# Update any field

**URL:** <https://discuss.elastic.co/t/update-any-field/8570>\
**Category:** Elasticsearch\
**Created:** [July 30, 2012, 9:36pm UTC](https://discuss.elastic.co/t/update-any-field/8570 "2012-07-30T21:36:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajasuja18](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@ajasuja18](https://discuss.elastic.co/u/ajasuja18)\
**Post date:** [July 30, 2012, 9:36pm UTC](https://discuss.elastic.co/t/update-any-field/8570/1 "2012-07-30T21:36:17Z")

</div>

Hello Everyone,

While updating any field in elasticsearch, we can using script to do the  
same.  
I know that they have to reindex the whole data of that particular id.

Will elasticsearch be able to do the update a particular field in case  
I made \*{\_source: {enabled:false}} \*or it is necessary to store the source  
of the document with the index.

Thanks in advance..!!!

---

<div class="post-metadata">

**Author:** ![Benjamin\_Deveze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benjamin_deveze/32/1577_2.png) [@Benjamin\_Deveze](https://discuss.elastic.co/u/Benjamin_Deveze)\
**Post date:** [July 30, 2012, 9:47pm UTC](https://discuss.elastic.co/t/update-any-field/8570/2 "2012-07-30T21:47:21Z")

</div>

Hello

as of today you have to enable source to use the update API

On Mon, Jul 30, 2012 at 11:36 PM, ajasuja [jasuja.ankit@gmail.com](mailto:jasuja.ankit@gmail.com) wrote:

> Hello Everyone,
> 
> While updating any field in elasticsearch, we can using script to do the  
> same.  
> I know that they have to reindex the whole data of that particular id.
> 
> Will elasticsearch be able to do the update a particular field in case  
> I made \*{\_source: {enabled:false}} \*or it is necessary to store the  
> source of the document with the index.
> 
> Thanks in advance..!!!

--  
Benjamin DEVEZE

---

<div class="post-metadata">

**Author:** ![Benjamin\_Deveze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benjamin_deveze/32/1577_2.png) [@Benjamin\_Deveze](https://discuss.elastic.co/u/Benjamin_Deveze)\
**Post date:** [July 30, 2012, 9:50pm UTC](https://discuss.elastic.co/t/update-any-field/8570/3 "2012-07-30T21:50:15Z")

</div>

Hello!

For the moment you have to enable \_source to use the update API

On Monday, July 30, 2012 11:36:17 PM UTC+2, ajasuja wrote:

> Hello Everyone,
> 
> While updating any field in elasticsearch, we can using script to do the  
> same.  
> I know that they have to reindex the whole data of that particular id.
> 
> Will elasticsearch be able to do the update a particular field in case  
> I made \*{\_source: {enabled:false}} \*or it is necessary to store the  
> source of the document with the index.
> 
> Thanks in advance..!!!

---

<div class="post-metadata">

**Author:** ![ajasuja18](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@ajasuja18](https://discuss.elastic.co/u/ajasuja18)\
**Post date:** [July 30, 2012, 11:36pm UTC](https://discuss.elastic.co/t/update-any-field/8570/4 "2012-07-30T23:36:31Z")

</div>

Hi Benjamin,

Thanks for confirming me..!!!

On Monday, July 30, 2012 2:50:15 PM UTC-7, Benjamin Devèze wrote:

> Hello!
> 
> For the moment you have to enable \_source to use the update API
> 
> On Monday, July 30, 2012 11:36:17 PM UTC+2, ajasuja wrote:
> 
> > Hello Everyone,
> > 
> > While updating any field in elasticsearch, we can using script to do the  
> > same.  
> > I know that they have to reindex the whole data of that particular id.
> > 
> > Will elasticsearch be able to do the update a particular field in case  
> > I made \*{\_source: {enabled:false}} \*or it is necessary to store the  
> > source of the document with the index.
> > 
> > Thanks in advance..!!!

On Monday, July 30, 2012 2:50:15 PM UTC-7, Benjamin Devèze wrote:

> Hello!
> 
> For the moment you have to enable \_source to use the update API
> 
> On Monday, July 30, 2012 11:36:17 PM UTC+2, ajasuja wrote:
> 
> > Hello Everyone,
> > 
> > While updating any field in elasticsearch, we can using script to do the  
> > same.  
> > I know that they have to reindex the whole data of that particular id.
> > 
> > Will elasticsearch be able to do the update a particular field in case  
> > I made \*{\_source: {enabled:false}} \*or it is necessary to store the  
> > source of the document with the index.
> > 
> > Thanks in advance..!!!

---

<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:18am UTC](https://discuss.elastic.co/t/update-any-field/8570/5 "2017-07-06T03:18:24Z")

</div>


