Script in Create Scripted Field form

Here's another thread which seems to indicate a different way of enabling groovy scripts on Elasticsearch. If the first thread doesn't help you, this one might: Script_lang not supported [groovy] error for script_fields