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"
)
How do you make _id a number?
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.