Or may be a script which reads the _source stored field. But that will be slow.
For a one time usage, that's probably fine. If this is something you need to run everytime, change your source documents.
You can use ingest BTW to do that transformation while reindexing.
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.