This is absolutely possible within Elasticsearch. What you want to do is use the update_by_query API.
You are on the right track with with wildcard search, all you have to do is add a script that will modify the URL in the way you desire. You can write that script using Painless.
Here is a sample query using the update_by_query API and a script using Painless to modify the URL:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.