[source, ruby]
----
response = client.indices.create(
  index: 'idx',
  body: {
    mappings: {
      _source: {
        mode: 'synthetic'
      },
      properties: {
        card: {
          type: 'wildcard'
        }
      }
    }
  }
)
puts response

response = client.index(
  index: 'idx',
  id: 1,
  body: {
    card: [
      'king',
      'ace',
      'ace',
      'jack'
    ]
  }
)
puts response
----
