// docs/index_.asciidoc:498

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