🐛 Bug Report
When making an API request, the type: '_doc' parameter is absent from the examples in the Elasticsearch Javascript Client(v8.3) documentation.
Since type is no longer supported (in v8.x), you must still provide the _doc placeholder in your API calls.
For reference, you can check out the below example taken from Update documentation :
await client.index({
index: 'game-of-thrones',
id: '1',
document: {
character: 'Ned Stark',
quote: 'Winter is coming.',
times: 0
}
})
As you can see in the above example, the API request is missing the type: '_doc' parameter.