I understand that Groovy dynamic scripting has been disabled by default in 
1.4.4 and I should either use a different language or put the script in the 
config/scripts directory.

However, when calling a script for the value of a Stats aggregation 
<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-metrics-stats-aggregation.html#_script_5>,
 
I cannot figure out how to specify the script_file parameter. I'm using the 
Java API and the StatsBuilder class has only 1 method for the script, which 
accepts a sting:
 StatsBuilder.stats(String script)

If I specify the script string, I get (as expected): 
ScriptException[dynamic scripting for [groovy] disabled]


Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/83258db0-c815-4508-8adb-d5be4d7ee0a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to