TODO Add to_elasticsearch(index, doc_type, **bulk_options). This function should use bulk feature using each partition as input.