I wanted to replace the single username in all my elasticsearch index documents. Is there any API query ?
I tried searching multiple but couldn't find. Any one has idea?
My scenario:
curl -XPOST 'http://localhost:9200/test/movies/' -d '{"user":"mad", "role":"tester"}'
curl -XPOST 'http://localhost:9200/test/movies/' -d '{"user":"bob", "role":"engineer"}'
curl -XPOST 'http://localhost:9200/test/movies/' -d '{"user":"cat", "role":"engineer"}'
curl -XPOST 'http://localhost:9200/test/movies/' -d '{"user":"bob", "role":"doctor"}'
I have the above data in the index called "test" and type "movies". Here I wanted to replace all the "bob" name with "alice".
Thanks