elastic doesn't try to capture data types from your input data.frame or list to docs_bulk() - We could think about trying to do that, but I imagine R data types wouldn't map exactly to Elasticsearch types - might play around with trying to map data types. Here's how I'd do it: