Skip to content

Inconsistent keyword argument usage in example documentation vs implementation #2251

Closed
@mattiassluis

Description

@mattiassluis

Elasticsearch version: 8.8

elasticsearch-py version: 8.8.2

Please make sure the major version matches the Elasticsearch server you are running.

Description of the problem including expected versus actual behavior:
Documentation example vs actual implementation on the update of documents is incorrect.
The code of the update method has doc as keyword argument while the official example on the Elasticsearch website mentions document

The same documentation also still refers to body instead of document or doc on both the index and the update method

Steps to reproduce:
N/A

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