Hi all, I am puzzling with the Script processor in an Ingest pipeline to copy all fields to a single new field. This is the same idea as using the copy_to in the mapping, but instead of creating the copy in the index, we can store the copied values in the _source using the Ingest pipeline. Can someone share a script that does exactly that?
So read all field-value pairs into a map and then copy them into a single new multi-valued field (array of strings).
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.