// docs/index_.asciidoc:440

[source, php]
----
$params = [
    'index' => 'twitter',
    'id' => '1',
    'body' => [
        'message' => 'elasticsearch now has versioning support, double cool!',
    ],
];
$response = $client->index($params);
----
