Changing Data stored in Elasticsearch

Hi Team,

Quick Question,

can we make changes in some indices which is stored in elasticsearch now.

basically it's now the old data in which I want to make some changes, like there's this column in my data call Acc no. and it has valuse like this 9876543210 and i want to change its data to 98765xxxxx.

just want to replace last 5 digit with X

thanks and Regards,
Sagar Mandal

Update by query would probably help.

can i get a small example or any doc where i can read about it

thanks

https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html