elasticsearch版本1.2.1的脚本错误

时间:2015-07-30 08:55:23

标签: php elasticsearch error-handling

我尝试运行脚本时收到此错误。

{"error":"RemoteTransportException[[Fin][inet[/192.168.1.127:9300]][update]]; nested: ElasticsearchIllegalArgumentException[failed to execute script]; nested: ScriptException[scripts of type [inline], operation [update] and lang [groovy] are disabled]; ","status":400}

我发现在elasticsearch.yml中,我必须将其配置为禁用,如果我使用1.4.3或更高版本,但我使用的是Elasticsearch版本1.2.1,其中会自动启用。

script.disable_dynamic: false

那么我该如何解决这个问题呢。有谁知道如何解决这个问题?

1 个答案:

答案 0 :(得分:3)

在ES 1.6中,您需要使用following config parameters

script.inline: on
script.indexed: on

尝试一下。

PS:我不再使用1.3之前的版本了。如果你可以至少升级到1.6。

相关问题