# Update all collection based on pattern

**URL:** <https://discuss.elastic.co/t/update-all-collection-based-on-pattern/267199>\
**Category:** Elasticsearch\
**Created:** [March 14, 2021, 5:47pm UTC](https://discuss.elastic.co/t/update-all-collection-based-on-pattern/267199 "2021-03-14T17:47:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClubberLang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/clubberlang/32/72169_2.png) [@ClubberLang](https://discuss.elastic.co/u/ClubberLang)\
**Post date:** [March 14, 2021, 5:47pm UTC](https://discuss.elastic.co/t/update-all-collection-based-on-pattern/267199/1 "2021-03-14T17:47:54Z")

</div>

Hi,

I have a several indexes, they all contains data such this one:

{  
"\_index" : "item\_index",  
"imageUri" : "[https://cdn.socloze.com/cdn/e\_07266e9e-d294.jpg](https://cdn.socloze.com/cdn/e_07266e9e-d294.jpg)"  
...  
}

and I wish to convert all the "/cdn/" into "/v1/cdn/", everywhere. Is it possible ?

Thanks

---

<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:** [April 11, 2021, 5:48pm UTC](https://discuss.elastic.co/t/update-all-collection-based-on-pattern/267199/2 "2021-04-11T17:48:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
