目前,我正在使用客户端 go-elasticsearch 版本 v7.8.0
和 elastic 版本 8.1.2
。 Elastic Search 已从版本 7.x
现在,当我尝试更新文档时,它失败并出现以下错误。
我在 stackoverflow 上找到了一些类似的答案,但没有帮助
api_platform produces Error "no handler found for uri [/index/_doc/_search] and method [POST]"
elasticsearch response on failure while updating- {"error":"no handler found for uri [/<index>/_doc/<doc_id>/_update?retry_on_conflict=2] and method [POST]"
更新查询示例:
{"doc":{"info":{"description":"test description","slug":"test"}}}
最佳答案
请尝试改用端点 /{index}/_update/{id}
。您使用的那个已在 8.1 中弃用并删除。
引用:
关于go - 找不到 uri [<index>/_doc/<document_id>/_update] 和方法 [POST] 的处理程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71812420/