// docs/index_.asciidoc:486

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