尝试在AWS托管的Easticsearch集群中呈现查询模板时,出现not allowed
错误。但是按模板搜索效果很好。
GET /_render/template
{
"source": "{ \"query\": { \"terms\": {{#toJson}}statuses{{/toJson}} }}",
"params": {
"statuses" : {
"status": [ "pending", "published" ]
}
}
}
返回以下错误:
{
"Message": "Your request: '/_render/template' is not allowed."
}
是否需要启用配置或权限才能允许渲染请求?