I was able to index some records and create the specified scripted field (see below). How are the fields that you are trying to use mapped in your elasticsearch index?
The only thing that I see was different between my example and yours was that you had spaces in the your field names. I Recreated it the best that I could with the information that I have and was still unable to replicate the issue. Here is my mapping:
I WAS able to get an error message to happen if I didn't type the fields name exactly including case when building my scripted field.
Can you please supply your mapping, and a sample of data so that I can recreate it better? Also, what exactly is the error message that you are receiving?
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.