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]
>
>
> Any ideas?
>
> Thanks in advance.
>
>
>
--
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/ddbb9916-8630-4261-9776-6b7f9b4fa4ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.