# How to update multiple records in this case?

**URL:** <https://discuss.elastic.co/t/how-to-update-multiple-records-in-this-case/44474>\
**Category:** Elasticsearch\
**Created:** [March 15, 2016, 6:14pm UTC](https://discuss.elastic.co/t/how-to-update-multiple-records-in-this-case/44474 "2016-03-15T18:14:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenshero](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@kenshero](https://discuss.elastic.co/u/kenshero)\
**Post date:** [March 15, 2016, 6:14pm UTC](https://discuss.elastic.co/t/how-to-update-multiple-records-in-this-case/44474/1 "2016-03-15T18:14:18Z")

</div>

example data . in index  
{  
"article\_name": "flame",  
"authors": ["hot", "element"]  
}

{  
"article\_name": "water",  
"authors": ["cold","element"]  
}

{  
"article\_name": "eart",  
"authors": ["strong", "element"]  
}

I want to find "element" and update all records . How to do this ?

Note : if you know in rails . I use gem elasticsearch-rails [https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-mode](https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-mode)

Thank you

---

<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 5, 2017, 11:08pm UTC](https://discuss.elastic.co/t/how-to-update-multiple-records-in-this-case/44474/2 "2017-07-05T23:08:11Z")

</div>


