Not sure if this is a bug or intended. It caused me some problems.
When using docs_bulk_index on a data frame, only 4 digits actually appeared in the Elasticsearch. This was due to a call of jsonlite::toJSON in make_bulk_ which only keeps 4 digits by default. Maybe set digits = NA?
In my case I resolved this by writing my own custum function to create a bulk upload textfile. But maybe someone else has a similar problem and I didnt find an issue on this here.