I am using elastic 1.5.0. When I run this block in the query:
"script_fields" : {
"test1" : {
"script" : "doc['actual_air_time'].value * 2",
"lang":"groovy"
}
}
I get an error:
nested: ScriptException[dynamic scripting for [groovy] disabled]
How can I enable groovy script for elastic? Is there any other way to evaluate "test1" without using script_fields?