// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.index({
  index: 'twitter',
  body: {
    user: 'kimchy',
    post_date: '2009-11-15T14:12:12',
    message: 'trying out Elasticsearch'
  }
})
console.log(response)
----

