_type deprecated in 6.x?

From the documents I learn that _type is deprecated from 6.0.0. But when I use the following syntax:
PUT my_index/1 in elasticsearch 6.5, it returns with the following:
{
"error": "Incorrect HTTP method for uri [/my_index/1?pretty] and method [PUT], allowed: [POST]",
"status": 405
}

So does this mean _doc is still needed when creating a new document?

Yes. It's still needed.
From 7.0 it will become optional (with some settings IIRC).

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.