Skip to content

All of the examples provided in the v8.3 documentation missing the _doc type. #1734

@bhavyaidr

Description

@bhavyaidr

🐛 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions