I am not at all sure if its relevant, was going to delete the comment, but ... in some other threads there are issues with the .value notation - e.g this
The .value notation only applies to doc values, try just ctx['additional-data'] within the context of an ingest pipeline (compared to the context of a script filter for example or a scripted aggregation)
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.