1
我對生產運行elasticsearch和我在我的查詢Dockerized Elasticsearch - 腳本不工作
"filter": {
"script": {
"script": "doc['today_count'].value == doc['yesterday_count'].value"
}
}
之一以下過濾器,是工作,因爲我必須包括在我的elasticsearch.yml文件這個指令。
script.inline: on
script.indexed: on
現在我建立一個dockerized環境和elasticsearch容器抱怨查詢
ScriptException[scripts of type [inline], operation [search]
and lang [groovy] are disabled];
,但我已經嘗試了以下配置 Dockerfile:
FROM elasticsearch:2.3.3
COPY elasticsearch.yml /etc/elasticsearch/
elasticsearch.yml :
script.engine.groovy.inline.aggs: on
script.engine.groovy.inline.search: on
script.inline: on
script.indexed: on
彈性仍然抱怨以同樣的方式。有任何想法嗎?