Reputation: 247
Currently, i am using client go-elasticsearch version v7.8.0
and elastic of version 8.1.2
. the elastic search got updated from version 7.x
Now when I try to update the document it fails with the following error.
There are some stackoverflow answer i came through like this one but didn't help
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]"
Sample query for update:
{"doc":{"info":{"description":"test description","slug":"test"}}}
Upvotes: 2
Views: 9394
Reputation: 21
Please try use the endpoint /{index}/_update/{id}
instead. The one you used is deprecated and removed in 8.1.
Reference:
Upvotes: 2
Reputation: 217274
You cannot use a Go client for 7.8.0 with and Elasticsearch server 8.1.2, they are not compatible. You need to upgrade your Go client to the same 8.1 version
Upvotes: 1