// docs/index_.asciidoc:286

[source, php]
----
$params = [
    'index' => 'twitter',
    'body' => [
        'user' => 'kimchy',
        'post_date' => '2009-11-15T14:12:12',
        'message' => 'trying out Elasticsearch',
    ],
];
$response = $client->index($params);
----
