I'm not a developer, so I'm not familiar with program language.
I added several scripted fields.
I tried to add a new scripted field, but I can't.
"Script is invalid."
Following is an err.
The reason property to the bottom of your screenshot is a good description of the problem. You are trying to access the peak field, but not all documents in your index have that 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.