I'm trying to automate the creation of scripted fields. For updating the "fields" field, it has a string value. So, I cant update it with "source": "ctx._source.fields.add(params.field)" by adding to the array. So what is the best way to update the field?
Is there a way to simply replace the field value with something like source": "ctx._source.fields = params.field"?
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.