Не могу включить groovy


(Max) #1

пытаюсь добавить строку в elasticsearch.yml

script.engine.groovy.inline.aggs: on

но elasticsearch 5.0.0 alpha 2 не стартует , что я делаю не так?

"reason": "scripts of type [inline], operation [search] and lang [groovy] are disabled"

{
    "query" : {
        ...
    },
    "script_fields" : {
        "test1" : {
            "script" : "doc['my_field_name'].value * 2"
        },
        "test2" : {
            "script" : {
                "inline": "doc['my_field_name'].value * factor",
                "params" : {
                    "factor"  : 2.0
                }
            }
        }
    }
}

(Igor Motov) #2

https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting-security.html


(system) #3