[source, ruby]
----
response = client.indices.create(
  index: 'my-index-000001',
  body: {
    mappings: {
      properties: {
        title: {
          type: 'text',
          store: true
        },
        date: {
          type: 'date',
          store: true
        },
        content: {
          type: 'text'
        }
      }
    }
  }
)
puts response

response = client.index(
  index: 'my-index-000001',
  id: 1,
  body: {
    title: 'Some short title',
    date: '2015-01-01',
    content: 'A very long content field...'
  }
)
puts response

response = client.search(
  index: 'my-index-000001',
  body: {
    stored_fields: [
      'title',
      'date'
    ]
  }
)
puts response
----
