Does _id need to be a string?

Can _id be a number? It would help with some of the Kibana queries if it could be a number.

It can, although internally it's basically coerced into a string ("5") :slight_smile:

How do you make _id a number? :slight_smile:

PUT /my_index/my_type/5
{
  "foo": "bar"
}

Just use a number when creating the document

Ah I think I figured out the issue. It's the Elasticsearch Ruby gem.