# Updating newly added field for all records. New field value is same for all records

**URL:** <https://discuss.elastic.co/t/updating-newly-added-field-for-all-records-new-field-value-is-same-for-all-records/18884>\
**Category:** Elasticsearch\
**Created:** [July 24, 2014, 11:31pm UTC](https://discuss.elastic.co/t/updating-newly-added-field-for-all-records-new-field-value-is-same-for-all-records/18884 "2014-07-24T23:31:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanth\_ramineni](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@srikanth\_ramineni](https://discuss.elastic.co/u/srikanth_ramineni)\
**Post date:** [July 24, 2014, 11:31pm UTC](https://discuss.elastic.co/t/updating-newly-added-field-for-all-records-new-field-value-is-same-for-all-records/18884/1 "2014-07-24T23:31:07Z")

</div>

Hi ,

I have one index having data. After that i created one new field called  
TYPE. I want to update all records for newly added field(TYPE=TS) .

Can you please provide query for the above requirement.

Thanks in advance.

Thanks,  
Srikanth.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7d9ce2f8-decf-4a94-8502-cb573d173c10%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7d9ce2f8-decf-4a94-8502-cb573d173c10%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [July 25, 2014, 3:50am UTC](https://discuss.elastic.co/t/updating-newly-added-field-for-all-records-new-field-value-is-same-for-all-records/18884/2 "2014-07-25T03:50:09Z")

</div>

Hello Srikanth ,

Update by query is not a feature in Elasticsearch , but there is a plugin  
which can do it.

PLUGIN - [GitHub - yakaz/elasticsearch-action-updatebyquery: ElasticSearch Update By Query action plugin](https://github.com/yakaz/elasticsearch-action-updatebyquery)

Thanks  
Vineeth

On Fri, Jul 25, 2014 at 5:01 AM, srikanth ramineni [ri.srikanth@gmail.com](mailto:ri.srikanth@gmail.com)  
wrote:

> Hi ,
> 
> I have one index having data. After that i created one new field called  
> TYPE. I want to update all records for newly added field(TYPE=TS) .
> 
> Can you please provide query for the above requirement.
> 
> Thanks in advance.
> 
> Thanks,  
> Srikanth.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/7d9ce2f8-decf-4a94-8502-cb573d173c10%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7d9ce2f8-decf-4a94-8502-cb573d173c10%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/7d9ce2f8-decf-4a94-8502-cb573d173c10%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7d9ce2f8-decf-4a94-8502-cb573d173c10%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5nUGdpKZbC%2BurjGvrbdkYBPn%3Dn0JHEXVwsxxM%2BzfnNw%3Dw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5nUGdpKZbC%2BurjGvrbdkYBPn%3Dn0JHEXVwsxxM%2BzfnNw%3Dw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:13am UTC](https://discuss.elastic.co/t/updating-newly-added-field-for-all-records-new-field-value-is-same-for-all-records/18884/3 "2017-07-06T01:13:13Z")

</div>


