[source, ruby]
----
response = client.indices.create(
  index: 'mv',
  body: {
    mappings: {
      properties: {
        b: {
          type: 'keyword'
        }
      }
    }
  }
)
puts response

response = client.bulk(
  index: 'mv',
  refresh: true,
  body: [
    {
      index: {}
    },
    {
      a: 1,
      b: [
        'foo',
        'foo',
        'bar'
      ]
    },
    {
      index: {}
    },
    {
      a: 2,
      b: [
        'bar',
        'bar'
      ]
    }
  ]
)
puts response

response = client.esql.query(
  body: {
    query: 'FROM mv | LIMIT 2'
  }
)
puts response
----
