Hi. I am running 1.4.4 and have the following script_score block that
executes a saved groovy script.
"script_score": {
"params": {
"b_1": 1,
"b_2": 5
},
"script": "calculate-score.groovy",
"lang":"groovy"
}
When executed it returns the following exception.
GroovyScriptExecutionException[MissingPropertyException[No such property:
calculate for class: Script3]];
When the service is started it states the file calculate-score.groovy has
been compiled.
[2015-04-27 10:46:21,927][INFO ][script ] [XXXXXX]
compiling script file [/etc/elasticsearch/scripts/calculate-score.groovy]
I found the problem. Instead of "calculate-score.groovy" it should
be "calculate-score".
On Monday, April 27, 2015 at 11:00:06 AM UTC-4, Kevin Reilly wrote:
Hi. I am running 1.4.4 and have the following script_score block that
executes a saved groovy script.
"script_score": {
"params": {
"b_1": 1,
"b_2": 5
},
"script": "calculate-score.groovy",
"lang":"groovy"
}
When executed it returns the following exception.
GroovyScriptExecutionException[MissingPropertyException[No such property:
calculate for class: Script3]];
When the service is started it states the file calculate-score.groovy has
been compiled.
[2015-04-27 10:46:21,927][INFO ][script ] [XXXXXX]
compiling script file [/etc/elasticsearch/scripts/calculate-score.groovy]
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.