我在ElasticSearch中的查询:
'filter':{
'script':{
'script':'_source.brand == \"samsung galaxy\"'
}
}
我得到的错误:
{
"shard": 0,
"index": "test_database",
"node": "yHIFcx8LQzCJHFYydcpdgA",
"reason": {
"type": "script_exception",
"reason": "scripts of type [inline], operation [search] and lang [groovy] are disabled"
}
}
]
},
"status": 500
}
答案 0 :(得分:1)
您需要elasticsearch.yml
中的enable dynamic scripting,然后重新启动您的节点。将其添加到配置文件中:
script.inline: true