elasticsearch 在与邮递员的弹性搜索中禁止放置/张贴403
我是elastic search新手,尝试使用postman在ElasticSearch中添加新的类型映射,但在添加类型映射时,它返回status-403 error 这个查询有什么问题,如何实现elasticsearch 在与邮递员的弹性搜索中禁止放置/张贴403,elasticsearch,postman,elasticsearch,Postman,我是elastic search新手,尝试使用postman在ElasticSearch中添加新的类型映射,但在添加类型映射时,它返回status-403 error 这个查询有什么问题,如何实现 http://IPADDRESSS/index/type/_mapping { "properties": { "action_30": { "type": "string", "index": "not_analyzed", "fields": {
http://IPADDRESSS/index/type/_mapping
{
"properties": {
"action_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"action_30_analyzed": {
"type": "string"
}
}
},
"controller_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"controller_30_analyzed": {
"type": "string"
}
}
},
"iPAddress_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"iPAddress_30_analyzed": {
"type": "string"
}
}
},
"itemId_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"itemId_30_analyzed": {
"type": "string"
}
}
},
"itemName_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"itemName_30_analyzed": {
"type": "string"
}
}
},
"id_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"id_30_analyzed": {
"type": "string"
}
}
},
"locationId_30": {
"type": "long"
},
"moduleId_30": {
"type": "long"
},
"moduleName_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"moduleName_30_analyzed": {
"type": "string"
}
}
},
"narration_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"narration_30_analyzed": {
"type": "string"
}
}
},
"timeStamp_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"timeStamp_30_analyzed": {
"type": "string"
}
}
},
"dateValue_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"timeStamp_30_analyzed": {
"type": "string"
}
}
},
"url_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"url_30_analyzed": {
"type": "string"
}
}
},
"userId_30": {
"type": "long"
},
"userName_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"userName_30_analyzed": {
"type": "string"
}
}
},
"value_30": {
"type": "string",
"index": "not_analyzed",
"fields": {
"value_30_analyzed": {
"type": "string"
}
}
}
}
}
4XX范围内的错误通常是客户端错误。对你来说,403意味着禁止。服务器理解该请求,但拒绝对其进行授权 希望公开请求被禁止原因的服务器可以在响应负载(如果有)中描述该原因 如果请求中提供了身份验证凭据,则服务器 认为它们不足以授予访问权限。客户不应该 使用相同的凭据自动重复请求。客户 可以使用新的或不同的凭据重复请求。但是, 请求可能由于与凭据无关的原因而被禁止 希望“隐藏”当前存在的源服务器 禁止的目标资源可能会以状态代码响应 404找不到 来源 我们不知道您的查询是否有任何问题,直到我们从elasticsearch得到响应。如果您的elasticsearch群集与本地计算机在同一节点上运行,请尝试以下操作
如果本地计算机上不存在elasticsearch群集,或者不想卸载xpack,请尝试通过标头传递授权令牌。看看怎么做 4XX范围内的错误通常是客户端错误。对你来说,403意味着禁止。服务器理解该请求,但拒绝对其进行授权 希望公开请求被禁止原因的服务器可以在响应负载(如果有)中描述该原因 如果请求中提供了身份验证凭据,则服务器 认为它们不足以授予访问权限。客户不应该 使用相同的凭据自动重复请求。客户 可以使用新的或不同的凭据重复请求。但是, 请求可能由于与凭据无关的原因而被禁止 希望“隐藏”当前存在的源服务器 禁止的目标资源可能会以状态代码响应 404找不到 来源 我们不知道您的查询是否有任何问题,直到我们从elasticsearch得到响应。如果您的elasticsearch群集与本地计算机在同一节点上运行,请尝试以下操作
如果本地计算机上不存在elasticsearch群集,或者不想卸载xpack,请尝试通过标头传递授权令牌。看看怎么做 如果您使用的是Chrome Apps版本的Postman,那么问题可能是因为Chrome会自动向您的
elasticsearch.yml
中的CORS模式发送一个不符合该模式的源代码头
您需要禁用Chrome拦截器来添加源标题,或者将模式添加到
elasticsearch.yml
(请参阅)。我通过下载Postman桌面版解决了这个问题,该版本没有Chrome浏览器 如果您使用的是Chrome Apps版本的Postman,那么问题可能是因为Chrome会自动向您的elasticsearch.yml
中的CORS模式发送一个不符合该模式的源代码头
您需要禁用Chrome拦截器来添加源标题,或者将模式添加到
elasticsearch.yml
(请参阅)。我通过下载Postman桌面版解决了这个问题,该版本没有Chrome浏览器 您可能已经安装了XPack security。如果是这种情况,您还需要传递身份验证,即使用elastic/ChangeMe的基本身份验证您可能已经安装了XPack security。如果是这种情况,您还需要传递身份验证,即使用elastic/changeme进行基本身份验证