Find and replace in elasticsearch all documents

What "did not work"?

Sorry I can't help without a full example.

This article explains how to post a complete example.