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

[source, js]
----
const response0 = await client.indices.create({
  index: 'twitter-1'
})
console.log(response0)

const response1 = await client.indices.create({
  index: 'twitter-2'
})
console.log(response1)

const response2 = await client.indices.putMapping({
  index: 'twitter-1,twitter-2',
  body: {
    properties: {
      user_name: {
        type: 'text'
      }
    }
  }
})
console.log(response2)
----

